[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
https://bugzilla.novell.com/show_bug.cgi?id=747940
https://bugzilla.novell.com/show_bug.cgi?id=747940#c2
--- Comment #2 from Jan Engelhardt
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
https://bugzilla.novell.com/show_bug.cgi?id=747940
https://bugzilla.novell.com/show_bug.cgi?id=747940#c4
--- Comment #4 from Jan Engelhardt
https://bugzilla.novell.com/show_bug.cgi?id=747940
https://bugzilla.novell.com/show_bug.cgi?id=747940#c
kk zhang
https://bugzilla.novell.com/show_bug.cgi?id=747940
https://bugzilla.novell.com/show_bug.cgi?id=747940#c5
Li Bin
https://bugzilla.novell.com/show_bug.cgi?id=747940
https://bugzilla.novell.com/show_bug.cgi?id=747940#c6
Richard Guenther
participants (1)
-
bugzilla_noreply@novell.com