You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hang instead of pthread_exit during interpreter shutdown (#4874)
* hang instead of pthread_exit during interpreter shutdown
see python/cpython#87135 and
rust-lang/rust#135929
* relnotes
* fix warnings
* version using pthread_cleanup_push
* add tests
* new attempt
* clippy
* comment
* msrv
* address review comments
* update comment
* add comment
* try to skip test on debug builds
---------
Co-authored-by: Ariel Ben-Yehuda <arielby@amazon.com>
Co-authored-by: David Hewitt <mail@davidhewitt.dev>
* PyO3 threads now hang instead of `pthread_exit` trying to acquire the GIL when the interpreter is shutting down. This mimics the [Python 3.14](https://github.com/python/cpython/issues/87135) behavior and avoids undefined behavior and crashes.
0 commit comments