[Cbe-oss-dev] [FYI] SPU core dumps in ppu-gdb
Michael Ellerman
michael at ellerman.id.au
Mon Sep 17 11:51:04 EST 2007
On Fri, 2007-09-14 at 11:46 +0200, Markus Deuling wrote:
> 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.
Hi Markus,
Thanks for having a look, it's good to have someone test this stuff.
> [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
Sounds reasonable, but I have no idea what program generated the dump?
> [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)
I see something similar here, although I do get a backtrace:
[michael at schoenaich 10-coredump]$ ppu-gdb ./spu-coredump core.6650
GNU gdb 6.6.50.20070623-cvs
This GDB was configured as "powerpc64-linux"...
Using host libthread_db library "/lib64/libthread_db.so.1".
warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld.so.1...done.
Loaded symbols for /lib/ld.so.1
Core was generated by `./spu-coredump'.
Program terminated with signal 11, Segmentation fault.
warning: you won't be able to access this core file until you terminate
your spu thread.; do ``info files''
(gdb) bt
#0 main () at spu-coredump.c:27
(gdb) info threads
* 1 process 6650 main () at spu-coredump.c:27
(gdb) info spu dma
"info spu" is only supported on the SPU architecture.
(gdb) set architecture spu:256k
Undefined item: "spu:256k".
(gdb) set architecture spu:256K
The target architecture is assumed to be spu:256K
Cannot access memory at address 0x0
(gdb) info spu dma
Cannot access memory at address 0x0
(gdb) info spu event
Cannot access memory at address 0x0
etc.
It seems readelf can find the notes but gdb can't:
[michael at schoenaich 10-coredump]$ spu-readelf -n core.6650
Notes at offset 0x000001b4 with length 0x0040e7dc:
Owner Data size Description
CORE 0x0000010c NT_PRSTATUS (prstatus structure)
CORE 0x00000080 NT_PRPSINFO (prpsinfo structure)
CORE 0x000000b0 NT_AUXV (auxiliary vector)
CORE 0x00000108 NT_FPREGSET (floating point registers)
SPU 0x00000800 4/regs
SPU 0x00000010 4/fpcr
SPU 0x00000013 4/lslr
SPU 0x00000013 4/decr
SPU 0x00000013 4/decr_status
SPU 0x00040000 4/mem
SPU 0x00000004 4/signal1
SPU 0x00000013 4/signal1_type
SPU 0x00000004 4/signal2
SPU 0x00000013 4/signal2_type
SPU 0x00000013 4/event_mask
SPU 0x00000013 4/event_status
SPU 0x00000004 4/mbox_info
SPU 0x00000004 4/ibox_info
SPU 0x00000010 4/wbox_info
SPU 0x00000228 4/dma_info
SPU 0x00000118 4/proxydma_info
SPU 0x00000013 4/object-id
SPU 0x00000013 4/npc
SPU 0x00000800 5/regs
SPU 0x00000010 5/fpcr
SPU 0x00000013 5/lslr
SPU 0x00000013 5/decr
SPU 0x00000013 5/decr_status
SPU 0x00040000 5/mem
SPU 0x00000004 5/signal1
SPU 0x00000013 5/signal1_type
SPU 0x00000004 5/signal2
SPU 0x00000013 5/signal2_type
SPU 0x00000013 5/event_mask
SPU 0x00000013 5/event_status
SPU 0x00000004 5/mbox_info
SPU 0x00000004 5/ibox_info
SPU 0x00000010 5/wbox_info
SPU 0x00000228 5/dma_info
SPU 0x00000118 5/proxydma_info
SPU 0x00000013 5/object-id
SPU 0x00000013 5/npc
SPU 0x00000800 6/regs
SPU 0x00000010 6/fpcr
SPU 0x00000013 6/lslr
SPU 0x00000013 6/decr
SPU 0x00000013 6/decr_status
SPU 0x00040000 6/mem
SPU 0x00000004 6/signal1
SPU 0x00000013 6/signal1_type
SPU 0x00000004 6/signal2
SPU 0x00000013 6/signal2_type
SPU 0x00000013 6/event_mask
SPU 0x00000013 6/event_status
SPU 0x00000004 6/mbox_info
SPU 0x00000004 6/ibox_info
SPU 0x00000010 6/wbox_info
SPU 0x00000228 6/dma_info
SPU 0x00000118 6/proxydma_info
SPU 0x00000013 6/object-id
SPU 0x00000013 6/npc
SPU 0x00000800 7/regs
SPU 0x00000010 7/fpcr
SPU 0x00000013 7/lslr
SPU 0x00000013 7/decr
SPU 0x00000013 7/decr_status
SPU 0x00040000 7/mem
SPU 0x00000004 7/signal1
SPU 0x00000013 7/signal1_type
SPU 0x00000004 7/signal2
SPU 0x00000013 7/signal2_type
SPU 0x00000013 7/event_mask
SPU 0x00000013 7/event_status
SPU 0x00000004 7/mbox_info
SPU 0x00000004 7/ibox_info
SPU 0x00000010 7/wbox_info
SPU 0x00000228 7/dma_info
SPU 0x00000118 7/proxydma_info
SPU 0x00000013 7/object-id
SPU 0x00000013 7/npc
SPU 0x00000800 8/regs
SPU 0x00000010 8/fpcr
SPU 0x00000013 8/lslr
SPU 0x00000013 8/decr
SPU 0x00000013 8/decr_status
SPU 0x00040000 8/mem
SPU 0x00000004 8/signal1
SPU 0x00000013 8/signal1_type
SPU 0x00000004 8/signal2
SPU 0x00000013 8/signal2_type
SPU 0x00000013 8/event_mask
SPU 0x00000013 8/event_status
SPU 0x00000004 8/mbox_info
SPU 0x00000004 8/ibox_info
SPU 0x00000010 8/wbox_info
SPU 0x00000228 8/dma_info
SPU 0x00000118 8/proxydma_info
SPU 0x00000013 8/object-id
SPU 0x00000013 8/npc
SPU 0x00000800 9/regs
SPU 0x00000010 9/fpcr
SPU 0x00000013 9/lslr
SPU 0x00000013 9/decr
SPU 0x00000013 9/decr_status
SPU 0x00040000 9/mem
SPU 0x00000004 9/signal1
SPU 0x00000013 9/signal1_type
SPU 0x00000004 9/signal2
SPU 0x00000013 9/signal2_type
SPU 0x00000013 9/event_mask
SPU 0x00000013 9/event_status
SPU 0x00000004 9/mbox_info
SPU 0x00000004 9/ibox_info
SPU 0x00000010 9/wbox_info
SPU 0x00000228 9/dma_info
SPU 0x00000118 9/proxydma_info
SPU 0x00000013 9/object-id
SPU 0x00000013 9/npc
SPU 0x00000800 10/regs
SPU 0x00000010 10/fpcr
SPU 0x00000013 10/lslr
SPU 0x00000013 10/decr
SPU 0x00000013 10/decr_status
SPU 0x00040000 10/mem
SPU 0x00000004 10/signal1
SPU 0x00000013 10/signal1_type
SPU 0x00000004 10/signal2
SPU 0x00000013 10/signal2_type
SPU 0x00000013 10/event_mask
SPU 0x00000013 10/event_status
SPU 0x00000004 10/mbox_info
SPU 0x00000004 10/ibox_info
SPU 0x00000010 10/wbox_info
SPU 0x00000228 10/dma_info
SPU 0x00000118 10/proxydma_info
SPU 0x00000013 10/object-id
SPU 0x00000013 10/npc
SPU 0x00000800 11/regs
SPU 0x00000010 11/fpcr
SPU 0x00000013 11/lslr
SPU 0x00000013 11/decr
SPU 0x00000013 11/decr_status
SPU 0x00040000 11/mem
SPU 0x00000004 11/signal1
SPU 0x00000013 11/signal1_type
SPU 0x00000004 11/signal2
SPU 0x00000013 11/signal2_type
SPU 0x00000013 11/event_mask
SPU 0x00000013 11/event_status
SPU 0x00000004 11/mbox_info
SPU 0x00000004 11/ibox_info
SPU 0x00000010 11/wbox_info
SPU 0x00000228 11/dma_info
SPU 0x00000118 11/proxydma_info
SPU 0x00000013 11/object-id
SPU 0x00000013 11/npc
SPU 0x00000800 12/regs
SPU 0x00000010 12/fpcr
SPU 0x00000013 12/lslr
SPU 0x00000013 12/decr
SPU 0x00000013 12/decr_status
SPU 0x00040000 12/mem
SPU 0x00000004 12/signal1
SPU 0x00000013 12/signal1_type
SPU 0x00000004 12/signal2
SPU 0x00000013 12/signal2_type
SPU 0x00000013 12/event_mask
SPU 0x00000013 12/event_status
SPU 0x00000004 12/mbox_info
SPU 0x00000004 12/ibox_info
SPU 0x00000010 12/wbox_info
SPU 0x00000228 12/dma_info
SPU 0x00000118 12/proxydma_info
SPU 0x00000013 12/object-id
SPU 0x00000013 12/npc
SPU 0x00000800 13/regs
SPU 0x00000010 13/fpcr
SPU 0x00000013 13/lslr
SPU 0x00000013 13/decr
SPU 0x00000013 13/decr_status
SPU 0x00040000 13/mem
SPU 0x00000004 13/signal1
SPU 0x00000013 13/signal1_type
SPU 0x00000004 13/signal2
SPU 0x00000013 13/signal2_type
SPU 0x00000013 13/event_mask
SPU 0x00000013 13/event_status
SPU 0x00000004 13/mbox_info
SPU 0x00000004 13/ibox_info
SPU 0x00000010 13/wbox_info
SPU 0x00000228 13/dma_info
SPU 0x00000118 13/proxydma_info
SPU 0x00000013 13/object-id
SPU 0x00000013 13/npc
SPU 0x00000800 14/regs
SPU 0x00000010 14/fpcr
SPU 0x00000013 14/lslr
SPU 0x00000013 14/decr
SPU 0x00000013 14/decr_status
SPU 0x00040000 14/mem
SPU 0x00000004 14/signal1
SPU 0x00000013 14/signal1_type
SPU 0x00000004 14/signal2
SPU 0x00000013 14/signal2_type
SPU 0x00000013 14/event_mask
SPU 0x00000013 14/event_status
SPU 0x00000004 14/mbox_info
SPU 0x00000004 14/ibox_info
SPU 0x00000010 14/wbox_info
SPU 0x00000228 14/dma_info
SPU 0x00000118 14/proxydma_info
SPU 0x00000013 14/object-id
SPU 0x00000013 14/npc
SPU 0x00000800 15/regs
SPU 0x00000010 15/fpcr
SPU 0x00000013 15/lslr
SPU 0x00000013 15/decr
SPU 0x00000013 15/decr_status
SPU 0x00040000 15/mem
SPU 0x00000004 15/signal1
SPU 0x00000013 15/signal1_type
SPU 0x00000004 15/signal2
SPU 0x00000013 15/signal2_type
SPU 0x00000013 15/event_mask
SPU 0x00000013 15/event_status
SPU 0x00000004 15/mbox_info
SPU 0x00000004 15/ibox_info
SPU 0x00000010 15/wbox_info
SPU 0x00000228 15/dma_info
SPU 0x00000118 15/proxydma_info
SPU 0x00000013 15/object-id
SPU 0x00000013 15/npc
SPU 0x00000800 16/regs
SPU 0x00000010 16/fpcr
SPU 0x00000013 16/lslr
SPU 0x00000013 16/decr
SPU 0x00000013 16/decr_status
SPU 0x00040000 16/mem
SPU 0x00000004 16/signal1
SPU 0x00000013 16/signal1_type
SPU 0x00000004 16/signal2
SPU 0x00000013 16/signal2_type
SPU 0x00000013 16/event_mask
SPU 0x00000013 16/event_status
SPU 0x00000004 16/mbox_info
SPU 0x00000004 16/ibox_info
SPU 0x00000010 16/wbox_info
SPU 0x00000228 16/dma_info
SPU 0x00000118 16/proxydma_info
SPU 0x00000013 16/object-id
SPU 0x00000013 16/npc
SPU 0x00000800 17/regs
SPU 0x00000010 17/fpcr
SPU 0x00000013 17/lslr
SPU 0x00000013 17/decr
SPU 0x00000013 17/decr_status
SPU 0x00040000 17/mem
SPU 0x00000004 17/signal1
SPU 0x00000013 17/signal1_type
SPU 0x00000004 17/signal2
SPU 0x00000013 17/signal2_type
SPU 0x00000013 17/event_mask
SPU 0x00000013 17/event_status
SPU 0x00000004 17/mbox_info
SPU 0x00000004 17/ibox_info
SPU 0x00000010 17/wbox_info
SPU 0x00000228 17/dma_info
SPU 0x00000118 17/proxydma_info
SPU 0x00000013 17/object-id
SPU 0x00000013 17/npc
SPU 0x00000800 18/regs
SPU 0x00000010 18/fpcr
SPU 0x00000013 18/lslr
SPU 0x00000013 18/decr
SPU 0x00000013 18/decr_status
SPU 0x00040000 18/mem
SPU 0x00000004 18/signal1
SPU 0x00000013 18/signal1_type
SPU 0x00000004 18/signal2
SPU 0x00000013 18/signal2_type
SPU 0x00000013 18/event_mask
SPU 0x00000013 18/event_status
SPU 0x00000004 18/mbox_info
SPU 0x00000004 18/ibox_info
SPU 0x00000010 18/wbox_info
SPU 0x00000228 18/dma_info
SPU 0x00000118 18/proxydma_info
SPU 0x00000013 18/object-id
SPU 0x00000013 18/npc
SPU 0x00000800 19/regs
SPU 0x00000010 19/fpcr
SPU 0x00000013 19/lslr
SPU 0x00000013 19/decr
SPU 0x00000013 19/decr_status
SPU 0x00040000 19/mem
SPU 0x00000004 19/signal1
SPU 0x00000013 19/signal1_type
SPU 0x00000004 19/signal2
SPU 0x00000013 19/signal2_type
SPU 0x00000013 19/event_mask
SPU 0x00000013 19/event_status
SPU 0x00000004 19/mbox_info
SPU 0x00000004 19/ibox_info
SPU 0x00000010 19/wbox_info
SPU 0x00000228 19/dma_info
SPU 0x00000118 19/proxydma_info
SPU 0x00000013 19/object-id
SPU 0x00000013 19/npc
cheers
--
Michael Ellerman
OzLabs, IBM Australia Development Lab
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/cbe-oss-dev/attachments/20070917/85cea557/attachment.pgp>
More information about the cbe-oss-dev
mailing list