This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 2696
  NPTL libthread_db misbehaves at startup of a static executable Last modified: 2007-06-27 15:49:55
     Query page      Enter new bug
Bug#: 2696   Hardware:   Reporter: Daniel Jacobowitz <drow@sources.redhat.com>
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: RESOLVED   Priority:  
Resolution: FIXED   Severity:  
Assigned To: Roland McGrath <roland@gnu.org>   Target Milestone:  
Flags: Requestee:
  backport ()
  examined ()
  testsuite ()
Summary:
Keywords:

Attachment Description Type Created Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 2696 depends on: Show dependency tree
Show dependency graph
Bug 2696 blocks:

Additional Comments:


Leave as RESOLVED FIXED
Reopen bug
Mark bug as VERIFIED

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 2006-05-24 20:27 Opened: 2006-05-24 20:19
In short, there is no way to either enable libthread_db at _start time for a
static binary, or find the appropriate time to initialize it later.  I propose
allowing it to initialize, and then reporting the "creation" of the first thread
once the pthreads library is initialized.

The patch is here:

  http://sourceware.org/ml/libc-alpha/2006-03/msg00014.html

Without a fix for this problem, GDB can not debug static executables which use NPTL.

------- Additional Comment #1 From Roland McGrath 2006-05-24 20:27 -------
I'm responsible for nptl_db and recall some poking related to this in the past.
I'll look into it, but it won't be before June 5 as I'm leaving for vacation now.

------- Additional Comment #2 From Daniel Jacobowitz 2006-10-25 15:03 -------
Roland, did you ever get a chance to look at this?  Another user just reported a
similar problem on gdb@.

------- Additional Comment #3 From Roland McGrath 2006-10-25 18:55 -------
Sorry, still back burner.  It will be a little while longer before I get to my
libc backlog.

------- Additional Comment #4 From Daniel Jacobowitz 2007-06-27 15:49 -------
Roland checked in an NPTL patch for this and I fixed gdb.

     Query page      Enter new bug
Actions: New | Query | bug # | Reports | Requests   New Account | Log In