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
After the unit test suite (make test) successfully runs and the coverage report is displayed, a segmentation fault happens that causes the script to fail.
Steps to Reproduce
For some reason that I don't understand, I cannot reproduce this on Python 3.7, but it does happen very often in Python 3.9.
If you need to create an adequate Python 3.9 environment:
Sorter version, but requires you to confirm that the reproduction command is actually equivalent to make test:
# Run a few times, it will segfault roughly half the time:
python -m pytest -v --junitxml=test-results/junit.xml tests/gui/test_actions.py::TestDownloadConversation::test_gets_initially_disabled_when_file_information_is_available tests/gui/test_main.py::test_show_main_window_when_already_showing
Note: When running only a few tests, the segmentation faults are not systematic. make test does error very often, though, I believe it's because if we run enough tests, the probability of any of them causing the segmentation fault increases dramatically. (See Comments section below.)
Expected Behavior
When there are no test failures, the make test succeeds under any version of Python.
Actual Behavior
Under Python 3.9 (at least, other versionsmay be affected as well): after the unit test suite (make test) successfully runs and the coverage report is displayed, a segmentation fault happens that causes the script to fail.
While running tests (as little as two) from different test files causes the error, it is noteworthy than running multiple tests from a single test file doesn't.
The text was updated successfully, but these errors were encountered:
Description
After the unit test suite (
make test
) successfully runs and the coverage report is displayed, a segmentation fault happens that causes the script to fail.Steps to Reproduce
For some reason that I don't understand, I cannot reproduce this on Python 3.7, but it does happen very often in Python 3.9.
If you need to create an adequate Python 3.9 environment:
Simple but long version to reproduce the errors:
Sorter version, but requires you to confirm that the reproduction command is actually equivalent to
make test
:# Run a few times, it will segfault roughly half the time: python -m pytest -v --junitxml=test-results/junit.xml tests/gui/test_actions.py::TestDownloadConversation::test_gets_initially_disabled_when_file_information_is_available tests/gui/test_main.py::test_show_main_window_when_already_showing
Note: When running only a few tests, the segmentation faults are not systematic.
make test
does error very often, though, I believe it's because if we run enough tests, the probability of any of them causing the segmentation fault increases dramatically. (See Comments section below.)Expected Behavior
When there are no test failures, the
make test
succeeds under any version of Python.Actual Behavior
Under Python 3.9 (at least, other versionsmay be affected as well): after the unit test suite (
make test
) successfully runs and the coverage report is displayed, a segmentation fault happens that causes the script to fail.Comments
First mentions
This issue was first reported in #1512 (comment) and #1496 (comment)
Noteworthy behavior
While running tests (as little as two) from different test files causes the error, it is noteworthy than running multiple tests from a single test file doesn't.
The text was updated successfully, but these errors were encountered: