-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
segfaults with swig4.3 and PYTHONFAULTHANDLER=1 #2565
Comments
Set PYTHONFAULTHANDLER=1 for more output on crashes (AMICI-dev#2565). So far, this was only set for Ubuntu tests.
Another crash, now for May or may not be related. |
This happens already during import of the amici-extension. I would currently guess that this is related to some external changes (runner image, brew packages, ...) https://github.com/dweindl/AMICI/actions/runs/11500013663/job/32009264065:
|
Different jobs from the same workflow run:
💩 |
💩 |
Set PYTHONFAULTHANDLER=1 for more output on crashes (#2565). So far, this was only set for Ubuntu tests.
I now get pretty consistent segfaults on the mac workflow in #1861 (comment) |
Not quite sure which of those changes could explain those issues -- xcode? https://github.com/actions/runner-images/releases/tag/macos-14-arm64%2F20241022.361 actions/runner-images@macos-14-arm64/20241014.301...macos-14-arm64/20241022.361 |
The changes in the runner-images could just be a coincidence. There also was a new swig release around the same time (https://github.com/swig/swig/releases/tag/v4.3.0). Recent changes in dependencies: further changes: numpy, cmake |
It seems to be about swig 4.3.0. I can reproduce that on Ubuntu. Python crashes specifically when importing amici under pytest. Otherwise it works fine. Interesting... Update:
|
It's swig/swig#3061 |
Leaving this open as a reminder to revert #2572 once the issue has been fixed in swig. |
A better fix than #2572 (comment) might be just ignoring the problematic swig warnings before importing the extension. Untested. |
scripts/run-python-tests.sh: line 22: 7262 Segmentation fault: 11 pytest --ignore-glob=*petab* --ignore-glob=*test_splines.py --durations=10 $@
Happens randomly. So far, twice this week and only on macos. Unclear.
Being updated:
The text was updated successfully, but these errors were encountered: