Repository navigation
Crash in test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation #120158
Copy link
Copy link
Closed
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtopic-free-threadingtype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Description
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
Linked PRs
- gh-120158: Fix inconsistent monitoring state when setting events too frequently #141845
- [3.14] gh-120158: Fix inconsistent monitoring state when setting events too frequently (gh-141845) #141879
- [3.13] gh-120158: Fix inconsistent monitoring state when setting events too frequently (gh-141845) #141880
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtopic-free-threadingtype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Activity
colesbury commentedon Jun 6, 2024
cc @DinoV
Fidget-Spinner commentedon Jun 15, 2024
I don't see any crashes anymore related to this test after I submitted the fix. So closing this as fixed.
colesbury commentedon Jul 1, 2024
Buildbot failure reported by @encukou: https://buildbot.python.org/all/#/builders/1226/builds/2150/steps/5/logs/stdio
test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentationcrashes intermittently #128806 as a duplicate of this issueencukou commentedon Jul 29, 2025
Another one here: https://buildbot.python.org/all/#/builders/1610/builds/1822/steps/6/logs/stdio
encukou commentedon Sep 10, 2025
Another one here: https://buildbot.python.org/all/#/builders/1610/builds/2047/steps/6/logs/stdio
encukou commentedon Oct 15, 2025
Another one: https://buildbot.python.org/#/builders/1610/builds/2240/steps/6/logs/stdio
test_free_threading.test_monitoringflaky (occasional reference leak) #136692colesbury commentedon Nov 22, 2025
This is a different issue from #136692
pythongh-120158: Fix monitoring state when setting events too frequently
pythongh-120158: Fix monitoring state when setting events too frequently
pythongh-120158: Fix monitoring state when setting events too frequently
gh-120158: Fix inconsistent monitoring state when setting events too …
pythongh-120158: Fix inconsistent monitoring state when setting event…
[3.13] pythongh-120158: Fix inconsistent monitoring state when settin…
[3.13] gh-120158: Fix inconsistent monitoring state when setting even…
[3.14] gh-120158: Fix inconsistent monitoring state when setting even…
pythongh-120158: Fix inconsistent monitoring state when setting event…
pythongh-120158: Fix inconsistent monitoring state when setting event…