This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug threads/13719] New: gdb: Cannot find new threads: generic error[testcase]


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]