Skip to contentSkip to conversation

linux-user crash in python test

DISCUSSION Andreas Schwab 2 participants 3 messages Jun 24, 2024

lore
Share & tools
lore
#0 lore raw
$ /usr/bin/python3.11 -m unittest -v test.test_signal.StressTest.test_stress_modifying_handlers
test_stress_modifying_handlers (test.test_signal.StressTest.test_stress_modifying_handlers) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.526s

OK

$ qemu-x86_64 /usr/bin/python3.11 -m unittest -v test.test_signal.StressTest.test_stress_modifying_handlers
test_stress_modifying_handlers (test.test_signal.StressTest.test_stress_modifying_handlers) ... qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
Signature · 3 lines
Andreas Schwab, SUSE Labs, [email protected]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
#1 lore raw
Quoted 11 lines · Andreas Schwab
$ /usr/bin/python3.11 -m unittest -v test.test_signal.StressTest.test_stress_modifying_handlers
test_stress_modifying_handlers (test.test_signal.StressTest.test_stress_modifying_handlers) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.526s

OK

$ qemu-x86_64 /usr/bin/python3.11 -m unittest -v test.test_signal.StressTest.test_stress_modifying_handlers
test_stress_modifying_handlers (test.test_signal.StressTest.test_stress_modifying_handlers) ... qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)

Just to check, does the python you're running this on have the change from
https://github.com/python/cpython/pull/110659
? That is a fix for a bug in this test which was found after 3.11 released but was backported to the 3.11 branch, and which (if I'm reading the bug reports correctly) might cause either test failures or segfaults.

Though it also wouldn't surprise me if this was a QEMU bug.

thanks
-- PMM