multithreading broken in Cygwin 3.5.3
Bruno Haible
bruno@clisp.org
Thu May 23 18:09:09 GMT 2024
Hi,
In Cygwin 3.5.3, on different machines, I see 3 Gnulib tests failing by
timeout that worked perfectly fine in Cygwin 3.4.6 and older:
FAIL: test-call_once2.exe
FAIL: test-lock.exe
FAIL: test-pthread-once2.exe
Find here attached a simplified version of test-pthread-once2.c.
Compile and run:
$ x86_64-pc-cygwin-gcc -Wall foo.c
$ ./a
Expected behaviour: Termination within 1 minute.
Actual behaviour: Terminates by timeout after 10 minutes.
When I change
#define ENABLE_DEBUGGING 0
to
#define ENABLE_DEBUGGING 1
the test does lots of output and terminates within 20 seconds.
Therefore I can't really tell where the problem comes from.
But I do see some changes in
$ git diff cygwin-3.4.6 cygwin-3.5.3 winsup/cygwin/thread.cc
$ git diff cygwin-3.4.6 cygwin-3.5.3 winsup/testsuite/winsup.api/pthread
Bruno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.c
Type: text/x-csrc
Size: 6564 bytes
Desc: not available
URL: <https://cygwin.com/pipermail/cygwin/attachments/20240523/6cb119ba/attachment.bin>
More information about the Cygwin
mailing list