This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
Re: threads/2321: After upgrading glibc to v. 2.6.1, receive errorstating "ptrace: No such process."
- From: Kris Wong <wongk at seapine dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 25 Oct 2007 12:48:02 -0000
- Subject: Re: threads/2321: After upgrading glibc to v. 2.6.1, receive errorstating "ptrace: No such process."
- Reply-to: Kris Wong <wongk at seapine dot com>
The following reply was made to PR threads/2321; it has been noted by GNATS.
From: Kris Wong <wongk@seapine.com>
To: "gdb-gnats@sources.redhat.com" <gdb-gnats@sources.redhat.com>
Cc:
Subject: Re: threads/2321: After upgrading glibc to v. 2.6.1, receive error
stating "ptrace: No such process."
Date: Thu, 25 Oct 2007 08:40:43 -0400
Here is a snippet of some output from gdb while exhibiting the error. I sh=
ould note, I cannot reproduce this every time a breakpoint is hit using ver=
sion 6.7, but it is still reproducible.
LLW: waitpid 21981 received Trace/breakpoint trap (stopped)
LLW: Handling extended status 0x03057f
LHEW: Got clone event from LWP 21981, resuming
LLW: waitpid 22076 received Trace/breakpoint trap (stopped)
LLTA: PTRACE_PEEKUSER LWP 22076, 0, 0 (OK)
LLW: Candidate event Trace/breakpoint trap (stopped) in LWP 22076.
SC: kill LWP 21994 **<SIGSTOP>**
SC: lwp kill 0 ERRNO-OK
SC: kill LWP 21987 **<SIGSTOP>**
SC: lwp kill 0 ERRNO-OK
SC: kill LWP 21986 **<SIGSTOP>**
SC: lwp kill 0 ERRNO-OK
SC: kill LWP 21985 **<SIGSTOP>**
SC: lwp kill 0 ERRNO-OK
SC: kill LWP 21983 **<SIGSTOP>**
SC: lwp kill 0 ERRNO-OK
SC: kill LWP 21982 **<SIGSTOP>**
SC: lwp kill 0 ERRNO-OK
SC: kill LWP 21981 **<SIGSTOP>**
SC: lwp kill 0 ERRNO-OK
SC: kill LWP 21978 **<SIGSTOP>**
SC: lwp kill 0 ERRNO-OK
WL: waitpid LWP 21994 received Stopped (signal) (stopped)
WL: waitpid LWP 21987 received Stopped (signal) (stopped)
WL: waitpid LWP 21986 received Stopped (signal) (stopped)
WL: waitpid LWP 21985 received Stopped (signal) (stopped)
WL: waitpid LWP 21983 received Stopped (signal) (stopped)
WL: waitpid LWP 21982 received Stopped (signal) (stopped)
WL: waitpid LWP 21981 received Stopped (signal) (stopped)
WL: waitpid LWP 21978 received Stopped (signal) (stopped)
LLW: trap_ptid is LWP 22076.
[New LWP 22076]
LLR: Preparing to resume process -1, 0, inferior_ptid LWP 22044
RC: PTRACE_CONT LWP 22076, 0, 0 (resume sibling)
RC: PTRACE_CONT LWP 21994, 0, 0 (resume sibling)
RC: PTRACE_CONT LWP 21987, 0, 0 (resume sibling)
RC: PTRACE_CONT LWP 21986, 0, 0 (resume sibling)
RC: PTRACE_CONT LWP 21985, 0, 0 (resume sibling)
RC: PTRACE_CONT LWP 21983, 0, 0 (resume sibling)
RC: PTRACE_CONT LWP 21982, 0, 0 (resume sibling)
RC: PTRACE_CONT LWP 21981, 0, 0 (resume sibling)
RC: PTRACE_CONT LWP 21978, 0, 0 (resume sibling)
ptrace: No such process.
(gdb) bt
Couldn't get registers: No such process.
Couldn't get registers: No such process.
(gdb) c
Continuing.
Couldn't get registers: No such process.
(gdb) kill
Kill the program being debugged? (y or n) y
KC: PTRACE_KILL LWP 22076, 0, 0 (OK)
KC: PTRACE_KILL LWP 21994, 0, 0 (OK)
KC: PTRACE_KILL LWP 21987, 0, 0 (OK)
KC: PTRACE_KILL LWP 21986, 0, 0 (OK)
KC: PTRACE_KILL LWP 21985, 0, 0 (OK)
KC: PTRACE_KILL LWP 21983, 0, 0 (OK)
KC: PTRACE_KILL LWP 21982, 0, 0 (OK)
KC: PTRACE_KILL LWP 21981, 0, 0 (OK)
KC: PTRACE_KILL LWP 21978, 0, 0 (OK)
KWC: wait LWP 22076 received unknown.
KWC: wait LWP 21994 received unknown.
KWC: wait LWP 21987 received unknown.
KWC: wait LWP 21986 received unknown.
KWC: wait LWP 21985 received unknown.
KWC: wait LWP 21983 received unknown.
KWC: wait LWP 21982 received unknown.
KWC: wait LWP 21981 received unknown.
KWC: wait LWP 21978 received unk.