Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Jim Blandy" <jimb@red-bean.com>
To: "Jim Blandy" <jimb@codesourcery.com>, gdb-patches@sourceware.org
Subject: Re: RFA: Make sigthread.exp more reliable
Date: Tue, 29 Jan 2008 19:28:00 -0000	[thread overview]
Message-ID: <8f2776cb0801291121i46404195udb5e9f0d99becd41@mail.gmail.com> (raw)
In-Reply-To: <20080129180922.GK3773@caradoc.them.org>

On Jan 29, 2008 10:09 AM, Daniel Jacobowitz <drow@false.org> wrote:
> On Fri, Jan 11, 2008 at 05:31:59PM -0800, Jim Blandy wrote:
> >
> > sigthread.exp fails intermittently, because the program exits due to a
> > segfault instead of the ^C GDB sends it.  I believe this is because
> > the threads throwing signals at each other don't wait until all the
> > pthread_t variables are initialized before they do so.  So they
> > occasionally pass an uninitialized pthread_t to pthread_kill, which
> > segfaults.
>
> I'd been wondering what that crash was about...
>
> > 2008-01-11  Jim Blandy  <jimb@codesourcery.com>
> >
> >       * gdb.threads/sigthread.c: Use barriers to ensure that
> >       child_thread and child_thread_two are always initialized before we
> >       start to use them.
>
> Looks OK to me!

Committed --- thanks!


      reply	other threads:[~2008-01-29 19:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-12  1:32 Jim Blandy
2008-01-29 18:14 ` Daniel Jacobowitz
2008-01-29 19:28   ` Jim Blandy [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=8f2776cb0801291121i46404195udb5e9f0d99becd41@mail.gmail.com \
    --to=jimb@red-bean.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jimb@codesourcery.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