Description
Crash report
This comes from sympy/sympy#24776 which adds CPython 3.12 prerelease testing in SymPy's CI.
This is seen with CPython 3.12a5 but not with 3.11 or earlier versions.
The reproducer is to run the SymPy test suite:
pip install sympy==1.11.1
Then
>>> import sympy
>>> sympy.test(subprocess=False)
...
(it takes about 5 minutes)
...
sympy/functions/special/tests/test_delta_functions.py[3] ... [OK]
sympy/functions/special/tests/test_elliptic_integrals.py[4] .... [OK]
sympy/functions/special/tests/test_error_functions.py[24] ................Segmentation fault: 11
I don't yet have a simpler reproducer for this because it seems to be non-deterministic but the SymPy test suite reliably invokes a segfault under 3.12 alpha 5 after about 5 minutes. The tests that are running at the time of the segfault will pass if run in isolation. Running the whole test suite though will cause it to fail randomly at one of a few specific places. I don't have a simpler reproducer because running a smaller part of the test suite does not reproduce the problem.
Error messages
Usually:
Segmentation fault: 11
In one case I have also seen (on OSX):
Bus error: 10
Your environment
- CPython versions tested on: 3.12 alpha 5 (the problem is not seen with 3.11 or earlier).
- Operating system and architecture: Ubuntu and OSX, both on x84-64 CPU.
The problem was seen initially in GitHub Actions CI on an Ubuntu 20.04 runner but I have also reproduced it locally in OSX (an Intel-CPU Macbook).
I don't immediately have a setup that I can use to bisect this but I will get one set up soon to narrow this down.