Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
colesbury opened this issue Oct 13, 2024 · 1 comment
Labels
tests Tests in the Lib/test dir

Comments

@colesbury
Copy link
Contributor

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
@colesbury colesbury added the tests Tests in the Lib/test dir label Oct 13, 2024
@Zheaoli
Copy link
Contributor

Zheaoli commented Oct 14, 2024

Weird, I can not reproduce it in my environment

╰─ ./python -m unittest -v test.test_external_inspection.TestGetStackTrace.test_remote_stack_trace
test_remote_stack_trace (test.test_external_inspection.TestGetStackTrace.test_remote_stack_trace) ... abc
ok

----------------------------------------------------------------------
Ran 1 test in 0.097s

OK

╭─   manjusaka@manjusaka-garuda   ~/Documents/projects/cpython   3.13-dev                                                                                                                                                 main ⇣1 *4 !1 ?16   01:48:19  
╰─ uname -a 
Linux manjusaka-garuda 6.11.3-manjusakav4-xanmod1-1-manjusaka #1 SMP PREEMPT_DYNAMIC Fri, 11 Oct 2024 12:02:09 +0000 x86_64 GNU/Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir
Projects
None yet
Development

No branches or pull requests

2 participants