login
Header Space

 
 

kgdb issue

September 9, 2008 - 7:20pm
Submitted by abhi on September 9, 2008 - 7:20pm.
Linux

Hello
I'm using kgdboe for a ppc based linux-2.6.11. The patches are from linux-2.6.13-kgdb-2.3.tar.
i am able to connect and use it. But sometimes i'm getting calltrace related to net_rx_action. Currently I have set breakpoints in ip_conntrack.ko and have added symbol file in my host machine.
After setting a few breakpoints and debugging :

Program received signal SIGSEGV, Segmentation fault.
net_rx_action (h=Variable "h" is not available.
) at include/linux/list.h:151
151 next->prev = prev;
(gdb) bt
#0 net_rx_action (h=Variable "h" is not available.
) at include/linux/list.h:151
#1 0x80024eb4 in __do_softirq () at kernel/softirq.c:95
#2 0x80024fa4 in do_softirq () at kernel/softirq.c:129
#3 0x80003b30 in do_IRQ (regs=0xaffb3c10) at arch/ppc/kernel/irq.c:158
#4 0x800026f8 in ret_from_except_full ()
#5 0x80047644 in check_poison_obj (cachep=0x0, objp=0x0) at mm/slab.c:1065
#6 0x80047bbc in cache_alloc_debugcheck_after (cachep=0x802bc800, flags=208, objp=0xbd67064c, caller=0x8014a77c) at mm/slab.c:2102
#7 0x8014a77c in alloc_skb (size=64, gfp_mask=Variable "gfp_mask" is not available.
) at include/linux/slab.h:105
#8 0x80148e40 in sock_alloc_send_skb (sk=0xbe0c8c44, size=46, noblock=Variable "noblock" is not available.
) at net/core/sock.c:853
#9 0x20008444 in ?? ()
#10 0x801ac944 in unix_dgram_sendmsg (kiocb=Variable "kiocb" is not available.
) at net/unix/af_unix.c:1296
#11 0x20002448 in ?? ()
#12 0x80147ed8 in sock_aio_write (iocb=0xaffb3e58, ubuf=0x7ffff1ac "<4>Jan 1 00:19:40 kernel: 3: sentinel_htonl ", size=46, pos=dwarf expression stack underflow
) at net/socket.c:545
#13 0x80063410 in do_sync_write (filp=Variable "filp" is not available.
) at fs/read_write.c:261
#14 0x80063a8c in vfs_write (file=0xaf9ecb98, buf=0x7ffff1ac "<4>Jan 1 00:19:40 kernel: 3: sentinel_htonl ", count=46, pos=0xaffb3f20)
at fs/read_write.c:288
#15 0x800644c4 in sys_write (fd=Variable "fd" is not available.
) at fs/read_write.c:339

Could anyone please provide some help on this.

Thanks

speck-geostationary