[pthread] pthread+printf may have bugs

陈晓晖 xhchen8018@gmail.com
Thu Dec 25 02:53:00 GMT 2008


It is strange that the error disappeared if replacing any cygwin1.dll
on 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 for
cygwin? 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.
>


More information about the Cygwin mailing list