Skip to content

Crash in test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation #120158

Description

@colesbury

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

Activity

  1. added
    testsTests in the Lib/test dir
    type-crashA hard crash of the interpreter, possibly with a core dump
    3.13only security fixes
    on Jun 6, 2024
  2. colesbury commented on Jun 6, 2024

    @colesbury
    ContributorAuthor
  3. Fidget-Spinner commented on Jun 15, 2024

    @Fidget-Spinner
    Member

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

  4. colesbury commented on Jul 1, 2024

    @colesbury
    ContributorAuthor
  5. encukou commented on Jul 29, 2025

    @encukou
    Member
  6. removed
    3.13only security fixes
    3.14bugs and security fixes
    on Jul 29, 2025
  7. encukou commented on Sep 10, 2025

    @encukou
    Member
  8. encukou commented on Oct 15, 2025

    @encukou
    Member
  9. colesbury commented on Nov 22, 2025

    @colesbury
    ContributorAuthor

    This is a different issue from #136692

  10. added 4 commits that reference this issue on Nov 22, 2025
  11. added a commit that references this issue on Nov 23, 2025
  12. added 3 commits that reference this issue on Nov 23, 2025
  13. added a commit that references this issue on Dec 6, 2025
  14. added a commit that references this issue on Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtopic-free-threadingtype-crashA hard crash of the interpreter, possibly with a core dump

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions