Skip to content

test_external_inspection.TestGetStackTrace.test_self_trace fails when building with --enable-shared #125402

Closed
@colesbury

Description

@colesbury

When Python is built with --enable-shared, TestGetStackTrace.test_self_trace hangs or fails.

OS: Ubuntu 22.04.2 LTS on x86-64

test_remote_stack_trace (test.test_external_inspection.TestGetStackTrace.test_remote_stack_trace) ... /raid/sgross/cpython/python: error while loading shared libraries: libpython3.14d.so.1.0: cannot open shared object file: No such file or directory

Also seen:

test_self_trace (test.test_external_inspection.TestGetStackTrace.test_self_trace) ... ERROR

======================================================================
ERROR: test_self_trace (test.test_external_inspection.TestGetStackTrace.test_self_trace)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/raid/sgross/cpython/Lib/test/test_external_inspection.py", line 80, in test_self_trace
    stack_trace = get_stack_trace(os.getpid())
RuntimeError: No interpreter state found

----------------------------------------------------------------------
Ran 2 tests in 0.169s

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions