Skip to content

test_profiling.test_sampling_profiler: test_run_failed_script_live() hangs on multiple buildbots #150387

Closed

Description

@vstinner

test_run_failed_script_live() hangs on multiple buildbots:

Example:

test_run_failed_script_live (test.test_profiling.test_sampling_profiler.test_live_collector_ui.TestLiveModeErrors.test_run_failed_script_live)
Test that running a failing script exits with clean error. ... Timeout (0:20:00)!
Thread 0x000077c110eae780 [python] (most recent call first):
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/profiling/sampling/sample.py", line 618 in curses_wrapper_func
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/test/test_profiling/test_sampling_profiler/test_live_collector_ui.py", line 829 in mock_curses_wrapper
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/unittest/mock.py", line 1246 in _execute_mock_call
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/unittest/mock.py", line 1179 in _mock_call
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/unittest/mock.py", line 1175 in __call__
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/profiling/sampling/sample.py", line 623 in sample_live
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/profiling/sampling/cli.py", line 1374 in _handle_live_run
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/profiling/sampling/cli.py", line 1239 in _handle_run
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/profiling/sampling/cli.py", line 1133 in _main
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/profiling/sampling/cli.py", line 977 in main
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/test/test_profiling/test_sampling_profiler/test_live_collector_ui.py", line 884 in test_run_failed_script_live
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/unittest/case.py", line 637 in _callTestMethod
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/unittest/case.py", line 691 in run
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/unittest/case.py", line 747 in __call__
...

AMD64 Arch Linux Asan 3.x:

AMD64 Arch Linux TraceRefs 3.x:

cc @pablogsal

Linked PRs

Activity

  1. vstinner commented on May 25, 2026

    @vstinner
    MemberAuthor

    The test also fails on PPC64LE Fedora Rawhide NoGIL 3.x: https://buildbot.python.org/#/builders/1537/builds/1627

  2. pablogsal commented on May 25, 2026

    @pablogsal
    Member

    Will take a look soon

  3. vstinner commented on May 25, 2026

    @vstinner
    MemberAuthor

    The test also hangs on "Ubuntu (free-threading) / build and test (ubuntu-24.04)" GHA CI job: https://github.com/python/cpython/actions/runs/26405511392/job/77727877286.

  4. added a commit that references this issue on May 25, 2026
  5. added a commit that references this issue on May 25, 2026
  6. vstinner commented on May 25, 2026

    @vstinner
    MemberAuthor

    Thanks for fixing quickly the issue @pablogsal!

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-profilingtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions