8000 `test_faulthandler.test_register_chain` hangs under TSAN · Issue #129825 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

test_faulthandler.test_register_chain hangs under TSAN #129825

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

Open
colesbury opened this issue Feb 7, 2025 · 0 comments
Open

test_faulthandler.test_register_chain hangs under TSAN #129825

colesbury opened this issue Feb 7, 2025 · 0 comments
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@colesbury
Copy link
Contributor
colesbury commented Feb 7, 2025

Bug report

Run with:

TSAN_OPTIONS=suppressions=Tools/tsan/suppressions.txt handle_segv=0 ./python -m test test_faulthandler -m test_register_chain -v

This was in the default (GIL-enabled build).

There's some sort of infinite loop between TSAN's interception of kill() and our attempt to pass the signal to the previous signal handler.

I think we should just skip the test under TSAN. I'm not sure it's worth investigating too deeply.

Linked PRs

@colesbury colesbury added tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Feb 7, 2025
colesbury added a commit to colesbury/cpython that referenced this issue Feb 7, 2025
The test hangs when run under TSAN due to an interaction between TSAN's
signal interception and our attempt to call the previous signal handler.
colesbury added a commit that referenced this issue Feb 7, 2025
gh-129825: Skip test_faulthandler.test_register_chain under TSAN (< 597E a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2838895712" data-permission-text="Title is private" data-url="https://github.com/python/cpython/issues/129827" data-hovercard-type="pull_request" data-hovercard-url="/python/cpython/pull/129827/hovercard" href="https://github.com/python/cpython/pull/129827">gh-…
…129827)

The test hangs when run under TSAN due to an interaction between TSAN's
signal interception and our attempt to call the previous signal handler.
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 type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant
0