[Bug 258433] New: gdb reports "Failed to read a valid object file image from memory." when debugging
https://bugzilla.novell.com/show_bug.cgi?id=258433 Summary: gdb reports "Failed to read a valid object file image from memory." when debugging Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: rnissl@gmx.de QAContact: qa@suse.de Before I have upgraded my machine to 10.2, I was able to debug for example deadlocks in xine by attaching ddd (and therefore gdb) to xine for having a look at the backtraces of xine's threads. Since 10.2, this doesn't work anymore, i. e. the backtraces do not contain useful symbol names. I'm sure to have all symbol files installed as gdb doesn't complain about missing symbols. Though I'm not sure whether this backtrace problem is related to above message, but at least in 10.1 I didn't get this message and the backtrace was ok. To get this message, simply do the following: gdb sleep
run 300
-- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258433 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |schwab@novell.com |screening@forge.provo.novell| |.com | -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258433 schwab@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|schwab@novell.com |kernel-maintainers@forge.provo.novell.com Component|Other |Kernel ------- Comment #1 from schwab@novell.com 2007-03-28 13:23 MST ------- This is a kernel bug. The compat vDSO mapped to ffffe000, but that is not readable via ptrace. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258433 gregkh@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |psankar@novell.com ------- Comment #2 from gregkh@novell.com 2007-03-29 11:28 MST ------- *** Bug 249255 has been marked as a duplicate of this bug. *** -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258433 ------- Comment #3 from rnissl@gmx.de 2007-04-03 11:49 MST ------- I've read the comments on the duplicate bug and installed the kernel RPM of openSUSE 10.3 Alpha2 on my openSUSE 10.2 system. As a result the above message is gone and the backtrace is OK. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258433 kern@sibbald.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kern@sibbald.com ------- Comment #4 from kern@sibbald.com 2007-04-14 15:15 MST ------- I'm experience the same problem reported here. This is a *critical* problem for a developer like myself. It would be helpful if someone would attach an exact link to this bug report pointing to a kernel that works -- I'll try to find the 10.3 Alpha kernel. In addition to the reported problem, when running gdb in many cases the message SEG FAULT will appear, gdb "exits" and I am back at a command prompt -- note, this is not my program that is getting a seg fault. Both problems happen on kernel-2.6.18.8-0.1-default Example output for problem of no symbols reported by gdb when the program *is* compiled with the same Makefiles used for debugging for years now. gdb bacula-sd GNU gdb 6.5 Copyright (C) 2006 Free Software Foundation, Inc. .. This GDB was configured as "i586-suse-linux"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run -s -f -c stored.conf Starting program: /home/kern/bacula/k/src/stored/bacula-sd -s -f -c stored.conf Failed to read a valid object file image from memory. [Thread debugging using libthread_db enabled] [New Thread -1212569904 (LWP 4867)] [New Thread -1214227568 (LWP 4874)] .. (I type a ctl=c at this point) Program received signal SIGINT, Interrupt. [Switching to Thread -1212569904 (LWP 4867)] 0xb7fc9410 in ?? () (gdb) where #0 0xb7fc9410 in ?? () #1 0xbfab1788 in ?? () #2 0x00000000 in ?? () (gdb) thread apply all bt Thread 3 (Thread -1222620272 (LWP 4875)): #0 0xb7fc9410 in ?? () #1 0xb72043a4 in ?? () #2 0x00000043 in ?? () #3 0x00000000 in ?? () Thread 1 (Thread -1212569904 (LWP 4867)): #0 0xb7fc9410 in ?? () #1 0xbfab1788 in ?? () #2 0x00000000 in ?? () (gdb) -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258433 ------- Comment #5 from kern@sibbald.com 2007-04-14 15:54 MST ------- I can confirm that your 2.6.21-rc5-git13-2-default kernel pulled from the Alpha3 cd1 resolves the problem. I had to install it with --no-deps to get around armor dependencies, and of course, there are armor error messages when booting, but otherwise it seems to work. It would be preferable if you could supply a 10.2 kernel that fixes this problem. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258433 ------- Comment #6 from kern@sibbald.com 2007-06-01 03:26 MST ------- This major bug has been outstanding two months now, and it is still marked as NEW. Could you provide an estimate when you will release a new 10.2 kernel with this problem fixed? I saw a comment from someone at SuSE who asked why this was urgent, here is my response. I consider this a major problem, and for me it is not acceptable to be running on a git (10.3) kernel in order to debug my programs for several reasons: 1. The git kerneal is an alpha (or beta) kernel and not made to run on 10.2 2. For the above reason does not load correctly with armour probably because it needs new versions, but there is no procedure for doing this. 3. The kernel I am using 2.6.21-rc5-git13-2-default is not only alpha, but it is broken -- it does not handle opening USB ports correctly, reported in another bug (USB cameras can no longer connect) so I am forced to boot back and forth between kernels, one for debugging, one for accessing my camera. I really like your SuSE distro (switched to SuSE in Jan 2007), however this bug means your released kernel is badly broken for developers. I understand it is a pain for you guys to update kernels when you want to focus on 10.3, but if you don't quickly fix these kinds of major bugs I think you will find that some developers such as myself will move to another distro that gives a higher priority to these kinds of problems. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258433 petr@scribus.info changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |petr@scribus.info ------- Comment #8 from petr@scribus.info 2007-06-15 02:19 MST ------- I can confirm this ugly behaviour and I'm voting for quick fix too. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258433#c9
Ryan Partridge
https://bugzilla.novell.com/show_bug.cgi?id=258433#c10
Andre Klapper
https://bugzilla.novell.com/show_bug.cgi?id=258433#c11
--- Comment #11 from Petr Vanek
https://bugzilla.novell.com/show_bug.cgi?id=258433#c12
--- Comment #12 from Kern Sibbald
https://bugzilla.novell.com/show_bug.cgi?id=258433#c13
--- Comment #13 from Andi Kleen
https://bugzilla.novell.com/show_bug.cgi?id=258433#c14
--- Comment #14 from Kern Sibbald
https://bugzilla.novell.com/show_bug.cgi?id=258433#c15
--- Comment #15 from Andi Kleen
https://bugzilla.novell.com/show_bug.cgi?id=258433#c16
Andi Kleen
https://bugzilla.novell.com/show_bug.cgi?id=258433#c17
--- Comment #17 from Andre Klapper
https://bugzilla.novell.com/show_bug.cgi?id=258433#c18
--- Comment #18 from Andi Kleen
https://bugzilla.novell.com/show_bug.cgi?id=258433#c19
--- Comment #19 from Andre Klapper
https://bugzilla.novell.com/show_bug.cgi?id=258433#c20
--- Comment #20 from Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=258433#c21
--- Comment #21 from Andi Kleen
https://bugzilla.novell.com/show_bug.cgi?id=258433#c22
Reinhard Nißl
run 300
reports already the error message of this bug. Hitting CTRL+C and typing bt shows a backtrace without symbols. During the past weeks I've been using kernel 2.6.21-3-default from openSUSE 10.3 which seems to be most compatible to 10.2 and stable. Repeating the above sequence with this newer kernel doesn't report the error message and shows a proper backtrace with symbols. My system is almost 10.2 as I've updated some packages like gdb, ddd, gcc and kernel with packages from openSUSE 10.3. Here is some information which could be of interest:
rpm -q gdb gdb-6.6.50.20070511-7
rpm -q glibc glibc-2.5-25
uname -a Linux video 2.6.21-3-default #1 SMP Thu Apr 26 11:49:27 UTC 2007 i686 i686 i386 GNU/Linux
-- 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=258433#c23
--- Comment #23 from Kern Sibbald
https://bugzilla.novell.com/show_bug.cgi?id=258433#c24
--- Comment #24 from Kern Sibbald
https://bugzilla.novell.com/show_bug.cgi?id=258433#c25
--- Comment #25 from Kern Sibbald
https://bugzilla.novell.com/show_bug.cgi?id=258433#c26
--- Comment #26 from Kern Sibbald
https://bugzilla.novell.com/show_bug.cgi?id=258433#c27
--- Comment #27 from Kern Sibbald
https://bugzilla.novell.com/show_bug.cgi?id=258433#c28
Srinivasa Ragavan V
https://bugzilla.novell.com/show_bug.cgi?id=258433#c29
Andreas Jaeger
If the debugger has problems with the vdso you can disable it with echo 0 > /proc/sys/vm/vdso_enabled
I think this is a workaround. We should document it nevertheless somewhere.
Re #11: Petr, if you really need bug fixes for old versions in a specific time you'll need a support contract, sorry. For openSUSE the deal is either upgrade or wait.
Which is correct. On the other hand, we do fix really critical bugs. If there's a save and non-intrusive patch for this problem, I would approve to include with the next kernel update. We would not do an extra kernel update for this. -- 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=258433#c30
--- Comment #30 from Sankar P
With 'echo 0 > /proc/sys/vm/vdso_enabled' I see the that the traces are fine. I have tried 3-4 crashes and bug-buddy seems to get the traces fine.
I tried this workaround. Even then I do not get traces for all crashes. On some crashes, gdb segfaults and bug-buddy launches (with a bad-stacktrace). -- 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=258433#c31
--- Comment #31 from Andi Kleen
https://bugzilla.novell.com/show_bug.cgi?id=258433#c32
--- Comment #32 from Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=258433#c33
--- Comment #33 from Sankar P
https://bugzilla.novell.com/show_bug.cgi?id=258433#c34
--- Comment #34 from Loïc Minier
https://bugzilla.novell.com/show_bug.cgi?id=258433#c35
Robert Kaiser
https://bugzilla.novell.com/show_bug.cgi?id=258433#c36
--- Comment #36 from Srinivasa Ragavan V
If the debugger has problems with the vdso you can disable it with echo 0 > /proc/sys/vm/vdso_enabled
Btw, it seems like 10.3 is also broken. When I try this work-around my machine freezes. Seems like a blocker to me. -- 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=258433#c37
--- Comment #37 from Kern Sibbald
https://bugzilla.novell.com/show_bug.cgi?id=258433#c41
Alberto Passalacqua
https://bugzilla.novell.com/show_bug.cgi?id=258433#c43
Andi Kleen
https://bugzilla.novell.com/show_bug.cgi?id=258433#c44
--- Comment #44 from Alberto Passalacqua
In general i must say if you people here had given reproducible test cases I could have told you much earlier about this fix which had been around for a long time.
To be frank, we are not expert but users, and I think it's already enough if we provide reports and information, for what we can. In general, you're supposed to check and fix bugs, maybe avoiding arrogant answers when someone is trying to help. With kind regards. -- 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=258433#c45
--- Comment #45 from Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=258433#c46
--- Comment #46 from Andre Klapper
https://bugzilla.novell.com/show_bug.cgi?id=258433#c47
--- Comment #47 from Andi Kleen
https://bugzilla.novell.com/show_bug.cgi?id=258433#c48
--- Comment #48 from Andre Klapper
https://bugzilla.novell.com/show_bug.cgi?id=258433#c49
--- Comment #49 from Andre Klapper
https://bugzilla.novell.com/show_bug.cgi?id=258433#c50
--- Comment #50 from Andi Kleen
https://bugzilla.novell.com/show_bug.cgi?id=258433#c51
--- Comment #51 from Klaus Wagner
participants (1)
-
bugzilla_noreply@novell.com