[Bug 747940] New: gdb: Cannot find new threads: generic error
https://bugzilla.novell.com/show_bug.cgi?id=747940 https://bugzilla.novell.com/show_bug.cgi?id=747940#c0 Summary: gdb: Cannot find new threads: generic error Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: Linux Status: NEW Severity: Major Priority: P5 - None Component: Development AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jengelh@medozas.de QAContact: qa@suse.de Found By: Beta-Customer Blocker: --- gdb folks had hoped that they fixed this one, but unfortunately, the dreaded thread error is still visible in * openSUSE 12.1 x86_64 gdb-7.3 standard * openSUSE 12.1 x86_64 gdb-7.4.50.20120120 from devel:gcc * openSUSE Factory x86_64 gdb-7.3 standard 00:53 vjng-suse:/bin # gdb su GNU gdb (GDB) SUSE (7.3-41.1.2) Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-suse-linux". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /bin/su...done. (gdb) r Starting program: /bin/su [bunch of install-debuginfo hints] [Thread debugging using libthread_db enabled] Cannot find new threads: generic error -- 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=747940 https://bugzilla.novell.com/show_bug.cgi?id=747940#c1 Li Bin <bili@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bili@suse.com --- Comment #1 from Li Bin <bili@suse.com> 2012-02-21 08:24:06 UTC --- Hi, This generic error seems to occur in many applications that use "stealth threads" - e.g. GdkPixbuf, libxml2, or other libraries. pkg-config for some/all of these libraries do not include "-pthread" as a dependency. The program will run, but seriously hangs the system when you try to debug it. The solution is to include "-pthread" in LDFLAGS in your Makefile for the application. The problem remains in gdb-7.1, since it isn't really a gdb problem, although gdb probably should die more gracefully! This workaround was found in this thread from opensuse: http://forums.opensuse.org/english/d...plication.html. My application is unrelated to theirs, but the same fix worked. So maybe we need rebuild the su with '-pthread' in LDFLAGS 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.
https://bugzilla.novell.com/show_bug.cgi?id=747940 https://bugzilla.novell.com/show_bug.cgi?id=747940#c2 --- Comment #2 from Jan Engelhardt <jengelh@medozas.de> 2012-02-21 08:42:44 UTC ---
The solution is to include "-pthread" in LDFLAGS in your Makefile for the application.
su does not use pthreads, therefore adding -pthread or -lpthread seems inappropriate. The gdb problem also only manifests itself if a library is loaded that leads to the loading of libpthread itself. The current trigger is pam_systemd.so, which loads libudev.so, which loads libpthread.so. libudev already has a proper DT_NEEDED entry for libpthread.so, so there is nothing wrong there. -- 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=747940 https://bugzilla.novell.com/show_bug.cgi?id=747940#c3 --- Comment #3 from Jan Engelhardt <jengelh@medozas.de> 2012-02-21 08:44:59 UTC --- Created an attachment (id=477004) --> (http://bugzilla.novell.com/attachment.cgi?id=477004) Testcase Here is a testcase program that triggers the gdb problem. (So we do not need to go digging in su.) Compile (without -lpthread naturally) and execute under 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.
https://bugzilla.novell.com/show_bug.cgi?id=747940 https://bugzilla.novell.com/show_bug.cgi?id=747940#c4 --- Comment #4 from Jan Engelhardt <jengelh@medozas.de> 2012-02-21 09:04:45 UTC --- Reported upstream at http://sourceware.org/bugzilla/show_bug.cgi?id=13719 . -- 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=747940 https://bugzilla.novell.com/show_bug.cgi?id=747940#c kk zhang <kkzhang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kkzhang@novell.com AssignedTo|bnc-team-screening@forge.pr |bili@suse.com |ovo.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.
https://bugzilla.novell.com/show_bug.cgi?id=747940 https://bugzilla.novell.com/show_bug.cgi?id=747940#c5 Li Bin <bili@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bili@suse.com |rguenther@suse.com --- Comment #5 from Li Bin <bili@suse.com> 2012-03-31 09:27:09 UTC --- Assign to gdb maintainer. -- 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=747940 https://bugzilla.novell.com/show_bug.cgi?id=747940#c6 Richard Guenther <rguenther@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |UPSTREAM --- Comment #6 from Richard Guenther <rguenther@suse.com> 2012-04-02 11:58:19 UTC --- Upstream. -- 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.
participants (1)
-
bugzilla_noreply@novell.com