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: gdb-patches@sources.redhat.com, Michael Snyder <msnyder@cygnus.com>
Subject: Re: RFA (threads testsuite): More thread tests
Date: Wed, 14 Aug 2002 09:06:00 -0000	[thread overview]
Message-ID: <20020814160625.GA3463@nevyn.them.org> (raw)
In-Reply-To: <3D598B15.524EC321@redhat.com>

On Tue, Aug 13, 2002 at 06:41:25PM -0400, Fernando Nasser wrote:
> Daniel Jacobowitz wrote:
> > 
> > Here's two tests I had lying around from when I developed the gdbserver
> > threads support.  Gdbserver passes them with flying colors (if you use my
> > other patch which lets gdbserver run tests properly).  GDB shows a couple of
> > problems, unpredictably (not always repeatable).
> > 
> 
> Can you elaborate on what these problems are and on which host you've
> seen them?

They vary greatly, unfortunately.  They're all reproducible but not
necessarily repeatable; run the tests a half-dozen times and you'll
probably see them.  My system is SMP which makes things even more
timing-dependant.

From one run just now:
FAIL: gdb.threads/print-threads.exp: Running threads (slow with kill breakpoint) (unknown output)

FAIL: gdb.threads/schedlock.exp: continue with lock does not change thread (switched to thread 4)
FAIL: gdb.threads/schedlock.exp: other thread 0 didn't run (ran)
FAIL: gdb.threads/schedlock.exp: other thread 2 didn't run (ran)
FAIL: gdb.threads/schedlock.exp: other thread 3 didn't run (ran)
FAIL: gdb.threads/schedlock.exp: other thread 4 didn't run (ran)
FAIL: gdb.threads/schedlock.exp: other thread 5 didn't run (ran)

FAIL: gdb.threads/schedlock.exp: step with lock does not change thread (switched to thread 4)
FAIL: gdb.threads/schedlock.exp: current thread stepped locked (didn't run)
FAIL: gdb.threads/schedlock.exp: other thread 4 didn't run (stepping) (ran)

The first one is:
Cannot find thread 4101: no thread to satisfy query

The second set are some problem with set scheduler-locking that causes
GDB to lose control of some threads.  I don't remember why this
happens, if I ever knew.  The third set involve stopping in the wrong
thread.


You may have seen that, about three months ago now (?) I committed a
multi-thread support package for gdbserver.  These tests were written
while I was developing it.  If you run the testsuite against gdbserver
(which requires a little fiddling with the test harness still...) all
of these tests will pass.  They sure didn't when I was working on it,
though, which is why I wrote them :)

> > OK to add these?
> > 
> 
> Michael Snyder, have you seen these?
> 
> 
> Daniel, in the meanwhile please fix your CL entries.  
> After the "New file." please briefly say what the new files are for.
> 
> Also, we need some comments in the new testfile headers saying
> what the tests are testing.  So far we have to infer from the file names
> ;-)

In my defense, the first point is against GNU ChangeLog policy - you
aren't supposed to explain the "why" of things in ChangeLogs.  I don't
really like that policy, so I'll be glad to elaborate :)  I'll take
care of the comments too.

> Are there some lines missing in your  get_current_thread  proc?
> The second part is after a return that seem orphan in there.

Extra lines, actually.  Only the part before the return is supposed to
be there, thanks for spotting that.

Thanks for the comments; I'll repost after Michael gets a chance to
comment on the tests themselves.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2002-08-14 16:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-09  8:47 Daniel Jacobowitz
2002-08-13 15:48 ` Fernando Nasser
2002-08-14  9:06   ` Daniel Jacobowitz [this message]
2002-08-22 16:41 ` Michael Snyder
2002-08-22 18:35   ` Daniel Jacobowitz
2002-08-23 12:02     ` Michael Snyder
2002-08-23 12:11       ` Daniel Jacobowitz
2002-08-23 14:08         ` Daniel Jacobowitz
2002-08-23 15:45         ` Michael Snyder

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=20020814160625.GA3463@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