Given how old it is, I was tempted to say it's entirely unrelated. But
maybe not. I discovered faulthandler thanks to this and the stacktrace
appears in the same place (rollback handling):
$ cd tests
$ LANG=C PYTHONPATH=.. python3 -X faulthandler ./runtests.py --verbosity=2 --parallel=1 admin_views.tests.AdminViewBasicTest
[...]
test_popup_dismiss_related (admin_views.tests.AdminViewBasicTest) ... ok
Fatal Python error: Segmentation fault
Current thread 0x00007fab40575700 (most recent call first):
File "/home/rhertzog/deb/pkg/python-django/django/db/backends/sqlite3/base.py", line 321 in execute
File "/home/rhertzog/deb/pkg/python-django/django/db/backends/utils.py", line 62 in execute
File "/home/rhertzog/deb/pkg/python-django/django/db/backends/base/base.py", line 288 in _savepoint_rollback
File "/home/rhertzog/deb/pkg/python-django/django/db/backends/base/base.py", line 328 in savepoint_rollback
File "/home/rhertzog/deb/pkg/python-django/django/db/transaction.py", line 243 in __exit__
File "/home/rhertzog/deb/pkg/python-django/django/test/testcases.py", line 1016 in _rollback_atomics
File "/home/rhertzog/deb/pkg/python-django/django/test/testcases.py", line 1073 in _fixture_teardown
File "/home/rhertzog/deb/pkg/python-django/django/test/testcases.py", line 919 in _post_teardown
File "/home/rhertzog/deb/pkg/python-django/django/test/testcases.py", line 217 in __call__
File "/usr/lib/python3.5/unittest/suite.py", line 122 in run
File "/usr/lib/python3.5/unittest/suite.py", line 84 in __call__
File "/usr/lib/python3.5/unittest/runner.py", line 176 in run
File "/home/rhertzog/deb/pkg/python-django/django/test/runner.py", line 494 in run_suite
File "/home/rhertzog/deb/pkg/python-django/django/test/runner.py", line 533 in run_tests
File "./runtests.py", line 275 in django_tests
File "./runtests.py", line 458 in <module>
Maybe SQLite 3.12 makes it more likely to trigger to the problem or something
like that. I can reproduce the crash with Python 2 and Python 3.
Cheers,