X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=4.0 required=5.0 	tests=AWL,BAYES_00,CHARSET_FARAWAY_HEADER,CTYME_IXHASH,MIME_CHARSET_FARAWAY,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <6aa8c88e0812241852i7aa64645xe27cd5e343ca2055@mail.gmail.com>
Date: Thu, 25 Dec 2008 10:52:14 +0800
From: "=?GB2312?B?s8LP/urN?=" <xhchen8018@gmail.com>
To: cygwin@cygwin.com
Subject: Re: [pthread] pthread+printf may have bugs
In-Reply-To: <6aa8c88e0812240054m6a13857uee028380f5d04862@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=GB2312
Content-Disposition: inline
References: <6aa8c88e0812240054m6a13857uee028380f5d04862@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id mBP2r9R7015996

It is strange that the error disappeared if replacing any cygwin1.dllon the snapshot page    http://cygwin.com/snapshots/For these versions, I see a more line "Huh?  No /etc/fstab file?Using default root and cygdrive prefix..." was printed.
By the way, does anybody know where can I find the pthread source forcygwin? is it pthread-win32? Thanks ..I want to look into it.

2008/12/24 ³ÂÏþêÍ <xhchen8018@gmail.com>:> Hi,>>    I found that pthread may stop work if using printf in thread.> I'm not sure that printf is thread safe or not, so I tried to wrap the> printf with a mutex, but the problem still exists.> After I removed all printfs, everything is OK.>
