Possible race in SYSV IPC (semaphores)

Lavrentiev, Anton (NIH/NLM/NCBI) [C] lavr@ncbi.nlm.nih.gov
Mon Nov 19 16:23:00 GMT 2012


> For testing it would be most helpful if you would create a STC.

The test case attached from my earlier post from today, also shows
a race (dead-lock, actually) occurring in CYGSERVER, when it is run
with the "-d -l 7" command line (even when it is only one application,
the test case is using it).  There is an internal disconcert between
the cygserver threads.

The log ends with this, and there is no way to stop the server
(like with "cygrunsrv -S") other than killing it from the task manager:

cygserver: /home/corinna/src/cygwin/cygwin-1.7.15/cygwin-1.7.15-1/src/cygwin-1.7.15/winsup/cygserver/transport_pipes.cc, line 132: Try to create named pipe: \\.\pipe\cygwin-13a7ed34cc1953a9-lpccygserver: /home/corinna/src/cygwin/cygwin-1.7.15/cygwin-1.7.15-1/src/cygwin-1.7.15/winsup/cygserver/process.cc, line 287: Try hold(4956)
cygserver: /home/corinna/src/cygwin/cygwin-1.7.15/cygwin-1.7.15-1/src/cygwin-1.7.15/winsup/cygserver/process.cc, line 287: holding (4956)

Anton Lavrentiev
Contractor NIH/NLM/NCBI



More information about the Cygwin mailing list