Commit 0ba07b2
authored
There was a slight race in _Py_ClearFileSystemEncoding() (when called from _Py_SetFileSystemEncoding()), between freeing the value and setting the variable to NULL, which occasionally caused crashes when multiple isolated interpreters were used. (Notably, I saw at least 10 different, seemingly unrelated spooky-action-at-a-distance, ways this crashed. Yay, free threading!) We avoid the problem by only setting the global variables with the main interpreter (i.e. runtime init).
1 parent 87e7cb0 commit 0ba07b2
File tree
2 files changed
+11
-4
lines changed- Misc/NEWS.d/next/Core and Builtins
- Objects
2 files changed
+11
-4
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15189 | 15189 | | |
15190 | 15190 | | |
15191 | 15191 | | |
15192 | | - | |
15193 | | - | |
15194 | | - | |
15195 | | - | |
| 15192 | + | |
| 15193 | + | |
| 15194 | + | |
| 15195 | + | |
| 15196 | + | |
| 15197 | + | |
| 15198 | + | |
15196 | 15199 | | |
15197 | 15200 | | |
15198 | 15201 | | |
| |||
0 commit comments