[Crash-utility] backtrace - how do I get local and formal parametes - kernel is compiled -O0.

Pete/Piet Delaney pete at bluelane.com
Sat Mar 8 04:00:32 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Got by 1st panic crash, crash seems to be working but
I don't feel comfortable as with gdb. I can't see
the parameters on the stack as variables as with
kgdb nor can I see the local variables on the stack.
Seems I should be able to get crash working with
gdb so I can see the details that gdb can see.

I compiled the kernel -O0 and without the framepointer
as it seem crash prefers (rather odd). But want to
see the locals and formals on the stack and walk up and
down the stack and have the context know to crash just
as with gdb.

I'll re-read your crash paper.

Any suggestions?

- -piet

- -------------------------------------------------
crash> bt -l
PID: 1478   TASK: c7ed4570  CPU: 0   COMMAND: "savproxy"
~ #0 [d76bbbb4] crash_kexec at c01ecb41
~    include/asm/system.h: 259
~ #1 [d76bbc24] panic at c018bc33
~    /nethome/piet/src/India-2.6.16.57/linux/kernel/panic.c: 89
~ #2 [d76bbc44] skb_tcp_zero_copy_iovec at c06d67a0
~    /nethome/piet/src/India-2.6.16.57/linux/net/core/skbuff.c: 517
~ #3 [d76bbcb4] tcp_zerocopy_recvmsg at c07e6c14
~    /nethome/piet/src/India-2.6.16.57/linux/net/ipv4/tcp.c: 1792
~ #4 [d76bbd8c] receive_tcp_zero_copy_buffers at c06beb89
~    /nethome/piet/src/India-2.6.16.57/linux/net/socket.c: 3573
~ #5 [d76bbf2c] sys_zcopy_sockop at c06bc077
~    /nethome/piet/src/India-2.6.16.57/linux/net/socket.c: 2536
~ #6 [d76bbfb8] sysenter_entry at c0981544
~    include/asm/system.h: 279
~    EAX: 000000bd  EBX: 00000005  ECX: 00000006  EDX: 08228cd8
~    DS:  007b      ESI: 00000100  ES:  007b      EDI: 00000001
~    SS:  007b      ESP: b59767d0  EBP: b5976828
~    CS:  0073      EIP: ffffe410  ERR: 000000bd  EFLAGS: 00000246
crash> bt
PID: 1478   TASK: c7ed4570  CPU: 0   COMMAND: "savproxy"
~ #0 [d76bbbb4] crash_kexec at c01ecb41
~ #1 [d76bbc24] panic at c018bc33
~ #2 [d76bbc44] skb_tcp_zero_copy_iovec at c06d67a0
~ #3 [d76bbcb4] tcp_zerocopy_recvmsg at c07e6c14
~ #4 [d76bbd8c] receive_tcp_zero_copy_buffers at c06beb89
~ #5 [d76bbf2c] sys_zcopy_sockop at c06bc077
~ #6 [d76bbfb8] sysenter_entry at c0981544
~    EAX: 000000bd  EBX: 00000005  ECX: 00000006  EDX: 08228cd8
~    DS:  007b      ESI: 00000100  ES:  007b      EDI: 00000001
~    SS:  007b      ESP: b59767d0  EBP: b5976828
~    CS:  0073      EIP: ffffe410  ERR: 000000bd  EFLAGS: 00000246
crash>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH0g9fJICwm/rv3hoRAhI3AJ9veuvkY6Nfrycz+xoGwGaTNyijwQCfRzdQ
TKiaPBx3+B4XNCa0n/mfUCc=
=/Pcx
-----END PGP SIGNATURE-----




More information about the Crash-utility mailing list