Repository navigation
Commit 2d358c6
If allocating a thread-local object’s internal dictionary or watchdog set fails, a subclass finalizer can run with that state missing. Accessing a thread-local attribute then dereferences the missing state and crashes; allocate both containers before creating the object. Backport to 3.15 and 3.14.
(cherry picked from commit 4a61673)
Co-authored-by: Jelle Zijlstra <jelle@openai.com>
1 parent ebc578f commit 2d358c6
2 files changed
Lines changed: 17 additions & 10 deletions
File tree
- Misc/NEWS.d/next/Library
- Modules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1470 | 1470 | | |
1471 | 1471 | | |
1472 | 1472 | | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
1473 | 1484 | | |
1474 | 1485 | | |
| 1486 | + | |
| 1487 | + | |
1475 | 1488 | | |
1476 | 1489 | | |
| 1490 | + | |
| 1491 | + | |
1477 | 1492 | | |
1478 | 1493 | | |
1479 | 1494 | | |
| |||
1482 | 1497 | | |
1483 | 1498 | | |
1484 | 1499 | | |
1485 | | - | |
1486 | | - | |
1487 | | - | |
1488 | | - | |
1489 | | - | |
1490 | | - | |
1491 | | - | |
1492 | | - | |
1493 | | - | |
1494 | | - | |
1495 | 1500 | | |
1496 | 1501 | | |
1497 | 1502 | | |
| |||
0 commit comments