pyo3/newsfragments
bors[bot] bd07ecc91d
Merge #2952
2952: Fix allow_threads segfault r=davidhewitt a=OliverBalfour

Please see the corresponding issue **#2951** for details. This PR adds the failing test from the issue and then a fix for it. The fix simply calls `ReferencePool::update_counts` at the end of `allow_threads` to ensure objects aren't accidentally deleted too soon.

Co-authored-by: Oliver Balfour <oliver.leo.balfour@gmail.com>
2023-02-21 08:46:06 +00:00
..
.gitignore use towncrier to generate CHANGELOG 2022-09-08 07:58:53 +01:00
2939.changed.md Disable default features of chrono 2023-02-09 21:27:31 +08:00
2944.changed.md optimize sequence conversion for list and tuple 2023-02-15 08:28:29 +00:00
2947.changed.md change PyModule::add_class to return an error if class creation fails 2023-02-14 22:08:35 +00:00
2952.fixed.md update reference pool counts at the end of allow_threads to avoid use-after-free 2023-02-21 08:44:48 +00:00
2954.changed.md optimize mapping conversion for dict 2023-02-15 08:27:18 +00:00
2961.fixed.md docs: fix typo in method name 2023-02-18 22:02:05 +01:00