You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_signal: test_stress_modifying_handlers() crash with SIGSEGV on GHA macOS (macOS-12.7) #110083
test_signal crashed when run at the 325th test under a system load of 9.87: on a machine with 3 CPUs, that means that the machine was very busy (stressed) by other tests running in parallel.
GHA macOS:
0:07:31 load avg: 9.87 [325/467/1] test_signal process crashed (Exit code -11)
Kill <WorkerThread #3 running test=test_threading pid=12551 time=13.4 sec> process group
Fatal Python error: Segmentation fault
Kill <WorkerThread #4 running test=test_urllib2net pid=12609 time=16 ms> process group
Kill <WorkerThread #5 running test=test.test_multiprocessing_forkserver.test_processes pid=12584 time=4.7 sec> process group
Current thread 0x0000700011095000 (most recent call first):
File "/Users/runner/work/cpython/cpython/Lib/test/test_signal.py", line 1338 in set_interrupts
File "/Users/runner/work/cpython/cpython/Lib/threading.py", line 1003 in run
File "/Users/runner/work/cpython/cpython/Lib/threading.py", line 1066 in _bootstrap_inner
File "/Users/runner/work/cpython/cpython/Lib/threading.py", line 1023 in _bootstrap
Thread 0x0000000101b86600 (most recent call first):
File "/Users/runner/work/cpython/cpython/Lib/enum.py", line 1155 in __new__
File "/Users/runner/work/cpython/cpython/Lib/enum.py", line 729 in __call__
File "/Users/runner/work/cpython/cpython/Lib/signal.py", line 39 in _int_to_enum
File "/Users/runner/work/cpython/cpython/Lib/signal.py", line 57 in signal
File "/Users/runner/work/cpython/cpython/Lib/test/test_signal.py", line 1346 in cycle_handlers
File "/Users/runner/work/cpython/cpython/Lib/test/test_signal.py", line 1356 in test_stress_modifying_handlers
The test passed when re-run again alone in a fresh process in verbose mode:
0:07:31 load avg: 9.87 Re-running 1 failed tests in verbose mode in subprocesses
0:07:31 load avg: 9.87 Run 1 test in parallel using 1 worker process (timeout: 10 min, worker timeout: 15 min)
(...)
0:10:31 load avg: 1.82 running (1): test_signal (3 min)
0:10:35 load avg: 1.91 [1/1] test_signal passed (3 min 4 sec)
(...)
test_stress_modifying_handlers (test.test_signal.StressTest.test_stress_modifying_handlers) ... ok
(...)
Result: FAILURE then SUCCESS
Activity
vstinner commentedon Sep 29, 2023
See also issue gh-110017: Random crash of test_signal on macos sonoma.
vstinner commentedon Sep 29, 2023
See also issue gh-75032: test_stress_delivery_dependent() fails randomly since 2017 on AMD64 Debian root 3.x.
ronaldoussoren commentedon Dec 8, 2023
The fix for #110772 disabled test_stress_modifying_handlers on macOS due to a platform bug. That also fixes this issue.