Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Subject: Re: pthread: thread switching bug?
From: Robert Collins <robert.collins@itdomain.com.au>
To: Nemeth Marton <nm127@hszk.bme.hu>
Cc: cygwin@cygwin.com
In-Reply-To: <3BD72CC1.B2BF80D7@hszk.bme.hu>
References: <3BCCB65E.77D66FE2@hszk.bme.hu>
	<20011016203656.A30680@redhat.com> <1003665677.2183.50.camel@lifelesswks> 
	<3BD72CC1.B2BF80D7@hszk.bme.hu>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/0.15 (Preview Release)
Date: 01 Nov 2001 10:43:52 +1100
Message-Id: <1004571833.1701.165.camel@lifelesswks>
Mime-Version: 1.0
X-OriginalArrivalTime: 31 Oct 2001 23:48:06.0025 (UTC) FILETIME=[7CA1CF90:01C16266]

On Thu, 2001-10-25 at 07:04, Nemeth Marton wrote:
t.
> > 
> > Can you see whether you can reproduce the behaviour when writing to a
> > file, not to stdout? (If you are not using fprintf now, start by trying
> > with fprintf (stdout,...)). Let me know via the list whether you can
> > make this happen with a standard file/console with fprintf and we'll
> > take it from there,
> > 
> > Rob
> 
> I've checked the fallowing:
> 
>                     | without redirection | with shell redirection to
> file
>                     |                     | ">testfile.txt"
> --------------------|---------------------|---------------------------------
> printf(...)         | bug exist           | bug does not exist
> --------------------|---------------------|---------------------------------
> fprintf(stdout, ...)| bug exist           | bug does not exist
> --------------------|---------------------|---------------------------------
> 
>         NMarci
> 
> P.S. It seems that I couldn't post messages to cygwin@cygwin.com, that's
> why I do a CC also.

If you are behind a blocked mail server, you need to be subscribed to
post messages. That is documented in the bounce message AFAIK.

Thanks for the testing, you've shown that there is non thread safe code,
probably in the fhandler_consoler in cygwin, or possibly in the MS
Windows console code. Right now we don't know which.

This will get fixed... eventually :}. If you'd like to help fix it,
we're always happy to help a new developer get started.

Rob


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

