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

Integration test test_thread_reuse() fails on linux/x86-64 and macos #701

Open
jiangliu opened this issue Oct 15, 2024 · 1 comment
Open

Comments

@jiangliu
Copy link
Contributor

With unwind enabled, test_thread_reuse() fails with message:

---- test_thread_reuse stdout ----
thread 'test_thread_reuse' panicked at src/python_spy.rs:451:25:
Native stack traces not supported on this platform
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    test_thread_reuse

The root cause is that _get_pthread_id() succeeds on my dev machine but fails on github testbed.

It also fails on macos with message:

---- test_thread_reuse stdout ----
thread 'test_thread_reuse' panicked at tests/integration_test.rs:42:65:
called `Result::unwrap()` on an `Err` value: Failed to open process - check if it is running.

Caused by:
    0: Operation timed out (os error 60)
    1: Operation timed out (os error 60)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    test_thread_reuse
@benfred
Copy link
Owner

benfred commented Oct 16, 2024

The root cause is that _get_pthread_id() succeeds on my dev machine but fails on github testbed.

Do you have a link to a failing run here? We are running this integration_test.rs as part of the linux CI here on every PR - and I haven't seen a failure yet

run: cargo test --release

On linux, this test will need the native unwind support to work reliably (so compiled w/ --features unwind now) - and maybe this needs added to the build.yml cargo test ... command line (?)

It also fails on macos with message:

On OSX - the 0: Operation timed out (os error 60) messages usually mean that we are running into SIP restrictions https://github.com/benfred/py-spy?tab=readme-ov-file#why-am-i-having-issues-profiling-usrbinpython-on-osx =(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants