This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
gdb/2421: followed child breaks in _dl_debug_state
- From: tromey at redhat dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 2 Mar 2008 17:12:36 -0000
- Subject: gdb/2421: followed child breaks in _dl_debug_state
- Reply-to: tromey at redhat dot com
>Number: 2421
>Category: gdb
>Synopsis: followed child breaks in _dl_debug_state
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Mar 02 17:18:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Tom Tromey <tromey@redhat.com>
>Release: unknown-1.0
>Organization:
>Environment:
x86 FC-6
>Description:
I set detach-on-fork=off and follow-fork-mode=child.
I applied my fix for PR 2420.
Then I ran gcc. This exec'd cc1, which gdb followed.
At this point, cc1 stopped. (Note also the warning here...)
(gdb) r
Starting program: /home/tromey/gnu/incremental/install/bin/gcc /home/tromey/gnu/incremental/trunk/gcc/testsuite/gcc.dg/cpp/19930510-1.c -ansi -pedantic-errors -fno-show-column -S -o 19930510-1.s
[Thread debugging using libthread_db enabled]
[New Thread 0xb7fe96c0 (LWP 29885)]
[New process 29888]
Executing new program: /home/tromey/gnu/incremental/install/libexec/gcc/i686-pc-linux-gnu/4.4.0/cc1
warning: Cannot initialize thread debugging library: generic error
[New process 29888]
[Thread debugging using libthread_db enabled]
[New Thread 0xb7fe96c0 (LWP 29888)]
Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 0xb7fe96c0 (LWP 29888)]
0x00a3d7a1 in _dl_debug_state () from /lib/ld-linux.so.2
(gdb) bt
#0 0x00a3d7a1 in _dl_debug_state () from /lib/ld-linux.so.2
#1 0x00a329e6 in dl_main () from /lib/ld-linux.so.2
#2 0x00a42d6b in _dl_sysdep_start () from /lib/ld-linux.so.2
#3 0x00a302b8 in _dl_start () from /lib/ld-linux.so.2
#4 0x00a2f817 in _start () from /lib/ld-linux.so.2
If I "cont" here, I can debug cc1 ok.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: