X-Recipient: archive-cygwin AT delorie DOT 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?=" To: cygwin AT cygwin DOT 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 AT mail DOT gmail DOT com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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 ³ÂÏþêÍ :> 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.>