From: Michael Snyder <msnyder@cygnus.com>
To: Mark Kettenis <kettenis@wins.uva.nl>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH RFA] Clean up spurious SIGSTOPS in lin-lwp
Date: Wed, 30 May 2001 16:03:00 -0000 [thread overview]
Message-ID: <3B157C3F.A8439E2E@cygnus.com> (raw)
In-Reply-To: <200105260915.f4Q9Fik00295@delius.kettenis.local>
Mark Kettenis wrote:
>
> Date: Fri, 25 May 2001 15:57:39 -0700
> From: Michael Snyder <msnyder@cygnus.com>
>
> Mark,
>
> This patch will get rid of most of those "Delayed SIGSTOP" messages,
> so that lin_lwp_wait will rarely if ever get a SIGSTOP that was generated
> by gdb. It entails three basic changes:
>
> * In lin_lwp_attach_lwp, consume the SIGSTOP that is generated by
> PTHREAD_ATTACH.
> * In stop_wait_callback, try again to consume the SIGSTOP after
> "pushing back" a SIGTRAP for a thread other than the event thread.
> * Similarly try again to consume a SIGSTOP after tossing away a
> redundant SIGINT.
>
> In principle the current approach saves us a few system calls, at the
> risk of a GDB-generated SIGSTOP colliding with a SIGSTOP that wasn't
> generated by GDB.
>
> I assume you're trying to make GDB behave a little better when some
> outside agency is generating SIGSTOPs.
No, I'm working on a bug, and trying to simplify parts of the
event handling in order to clear the way. The bug that I'm really
aiming for is a scheduling issue -- gdb can cause some threads
to starve. Don't worry, it isn't your fault, it's been in all of
the linux thread debugging implementations so far. It causes a
couple of failures in the testcase "pthreads.exp". I know in
principal what to do, but in practice it's proving to be tricky.
I've checked in this part of the change.
Michael
prev parent reply other threads:[~2001-05-30 16:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-25 15:57 Michael Snyder
2001-05-26 2:15 ` Mark Kettenis
2001-05-30 16:03 ` Michael Snyder [this message]
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=3B157C3F.A8439E2E@cygnus.com \
--to=msnyder@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
--cc=kettenis@wins.uva.nl \
/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