Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Fernando Nasser <fnasser@redhat.com>
Cc: Michael Snyder <msnyder@cygnus.com>, gdb-patches@sources.redhat.com
Subject: Re: [rfa/testsuite] Make pthreads test more robust
Date: Mon, 01 Oct 2001 13:37:00 -0000	[thread overview]
Message-ID: <20011001163807.B5646@nevyn.them.org> (raw)
In-Reply-To: <3BB887DF.D4452C00@redhat.com>

On Mon, Oct 01, 2001 at 11:12:31AM -0400, Fernando Nasser wrote:
> (please see below)
> 
> 
> Michael Snyder wrote:
> > The patch looks sane.  I'd like Fernando's blessing, but I'm inclined
> > to suggest checking it in and just watching out to see if it breaks
> > on any other platform.
> > 
> 
> I thought I had already responded to that, but I can't find the
> answer...
> 
> I agree with Michael -- lets try.  There is definitively a race
> condition
> in there.  If GDB does not say continue in 1 sec. we send it a Cntl-C
> and
> I am not so sure what the output will look like if we send the Cntl-C
> before
> GDB says "Continuing".
> 
> With your change we will be sure that the program is running before
> sending
> the interrupt request.  I guess it is the right thing to do.

I agree; patch committed.  If it breaks again, we can try harder :)

> P.S.: The "after" command schedules something to be done after a certain
> time.
> In this case, after a second (1000 milliseconds), a "\003" will be sent
> to GDB.
> So, we make it run and then interrupt it.
> 
> P.S.2: I wonder if there isn't a second race condition between the 1 sec
> to
> interrupt and the timeout of gdb_expect...

That might be it.  My failing tests looked like the interrupt was being
sent too soon, though, rather than not soon enough.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


      reply	other threads:[~2001-10-01 13:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-28  8:46 Daniel Jacobowitz
2001-09-28 11:29 ` Michael Snyder
2001-10-01  8:17   ` Fernando Nasser
2001-10-01 13:37     ` Daniel Jacobowitz [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=20011001163807.B5646@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=fnasser@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=msnyder@cygnus.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