[Cbe-oss-dev] [FYI] SPU core dumps in ppu-gdb

Markus Deuling deuling at linux.vnet.ibm.com
Fri Sep 14 19:46:24 EST 2007


Hi,

I took a look at SPU core files and noticed that there are still some problems (eg. backtrace doesn't work). 
The debugger and objdump now identiy the produced core files as valid. To analyse the logfile I used our most recent
combined debugger.


[deuling at localhost ~]$ uname -a
Linux localhost.localdomain 2.6.22-5.20070911bsc #1 SMP Tue Sep 11 12:17:08 CEST 2007 ppc64 ppc64 ppc64 GNU/Linux

ppu-gdb (GNU gdb 6.6.50.20070623-cvs)from toolchain/gdb67


Are the sizes here correct? 2.6M ?
-rw-------  1 deuling deuling 2.6M Sep 14 10:00 core.2493
-rwxrwxr-x  1 deuling deuling  61K Sep 14 06:44 core_spu


[deuling at localhost simple]$ objdump -x core.2493
core.2493:     file format elf32-powerpc
core.2493
architecture: powerpc:common, flags 0x00000000:
start address 0x00000000



(gdb) core core.2493
warning: core file may not match specified executable file.
Core was generated by `/usr/bin/elfspe ./core_spu'.
Program terminated with signal 3, Quit.
warning: you won't be able to access this core file until you terminate
your spu thread.; do ``info files``


(gdb) bt
#0  0x0ff28380 in ?? ()
#1  0x0fe1e8c8 in ?? ()
#2  0x0fe15644 in ?? ()
#3  0x10001a80 in ?? ()
#4  0x0fe5dd6c in ?? ()
#5  0x0fe5df94 in ?? ()
#6  0x00000000 in ?? ()


(gdb) info threads
* 1 process 2493

(gdb) info spu dma
"info spu" is only supported on the SPU architecture.
(gdb) set architecture spu:256K
The target architecture is assumed to be spu:256K
(gdb) info spu dma
Could not read dma_info.
(gdb) info spu event
Could not read event_status.
(gdb) info spu mailbox
Could not read mbox_info.
(gdb) info spu proxydma
Could not read proxydma_info.
(gdb) info spu signal
Could not read signal1.
(gdb)

Local core dump file:
        `/home/deuling/simple/core.2493', file type elf32-powerpc.
        0x00100000 - 0x00120000 is load1
        0x0f910000 - 0x0f910000 is load2
        0x0f920000 - 0x0f930000 is load3
        0x0f930000 - 0x0f940000 is load4
        0x0fcf0000 - 0x0fcf0000 is load5
        0x0fd10000 - 0x0fd20000 is load6
        0x0fd20000 - 0x0fd30000 is load7
        0x0fe10000 - 0x0fe10000 is load8
        0x0fe30000 - 0x0fe40000 is load9
        0x0fe40000 - 0x0fe40000 is load10
        0x0ffa0000 - 0x0ffb0000 is load11
        0x0ffb0000 - 0x0ffc0000 is load12
        0x0ffc0000 - 0x0ffc0000 is load13
        0x0ffe0000 - 0x0fff0000 is load14
        0x0fff0000 - 0x10000000 is load15
        0x10000000 - 0x10000000 is load16
        0x10010000 - 0x10020000 is load17
        0x10020000 - 0x10050000 is load18
        0xf7fa0000 - 0xf7fa0000 is load19
        0xf7fe0000 - 0xf7fe0000 is load20
        0xffd60000 - 0xffeb0000 is load21
Local exec file:
        `/home/deuling/simple/core_spu', file type elf32-spu.
        Entry point: 0x28
        0x00000000 - 0x00000024 is .init
        0x00000028 - 0x00001ec0 is .text
        0x00001ec0 - 0x00001edc is .fini
        0x00001ee0 - 0x00001f00 is .rodata
        0x00001f00 - 0x00001f08 is .ctors
        0x00001f08 - 0x00001f10 is .dtors
        0x00001f10 - 0x00001f14 is .jcr
        0x00001f20 - 0x00002780 is .data
        0x00002780 - 0x00002810 is .bss


Info about sections
   `/home/deuling/simple/core.2493', file type elf32-powerpc.
    0x00000000->0x000411a0 at 0x000002f4: note0 READONLY HAS_CONTENTS
    0x00000000->0x000000c0 at 0x00000350: .reg/2493 HAS_CONTENTS
    0x00000000->0x000000c0 at 0x00000350: .reg HAS_CONTENTS
    0x00000000->0x000000b0 at 0x000004bc: .auxv HAS_CONTENTS
    0x00000000->0x00000108 at 0x00000580: .reg2/2493 HAS_CONTENTS
    0x00000000->0x00000108 at 0x00000580: .reg2 HAS_CONTENTS
    0x00000000->0x00000800 at 0x000006a0: SPU/4/regs HAS_CONTENTS
    0x00000000->0x00000010 at 0x00000eb8: SPU/4/fpcr HAS_CONTENTS
    0x00000000->0x00000013 at 0x00000ee0: SPU/4/lslr HAS_CONTENTS
    0x00000000->0x00000013 at 0x00000f0c: SPU/4/decr HAS_CONTENTS
    0x00000000->0x00000013 at 0x00000f40: SPU/4/decr_status HAS_CONTENTS
    0x00000000->0x00040000 at 0x00000f6c: SPU/4/mem HAS_CONTENTS
    0x00000000->0x00000004 at 0x00040f88: SPU/4/signal1 HAS_CONTENTS
    0x00000000->0x00000013 at 0x00040fac: SPU/4/signal1_type HAS_CONTENTS
    0x00000000->0x00000004 at 0x00040fdc: SPU/4/signal2 HAS_CONTENTS
    0x00000000->0x00000013 at 0x00041000: SPU/4/signal2_type HAS_CONTENTS
    0x00000000->0x00000013 at 0x00041034: SPU/4/event_mask HAS_CONTENTS
    0x00000000->0x00000013 at 0x00041068: SPU/4/event_status HAS_CONTENTS
    0x00000000->0x00000004 at 0x00041098: SPU/4/mbox_info HAS_CONTENTS
    0x00000000->0x00000004 at 0x000410b8: SPU/4/ibox_info HAS_CONTENTS
    0x00000000->0x00000010 at 0x000410d8: SPU/4/wbox_info HAS_CONTENTS
    0x00000000->0x00000228 at 0x00041104: SPU/4/dma_info HAS_CONTENTS
    0x00000000->0x00000118 at 0x0004134c: SPU/4/proxydma_info HAS_CONTENTS
    0x00000000->0x00000013 at 0x00041480: SPU/4/object-id HAS_CONTENTS
    0x00100000->0x00120000 at 0x00050000: load1 ALLOC LOAD READONLY CODE HAS_CONTENTS
    0x0f910000->0x0f910000 at 0x00070000: load2 ALLOC LOAD READONLY CODE HAS_CONTENTS
    0x0f920000->0x0f930000 at 0x00070000: load3 ALLOC LOAD READONLY HAS_CONTENTS    
    0x0f930000->0x0f940000 at 0x00080000: load4 ALLOC LOAD HAS_CONTENTS
    0x0fcf0000->0x0fcf0000 at 0x00090000: load5 ALLOC LOAD READONLY CODE HAS_CONTENTS
    0x0fd10000->0x0fd20000 at 0x00090000: load6 ALLOC LOAD READONLY HAS_CONTENTS    
    0x0fd20000->0x0fd30000 at 0x000a0000: load7 ALLOC LOAD HAS_CONTENTS
    0x0fe10000->0x0fe10000 at 0x000b0000: load8 ALLOC LOAD READONLY CODE HAS_CONTENTS
    0x0fe30000->0x0fe40000 at 0x000b0000: load9 ALLOC LOAD HAS_CONTENTS
    0x0fe40000->0x0fe40000 at 0x000c0000: load10 ALLOC LOAD READONLY CODE HAS_CONTENTS
    0x0ffa0000->0x0ffb0000 at 0x000c0000: load11 ALLOC LOAD READONLY HAS_CONTENTS
    0x0ffb0000->0x0ffc0000 at 0x000d0000: load12 ALLOC LOAD HAS_CONTENTS
    0x0ffc0000->0x0ffc0000 at 0x000e0000: load13 ALLOC LOAD READONLY CODE HAS_CONTENTS
    0x0ffe0000->0x0fff0000 at 0x000e0000: load14 ALLOC LOAD READONLY HAS_CONTENTS
    0x0fff0000->0x10000000 at 0x000f0000: load15 ALLOC LOAD HAS_CONTENTS
    0x10000000->0x10000000 at 0x00100000: load16 ALLOC LOAD READONLY CODE HAS_CONTENTS
    0x10010000->0x10020000 at 0x00100000: load17 ALLOC LOAD HAS_CONTENTS
    0x10020000->0x10050000 at 0x00110000: load18 ALLOC LOAD CODE HAS_CONTENTS
    0xf7fa0000->0xf7fa0000 at 0x00140000: load19 ALLOC LOAD HAS_CONTENTS
    0xf7fe0000->0xf7fe0000 at 0x00140000: load20 ALLOC LOAD HAS_CONTENTS
    0xffd60000->0xffeb0000 at 0x00140000: load21 ALLOC LOAD HAS_CONTENTS


Regards,
Markus

-- 
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling at de.ibm.com





More information about the cbe-oss-dev mailing list