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] |
The libapr1 test cases are failing for flock locks. I've extracted the attached STC to demonstrate the problem. It starts a number of child processes, each of which repeatedly grab and release a lock on a temporary file. While they have the lock, the increment a counter in shared memory in a racy way. If all goes well, the counter should end up having the value of CHILDREN * ITERS_PER_CHILDREN. And it does, except sometimes the test just hangs. The attached runs the test 10 times, which is sufficient to reproduce the hang on my machine. Sometimes the first iteration hangs, sometimes it's the last one. This was working the last time I built libapr1 (19-Feb-2012). To run the test, just run "make". Regards, David -- David Rothenberger ---- daveroth@acm.org question = ( to ) ? be : ! be; -- Wm. Shakespeare
Attachment:
Makefile
Description: Text document
Attachment:
stc-flock-fork.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] |