Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Subject: Re: pthread: thread switching bug? From: Robert Collins To: Nemeth Marton Cc: cygwin AT cygwin DOT com In-Reply-To: <3BD72CC1.B2BF80D7@hszk.bme.hu> References: <3BCCB65E DOT 77D66FE2 AT hszk DOT bme DOT hu> <20011016203656 DOT A30680 AT redhat DOT com> <1003665677 DOT 2183 DOT 50 DOT camel AT lifelesswks> <3BD72CC1 DOT B2BF80D7 AT hszk DOT bme DOT 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 AT cygwin DOT 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/