This is the mail archive of the cygwin 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: How to "bisect" Cygwin?


On 6/1/2012 1:51 PM, Ryan C. Underwood wrote:
On Fri, Jun 01, 2012 at 08:59:06PM +0200, Corinna Vinschen wrote:

If you can press a long story into a short testcase in plain C with the
bare minimum of code to reproduce the behaviour, it would be much
appreciated.

The basic issue is that sem_wait() is being kicked out with EINTR extremely frequently (9 out of 10 times or more),

Does the attached program vaguely resemble what your program is trying to do? It does get EINTR, but only because I'm using alarm(2) to add a timeout to the sem_wait() call.


You should just get an infinite series of "Child timed out normally waiting for the semaphore." messages from it after initialization, one per second.

Attachment: semtest.c
Description: Text document

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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