sagemath / cysignals

cysignals: interrupt and signal handling for Cython
GNU Lesser General Public License v3.0
44 stars 23 forks source link

Error on Python 3.12 #195

Open saraedum opened 7 months ago

saraedum commented 7 months ago

Building cysignals 1.11.4 with Python 3.12, we get the following test error on conda-forge:

2023-12-06T20:51:37.4462920Z File "src/cysignals/tests.pyx", line 723, in tests.pyx
2023-12-06T20:51:37.4463209Z Failed example:
2023-12-06T20:51:37.4463786Z     subpython_err('from cysignals.tests import *; test_bad_str()')
2023-12-06T20:51:37.4464061Z Expected:
2023-12-06T20:51:37.4464456Z     ---------------------------------------------------------------------...
2023-12-06T20:51:37.4464767Z     Unhandled SIGSEGV during signal handling.
2023-12-06T20:51:37.4465088Z     This probably occurred because a *compiled* module has a bug
2023-12-06T20:51:37.4465388Z     in it and is not properly wrapped with sig_on(), sig_off().
2023-12-06T20:51:37.4465676Z     Python will now terminate.
2023-12-06T20:51:37.4465895Z     ...
2023-12-06T20:51:37.4466111Z Got:
2023-12-06T20:51:37.4466487Z     ------------------------------------------------------------------------

I could not find whether cysignals is actually fully tested with Python 3.12 in the CI here. Is this something conda specific or a problem with cysignals?

This did not happen with 1.11.2.