On a machine with openSUSE 15.2 (Linux 5.3.18, glibc 2.26) I see a test
failure (once only, not repeatable):

../../gltests/test-pthread_sigmask1.c:78: assertion 'sigint_occurred == 1' 
failed
FAIL test-pthread_sigmask1 (exit status: 134)

It looks like the only way this can happen is when
1) the process has more than one thread,
2) the signal has arrived in the process, and the signal handler is being
   executed but before the 'sigint_occurred++;' statement.

But I don't understand it: This test program is not multithreaded.

Any idea how we can make the test more reliable?

Bruno




Reply via email to