This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygthread::cygthread() hang


Christopher, that didn't fix the problem.

Emacs is in a loop waiting for a read() on a pipe to return some data.  It is being
interrupted quite a few times by SIGALARM while it is waiting.  It looks like
the read() is restartable because the printf at the end of readv() never
comes out?  In the loop that is executing in readv(), there is a comment
(in syscalls.cc) about something in the guts of readv() not being thread-safe,
if that rings any bells.

Curiously, I added printf's to the places in cygthread() that set h to NULL,
but they are never emitted.  Something appears to be clobbering the cygthread
object while it is in its constructor.

I am adding further strace printfs to see what it going on.
--
Joe Buehler


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]