Skip to content
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

Crash in test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation #120158

Open
colesbury opened this issue Jun 6, 2024 · 3 comments
Labels
3.13 bugs and security fixes 3.14 new features, bugs and security fixes tests Tests in the Lib/test dir topic-free-threading type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@colesbury
Copy link
Contributor

colesbury commented Jun 6, 2024

Crash report

The 3.13 refleaks build crashed with the following assertion error:

Python/instrumentation.c:1227: _Py_call_instrumentation_line: Assertion `debug_check_sanity(tstate->interp, code)' failed.
Fatal Python error: Aborted
Thread 0x00007f12c9ffb640 (most recent call first):
  File "/home/ubuntu/buildarea/3.13.itamaro-ubuntu-aws.refleak.nogil/build/Lib/test/test_free_threading/test_monitoring.py", line 31 in work
  File "/home/ubuntu/buildarea/3.13.itamaro-ubuntu-aws.refleak.nogil/build/Lib/test/test_free_threading/test_monitoring.py", line 34 in work
  File "/home/ubuntu/buildarea/3.13.itamaro-ubuntu-aws.refleak.nogil/build/Lib/test/test_free_threading/test_monitoring.py", line 34 in work
  File "/home/ubuntu/buildarea/3.13.itamaro-ubuntu-aws.refleak.nogil/build/Lib/test/test_free_threading/test_monitoring.py", line 34 in work
  File "/home/ubuntu/buildarea/3.13.itamaro-ubuntu-aws.refleak.nogil/build/Lib/test/test_free_threading/test_monitoring.py", line 34 in work
  File "/home/ubuntu/buildarea/3.13.itamaro-ubuntu-aws.refleak.nogil/build/Lib/test/test_free_threading/test_monitoring.py", line 34 in work
  File "/home/ubuntu/buildarea/3.13.itamaro-ubuntu-aws.refleak.nogil/build/Lib/test/test_free_threading/test_monitoring.py", line 34 in work
  File "/home/ubuntu/buildarea/3.13.itamaro-ubuntu-aws.refleak.nogil/build/Lib/test/test_free_threading/test_monitoring.py", line 34 in work
  File "/home/ubuntu/buildarea/3.13.itamaro-ubuntu-aws.refleak.nogil/build/Lib/test/test_free_threading/test_monitoring.py", line 34 in work
  File "/home/ubuntu/buildarea/3.13.itamaro-ubuntu-aws.refleak.nogil/build/Lib/test/test_free_threading/test_monitoring.py", line 34 in work
  File "/home/ubuntu/buildarea/3.13.itamaro-ubuntu-aws.refleak.nogil/build/Lib/test/test_free_threading/test_monitoring.py", line 40 in python: Python/instrumentation.c:1227: _Py_call_instrumentation_line: Assertion `debug_check_sanity(tstate->interp, code)' failed.
start_work
  File "/home/ubuntu/buildarea/3.13.itamaro-ubuntu-aws.refleak.nogil/build/Lib/threading.py", line 990 in run
  File "/home/ubuntu/buildarea/3.13.itamaro-ubuntu-aws.refleak.nogil/build/Lib/threading.py", line 1039 in _bootstrap_inner
  File "/home/ubuntu/buildarea/3.13.itamaro-ubuntu-aws.refleak.nogil/build/Lib/threading.py", line 1010 in _bootstrap
Thread 0x00007f12cb7fe640 (most recent call first):
  File "/home/ubuntu/buildarea/3.13.itamaro-ubuntu-aws.refleak.nogil/build/Lib/test/test_free_threading/test_monitoring.py", line 31 in work
  File "/home/ubuntu/buildarea/3.13.itamaro-ubuntu-aws.refleak.nogil/build/Lib/test/test_free_threading/test_monitoring.py", line 34 in work
  File "/home/ubuntu/buildarea/3.13.itamaro-ubuntu-aws.refleak.nogil/build/Lib/test/test_free_threading/test_monitoring.py", line 34
1 test failed again:
    test_free_threading

https://buildbot.python.org/all/#/builders/1431/builds/88/steps/5/logs/stdio

@colesbury colesbury added tests Tests in the Lib/test dir type-crash A hard crash of the interpreter, possibly with a core dump 3.13 bugs and security fixes topic-free-threading labels Jun 6, 2024
@colesbury
Copy link
Contributor Author

cc @DinoV

@Fidget-Spinner
Copy link
Member

I don't see any crashes anymore related to this test after I submitted the fix. So closing this as fixed.

@colesbury
Copy link
Contributor Author

@colesbury colesbury added the 3.14 new features, bugs and security fixes label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes 3.14 new features, bugs and security fixes tests Tests in the Lib/test dir topic-free-threading type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

2 participants