This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: generic error with a statically linked multithreaded program
- From: Atsushi Nemoto <anemo at mba dot ocn dot ne dot jp>
- To: gdb at sourceware dot org
- Date: Thu, 05 Apr 2007 19:51:48 +0900 (JST)
- Subject: Re: generic error with a statically linked multithreaded program
- References: <20070405.145806.89068923.nemoto@toshiba-tops.co.jp>
On Thu, 05 Apr 2007 14:58:06 +0900 (JST), Atsushi Nemoto <anemo@mba.ocn.ne.jp> wrote:
> I found gdb can not run a statically linked multithreaded program on
> Fedora Core 6.
And here is an output with debug lin-lwp.
(gdb) set debug lin-lwp 1
(gdb) run
Starting program: ./hello
LLW: waitpid 12681 received Trace/breakpoint trap (stopped)
LLW: Candidate event Trace/breakpoint trap (stopped) in process 12681.
LLTA: PTRACE_PEEKUSER process 12681, 0, 0 (OK)
LLW: trap_ptid is process 12681.
LLR: Preparing to resume process -1, 0, inferior_ptid process -1
LLR: PTRACE_CONT process 12681, 0 (resume event thread)
LLW: waitpid 12681 received Trace/breakpoint trap (stopped)
LLW: Candidate event Trace/breakpoint trap (stopped) in process 12681.
LLTA: PTRACE_PEEKUSER process 12681, 0, 0 (OK)
LLW: trap_ptid is process 12681.
[Thread debugging using libthread_db enabled]
Cannot find new threads: generic error
(gdb) quit
The program is running. Exit anyway? (y or n) y
KC: PTRACE_KILL process 12681, 0, 0 (OK)
KWC: wait process 12681 received unk.
Then gdb hangs.
---
Atsushi Nemoto