On Thu, Jun 12, 2008 at 03:58:18PM +0000, Daniel Jacobowitz wrote: > severity 485955 normal > thanks > > On Thu, Jun 12, 2008 at 05:41:02PM +0200, Pierre Habouzit wrote: > > Since the 6.8 releases, gdb totally fails to detect stack frames > > correctly, whereas the lenny version (6.7.1-2 atm) works fine. My > > architecture is amd64, but I've seen the same issues on i386 FWIW. > > I've seen no evidence this bug affects anyone else and the package is > clearly not unusable. Downgrading. > > > The code is C, with quite a few inlines, changing the gcc debug levels > > (-g/-g3/-ggdb3) or even building with -O0 -fno-inline doesn't change a > > damn thing. > > > > This renders gdb mostly unusable because it's totally unable to dump > > useful backtraces (with source files and files lineno's) on segfaults. > > Can you provide a test case? Or even an example session? I can't > read your mind...
With gdb from sid: (gdb) bt #0 sms_emi_ack_5X (out=0x1b1dc88, msg=0x7fff637d97e0) at lib-inet/sms-emi.c:230 #1 0x0000000000404973 in ?? () #2 0x00000000004182f7 in ?? () #3 0x0000000000412400 in sms_parse_emi (in=0x1b1dc70, out=0x1b1dc88, on_msg=<value optimized out>, priv=<value optimized out>) at lib-inet/sms-emi-parse.c:752 #4 0x0000000000418f25 in ?? () #5 0x0000000000406850 in agent_dispatch_epoll (timeout=<value optimized out>) at lib-inet/agent.c:1076 #6 0x0000000000403a2f in main (argc=<value optimized out>, argv=<value optimized out>) at simulator/smsc/smsc.c:90 With gdb from etch: (gdb) bt #0 sms_emi_ack_5X (out=0x110dc88, msg=0x7fff73230240) at lib-inet/sms-emi.c:230 #1 0x0000000000404973 in smsc_emi_on_query (we=0x110dbe0, msg=0x7fff73230240) at simulator/smsc/emi_smsc.c:232 #2 0x00000000004182f7 in emi_common_hook (msg=0x7fff73230240, _w=<value optimized out>) at lib-inet/smsmachines.c:269 #3 0x0000000000412400 in sms_parse_emi (in=0x110dc70, out=0x110dc88, on_msg=<value optimized out>, priv=<value optimized out>) at lib-inet/sms-emi-parse.c:752 #4 0x0000000000418f25 in emilistener_event (w=0x110a0a0, kind=<value optimized out>) at lib-inet/smsmachines.c:379 #5 0x0000000000406850 in agent_dispatch_epoll (timeout=<value optimized out>) at lib-inet/agent.c:1076 #6 0x0000000000403a2f in main (argc=<value optimized out>, argv=<value optimized out>) at simulator/smsc/smsc.c:90 I here just ran gdb ./myexe and placed a breakpoint on sms_emi_ack_5X. It seems there is something fishy with pointer to functions as emilistener_event emi_common_hook and smsc_emi_on_query are callbacks. I'm sorry but I just can't give you access to that code :/ -- ·O· Pierre Habouzit ··O [EMAIL PROTECTED] OOO http://www.madism.org
pgpiVwijD7wxB.pgp
Description: PGP signature