From: Daniel Jacobowitz <drow@mvista.com>
To: "J. Johnston" <jjohnstn@redhat.com>
Cc: gdb-patches@sources.redhat.com, roland@redhat.com
Subject: Re: RFC: nptl threading patch for linux
Date: Sun, 17 Aug 2003 20:49:00 -0000 [thread overview]
Message-ID: <20030817204927.GA11300@nevyn.them.org> (raw)
In-Reply-To: <3EBFF7C3.2000905@redhat.com>
On Mon, May 12, 2003 at 03:36:35PM -0400, J. Johnston wrote:
> >
> >I could cause segfaults in both the inferior and GDB, and some missed
> >single-steps. I don't know if my kernel patch is at fault or your
> >patch, but I figured I'd write them up anyway for posterity and later
> >review.
> >
> >Start with gdb.threads/print-threads. Put a breakpoint on
> >thread_function and one on the printf ("Done\n") main. Run, disable
> >the first breakpoint when you hit it, and say next. You'll hit the
> >breakpoint in main instead of staying within thread_function.
> >
>
> This does not fail on my test system. I end up on line 42 after the next
> is issued.
Using 2.5.72 on a single-processor machine, which is what I had lying
around today, I could still reproduce it. I don't think it's new;
rather, I think it's annoying.
We single-step the thread; because we are not at a breakpoint, since
it's been disabled, all other threads are continued during the
single-step. The second time we do this, we get a thread creation
event. GDB proceeds to lose track of the fact that it was
single-stepping, and resumes.
> >In other interesting notes, it looks like there is a (related?) problem
> >with target_thread_alive. The LWP I'm single-stepping in appears to be
> >marked as not alive about half the time. No idea what's up with that.
> >It appears to come from thread_db_thread_alive, not from
> >lin_lwp_thread_alive, which always succeeds.
> >
> >I can't reproduce the SIGSEGV now for some reason.
> >
>
> Have you managed to trace which test in thread_db_alive is returning false?
It may have been my imagination. Now all appears well.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2003-08-17 20:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-24 22:05 J. Johnston
2003-05-09 22:00 ` Daniel Jacobowitz
2003-05-09 22:36 ` Andrew Cagney
2003-05-10 0:58 ` Daniel Jacobowitz
2003-05-09 23:38 ` J. Johnston
2003-05-10 0:58 ` Daniel Jacobowitz
2003-05-10 21:18 ` Daniel Jacobowitz
2003-05-10 21:59 ` Daniel Jacobowitz
2003-05-12 19:36 ` J. Johnston
2003-08-17 20:49 ` Daniel Jacobowitz [this message]
2003-06-02 18:49 ` Michael Snyder
2003-06-04 20:52 ` J. Johnston
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=20030817204927.GA11300@nevyn.them.org \
--to=drow@mvista.com \
--cc=gdb-patches@sources.redhat.com \
--cc=jjohnstn@redhat.com \
--cc=roland@redhat.com \
/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