[Bug 390722] New: gdb - backtrace grace ?
https://bugzilla.novell.com/show_bug.cgi?id=390722 User mmeeks@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=390722#c339730 Summary: gdb - backtrace grace ? Product: openSUSE 11.0 Version: Beta 2 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: mmeeks@novell.com QAContact: qa@suse.de CC: hpj@novell.com, lpechacek@novell.com Found By: --- So - gdb is working less well than I remember it working in the past, and less well than it could be hoped I think :-) This is really an analog of #339730# to which I will also attach my test case. Suffice it to say that most apps that I connect gdb to fail to give a useful stack trace, unless I have full debuginfo installed for all the packages working from the bottom to the top of the stack. As a banal example here is console kit: (gdb) bt #0 0xffffe430 in __kernel_vsyscall () #1 0xb7e163f9 in ioctl () from /lib/libc.so.6 #2 0x0805b810 in ?? () #3 0x0000000a in ?? () #4 0x00005607 in ?? () #5 0x00000030 in ?? () #6 0x00000030 in ?? () #7 0xb7f71770 in g__g_thread_lock () from /usr/lib/libglib-2.0.so.0 #8 0xb7f90ff4 in ?? () from /lib/libpthread.so.0 #9 0xb7f71770 in g__g_thread_lock () from /usr/lib/libglib-2.0.so.0 #10 0x08062444 in ?? () #11 0x08062420 in ?? () #12 0x08062513 in ?? () #13 0xb7a50b58 in ?? () #14 0xb7f70ff4 in ?? () from /usr/lib/libglib-2.0.so.0 now I install ConsoleKit-debuginfo and try again: [Switching to thread 20 (Thread 0xb7a50b90 (LWP 2253))]#0 0xffffe430 in __kernel_vsyscall () (gdb) bt #0 0xffffe430 in __kernel_vsyscall () #1 0xb7e163f9 in ioctl () from /lib/libc.so.6 #2 0x0805b810 in ck_wait_for_active_console_num (console_fd=10, num=48) at ck-sysdeps-unix.c:266 #3 0x080518a2 in vt_thread_start (data=0x8076918) at ck-vt-monitor.c:322 #4 0xb7f2039f in g_thread_create_proxy (data=0x8076928) at gthread.c:635 #5 0xb7f82175 in start_thread (arg=0xb7a50b90) at pthread_create.c:297 #6 0xb7e1ddde in clone () from /lib/libc.so.6 Same running process - same system, no other debuginfo installed [ NB. I have debuginfo for libc & gthread) so ... Anyhow - I created a more minimal test case, which I'll attach. It would be -extremely- useful wrt. debugging things to have a fix here :-) [ also for SLED ] -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=390722
User mmeeks@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c1
--- Comment #1 from Michael Meeks
https://bugzilla.novell.com/show_bug.cgi?id=390722
Philipp Thomas
https://bugzilla.novell.com/show_bug.cgi?id=390722
User schwab@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c2
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=390722
User mmeeks@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c3
--- Comment #3 from Michael Meeks
https://bugzilla.novell.com/show_bug.cgi?id=390722
User schwab@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c4
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=390722
User mmeeks@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c5
Michael Meeks
https://bugzilla.novell.com/show_bug.cgi?id=390722
User schwab@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c6
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=390722
User mmeeks@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c7
--- Comment #7 from Michael Meeks
https://bugzilla.novell.com/show_bug.cgi?id=390722
User federico@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c8
Federico Mena Quintero
https://bugzilla.novell.com/show_bug.cgi?id=390722
User mmeeks@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c9
--- Comment #9 from Michael Meeks
https://bugzilla.novell.com/show_bug.cgi?id=390722
User schwab@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c10
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=390722
User matz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c11
Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=390722
User schwab@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c12
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=390722
User matz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c13
Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=390722
User schwab@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c14
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=390722
User matz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c15
Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=390722
User schwab@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c16
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=390722
User matz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c17
--- Comment #17 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=390722
User schwab@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c19
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=390722
User lpechacek@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c20
Libor Pechacek
https://bugzilla.novell.com/show_bug.cgi?id=390722
User mmeeks@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c22
--- Comment #22 from Michael Meeks
https://bugzilla.novell.com/show_bug.cgi?id=390722
User mmeeks@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c23
--- Comment #23 from Michael Meeks
https://bugzilla.novell.com/show_bug.cgi?id=390722
User mmeeks@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c24
--- Comment #24 from Michael Meeks
https://bugzilla.novell.com/show_bug.cgi?id=390722
User matz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c25
--- Comment #25 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=390722
User mmeeks@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c26
--- Comment #26 from Michael Meeks
https://bugzilla.novell.com/show_bug.cgi?id=390722
User matz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c27
--- Comment #27 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=390722
User hpj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c28
--- Comment #28 from Hans Petter Jansson
https://bugzilla.novell.com/show_bug.cgi?id=390722
User federico@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c29
--- Comment #29 from Federico Mena Quintero
https://bugzilla.novell.com/show_bug.cgi?id=390722
User mwelinder@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c30
Morten Welinder
https://bugzilla.novell.com/show_bug.cgi?id=390722
User Janne.Karhunen@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c31
Janne Karhunen
(The speculation about -fomit-frame-pointer doesn't apply either, because we don't compile with that option on i386, otherwise also valgrind would be lost)
A while back I experimented with libsegfault by adding it threading support and some other fancy stuff such as 'file:line' DWARF data extract. Once testing that prior to sending it out to libc-alpha I found the frame pointer trail to be highly unreliable even when 'omit-frame-pointer' is not being used. Heck, even libc sleep() seemed to be using ebp/rbp for something else destroying the trail :/ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=390722
User matz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c32
--- Comment #32 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=390722
User Janne.Karhunen@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c33
--- Comment #33 from Janne Karhunen
https://bugzilla.novell.com/show_bug.cgi?id=390722
User aj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c41
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=390722
User Janne.Karhunen@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c42
--- Comment #42 from Janne Karhunen
https://bugzilla.novell.com/show_bug.cgi?id=390722
User mmeeks@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c43
--- Comment #43 from Michael Meeks
https://bugzilla.novell.com/show_bug.cgi?id=390722
User matz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c44
--- Comment #44 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=390722
User matz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c45
--- Comment #45 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=390722
Swamp Script User
https://bugzilla.novell.com/show_bug.cgi?id=390722
User psankar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390722#c46
--- Comment #46 from Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=390722
Philipp Thomas
participants (1)
-
bugzilla_noreply@novell.com