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
{{ message }}
Repository navigation
Commit f41b1df
Browse filesBrowse the repository at this point in the historyBrowse files
Hang when reattaching after detach during shutdown (#6085)
* Hang when reattaching after detach during shutdown
* Fix test
* Comment
* Tweak
* Lints
* alphabetize
* Format
* Cleanups
* Combine test
* Format
* Format
* Drift
* Simplify test
* Fix stub
* fix test name
* safety comment
* skip detach test on graalpy
---------
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 after detaching. This mimics the [Python 3.14](https://github.com/python/cpython/issues/87135) behavior and avoids undefined behavior and crashes and applies the same logic as done for [Python::attach](https://github.com/PyO3/pyo3/pull/4874).
0 commit comments