python / cpython

The Python programming language
https://www.python.org
Other
63.37k stars 30.33k forks source link

Crash in `test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation` #120158

Open colesbury opened 5 months ago

colesbury commented 5 months ago

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 commented 5 months ago

cc @DinoV

Fidget-Spinner commented 4 months ago

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

colesbury commented 4 months ago

Buildbot failure reported by @encukou: https://buildbot.python.org/all/#/builders/1226/builds/2150/steps/5/logs/stdio