public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug threads/13719] New: gdb: Cannot find new threads: generic error [testcase]
@ 2012-02-21 9:05 jengelh at medozas dot de
2012-04-02 12:01 ` [Bug threads/13719] " rguenth at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: jengelh at medozas dot de @ 2012-02-21 9:05 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13719
Bug #: 13719
Summary: gdb: Cannot find new threads: generic error [testcase]
Product: gdb
Version: 7.3
Status: NEW
Severity: normal
Priority: P2
Component: threads
AssignedTo: unassigned@sourceware.org
ReportedBy: jengelh@medozas.de
Classification: Unclassified
Created attachment 6232
--> http://sourceware.org/bugzilla/attachment.cgi?id=6232
C file
If libpthread.so is not loaded right at the start of the traced program, gdb
produces a thread error once libpthread.so gets loaded, for example by way of
dlopen.
This is on gdb-7.3, but it also occurs with gdb-7.4.50.20120120. (glibc-2.14.1
and glibc-2.15)
$ gcc testcase.c -o tc -ldl
$ gdb tc
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 /dev/shm/tc...done.
(gdb) r
Starting program: /dev/shm/tc
[Thread debugging using libthread_db enabled]
Cannot find new threads: generic error
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug threads/13719] gdb: Cannot find new threads: generic error [testcase]
2012-02-21 9:05 [Bug threads/13719] New: gdb: Cannot find new threads: generic error [testcase] jengelh at medozas dot de
@ 2012-04-02 12:01 ` rguenth at gcc dot gnu.org
2012-04-02 14:43 ` tromey at redhat dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-04-02 12:01 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13719
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu.org
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug threads/13719] gdb: Cannot find new threads: generic error [testcase]
2012-02-21 9:05 [Bug threads/13719] New: gdb: Cannot find new threads: generic error [testcase] jengelh at medozas dot de
2012-04-02 12:01 ` [Bug threads/13719] " rguenth at gcc dot gnu.org
@ 2012-04-02 14:43 ` tromey at redhat dot com
2012-04-02 14:49 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: tromey at redhat dot com @ 2012-04-02 14:43 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13719
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at redhat dot com
--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2012-04-02 14:42:43 UTC ---
FWIW, I could not reproduce this on Fedora 16:
(gdb) run
Starting program: /home/tromey/gnu/PRS/gdb13719/pr
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[Inferior 1 (process 21325) exited normally]
[Inferior 21325 exited]
I even disabled debuginfo lookup:
(gdb) set debug-file-directory /
... and it still worked.
I have:
barimba. rpm -q glibc
glibc-2.14.90-24.fc16.6.x86_64
I tried CVS HEAD (from last week or so), 7.3, 7.4, and the system gdb.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug threads/13719] gdb: Cannot find new threads: generic error [testcase]
2012-02-21 9:05 [Bug threads/13719] New: gdb: Cannot find new threads: generic error [testcase] jengelh at medozas dot de
2012-04-02 12:01 ` [Bug threads/13719] " rguenth at gcc dot gnu.org
2012-04-02 14:43 ` tromey at redhat dot com
@ 2012-04-02 14:49 ` rguenth at gcc dot gnu.org
2012-07-22 20:08 ` jengelh at inai dot de
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-04-02 14:49 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13719
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-04-02 14:47:58 UTC ---
I can reproduce it with gdb built from gdb-7.3-41.fc15.src.rpm and glibc
2.14.1.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug threads/13719] gdb: Cannot find new threads: generic error [testcase]
2012-02-21 9:05 [Bug threads/13719] New: gdb: Cannot find new threads: generic error [testcase] jengelh at medozas dot de
` (2 preceding siblings ...)
2012-04-02 14:49 ` rguenth at gcc dot gnu.org
@ 2012-07-22 20:08 ` jengelh at inai dot de
2012-07-23 7:55 ` rguenther at suse dot de
2012-07-23 8:32 ` jan.kratochvil at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: jengelh at inai dot de @ 2012-07-22 20:08 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13719
--- Comment #3 from Jan Engelhardt <jengelh at inai dot de> 2012-07-22 20:07:49 UTC ---
Have you found anything yet, Richard?
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug threads/13719] gdb: Cannot find new threads: generic error [testcase]
2012-02-21 9:05 [Bug threads/13719] New: gdb: Cannot find new threads: generic error [testcase] jengelh at medozas dot de
` (3 preceding siblings ...)
2012-07-22 20:08 ` jengelh at inai dot de
@ 2012-07-23 7:55 ` rguenther at suse dot de
2012-07-23 8:32 ` jan.kratochvil at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: rguenther at suse dot de @ 2012-07-23 7:55 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13719
rguenther at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenther at suse dot de
--- Comment #4 from rguenther at suse dot de 2012-07-23 07:55:01 UTC ---
I didn't investigate, just confirmed.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug threads/13719] gdb: Cannot find new threads: generic error [testcase]
2012-02-21 9:05 [Bug threads/13719] New: gdb: Cannot find new threads: generic error [testcase] jengelh at medozas dot de
` (4 preceding siblings ...)
2012-07-23 7:55 ` rguenther at suse dot de
@ 2012-07-23 8:32 ` jan.kratochvil at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-07-23 8:32 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13719
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jan.kratochvil at redhat
| |dot com
--- Comment #5 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-07-23 08:30:47 UTC ---
This is PR 2328 duplicate:
_dl_debug_state() RT_CONSISTENT called too early
The problem does not happen if libpthread.so is prelinked (and it is
successfully loaded at its prelinked address). This is probably why Tom did
not reproduce it in Comment 1.
It is going to be in gdb-7.6 as posted:
[RFA 0/4 take 2] Improved linker-debugger interface
http://sourceware.org/ml/gdb-patches/2012-07/msg00330.html
It requires also glibc systemtap probes for its functionality.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-07-23 8:32 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-21 9:05 [Bug threads/13719] New: gdb: Cannot find new threads: generic error [testcase] jengelh at medozas dot de
2012-04-02 12:01 ` [Bug threads/13719] " rguenth at gcc dot gnu.org
2012-04-02 14:43 ` tromey at redhat dot com
2012-04-02 14:49 ` rguenth at gcc dot gnu.org
2012-07-22 20:08 ` jengelh at inai dot de
2012-07-23 7:55 ` rguenther at suse dot de
2012-07-23 8:32 ` jan.kratochvil at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).