From: Christopher Faylor <cgf-use-the-mailinglist-please@sourceware.org>
To: gdb-patches@sourceware.org,
'Pedro Alves' <pedro@codesourcery.com>,
Pierre Muller <muller@ics.u-strasbg.fr>
Subject: Re: Spurius results for cygwin selftest.exp(was Re: [RFC] fix annoying completion bug on directories)
Date: Thu, 10 Jul 2008 21:18:00 -0000 [thread overview]
Message-ID: <20080710211746.GD29418@ednor.casa.cgf.cx> (raw)
In-Reply-To: <000101c8e148$37967000$a6c35000$@u-strasbg.fr>
On Wed, Jul 09, 2008 at 12:16:04AM +0200, Pierre Muller wrote:
>> > I ran the testsuite on cygwin, and found one
>> > change, but in gdb.gdb/selftest.
>> > FAIL (timeout) xgdb is at prompt
>> >
>> > I suspect that this is due to a problem with the
>> > [New thread %s] output, that are now default.
>> > Because this output appears right after the gdb prompt,
>> > and thus the match with a gdb prompt exactly at the end
>> > is not found.
>>
>> In these cases, in addition to analising the log file, please
>> rerun the test to confirm it was spurious. Cygwin testing
>> is indeed flackier than linux.
>
> This is indeed a spurious FAIL that has to do with that
>third thread that start on cygwin right after the command prompt is
>printed out.
> Does anyone know why there is a third thread starting?
>Debugging threads under cygwin is quite difficult, you never really know
>where they are coming from...
Cygwin starts a signal thread during process creation and, if you are
running with CYGWIN=tty will start a couple more threads to deal with
tty I/O. If the process is using select() or poll() it will start
threads for that too. It should not start extra threads when using ptys
however.
The test suite isn't setting CYGWIN=tty somewhere is it? It used to be
necessary that you set CYGWIN=tty in order to use ptys and sometimes
people still insist that it is required. If is is set somewhere that
could account for extra, unneeded, threads.
Cygwin 1.5.x it may also start a thread-per-fd to deal with pipe I/O.
I've removed that annoyance from the not-yet-released 1.7.x version. (I
introduced another pipe problem in the process of doing that but hey,
that's software)
Does debugging the process cause an extra thread to be created by
Windows, too? I don't remember. I know it creates a thread when you
attach to a process but I don't know if it does just in a standard
debug when a process started via CreateProcess.
cgf
next prev parent reply other threads:[~2008-07-10 21:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-05 23:37 [RFC] fix annoying completion bug on directories Pierre Muller
2008-07-06 3:57 ` Pedro Alves
2008-07-08 22:16 ` Spurius results for cygwin selftest.exp(was Re: [RFC] fix annoying completion bug on directories) Pierre Muller
2008-07-10 21:18 ` Christopher Faylor [this message]
2008-07-10 21:48 ` Daniel Jacobowitz
2008-07-10 22:08 ` Pedro Alves
2008-07-08 22:16 ` [RFA] fix annoying completion bug on directories Pierre Muller
2008-07-08 22:31 ` Daniel Jacobowitz
2008-07-08 22:49 ` Pierre Muller
2008-07-12 19:10 ` [RFA-updated] " Pierre Muller
2008-07-14 22:51 ` [RFA] " Eli Zaretskii
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=20080710211746.GD29418@ednor.casa.cgf.cx \
--to=cgf-use-the-mailinglist-please@sourceware.org \
--cc=gdb-patches@sourceware.org \
--cc=muller@ics.u-strasbg.fr \
--cc=pedro@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