From: Daniel Jacobowitz <drow@false.org>
To: Andreas Schwab <schwab@suse.de>
Cc: gdb@sources.redhat.com, Indraneel Sarkar <isarkar@novell.com>
Subject: Re: linux-nat.c:471: internal-error: unknown ptrace event 5
Date: Mon, 30 May 2005 17:05:00 -0000 [thread overview]
Message-ID: <20050530170456.GB24005@nevyn.them.org> (raw)
In-Reply-To: <je4qckwxta.fsf@sykes.suse.de>
On Mon, May 30, 2005 at 05:14:25PM +0200, Andreas Schwab wrote:
> Why is linux_handle_extended_wait not prepared to handle
> PTRACE_EVENT_VFORK_DONE?
Because it should absolutely never, ever receive it.
PTRACE_EVENT_VFORK should be reported, then the next time we resume
child_follow_fork should be called, and that should consume the
PTRACE_EVENT_VFORK_DONE.
You didn't say what version of GDB you're using. There've been some
changes lately.
> LLW: waitpid 8077 received Trace/breakpoint trap (stopped)
> LLW: Handling extended status 0x02057f
> LLTA: PTRACE_PEEKUSER LWP 8077, 0, 0 (OK)
> LLW: Candidate event Trace/breakpoint trap (stopped) in LWP 8077.
> SC: kill LWP 8522 **<SIGSTOP>**
> SC: lwp kill 0 ERRNO-OK
...
> WL: waitpid LWP 8071 received Stopped (signal) (stopped)
> LLW: trap_ptid is LWP 8077.
> Attaching after fork to child process 8547.
> RC: PTRACE_CONT LWP 8522, 0, 0 (resume sibling)
...
> LLR: PTRACE_CONT process 8547, 0 (resume event thread)
> LLW: waitpid 8077 received Trace/breakpoint trap (stopped)
> LLW: Handling extended status 0x05057f
> linux-nat.c:471: internal-error: unknown ptrace event 5
It looks like you're using 'set follow child'. Is that right? If so,
it looks like I never extensively tested the child-side path using
multiple threads; that would make sense, since when I wrote it NPTL was
very new, and LinuxThreads doesn't use vfork with threads. It will
need a bit of work; the problem is that we are bypassing target_detach
for the vfork, but we really do want to detach. Just not yet.
--
Daniel Jacobowitz
CodeSourcery, LLC
next prev parent reply other threads:[~2005-05-30 17:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-30 15:14 Andreas Schwab
2005-05-30 17:05 ` Daniel Jacobowitz [this message]
2005-05-31 14:10 ` Andreas Schwab
2005-05-31 14:27 Indraneel Sarkar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050530170456.GB24005@nevyn.them.org \
--to=drow@false.org \
--cc=gdb@sources.redhat.com \
--cc=isarkar@novell.com \
--cc=schwab@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox