diff options
author | Victor Stinner <vstinner@python.org> | 2021-09-07 13:42:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-07 13:42:11 (GMT) |
commit | fb305092a5d7894b41f122c1a1117b3abf4c567e (patch) | |
tree | baaf648325e8226eccbd54b702b2f0e08c616237 /Doc | |
parent | 979336de34e3d3f40cf6e666b72a618f6330f3c1 (diff) | |
download | cpython-fb305092a5d7894b41f122c1a1117b3abf4c567e.zip cpython-fb305092a5d7894b41f122c1a1117b3abf4c567e.tar.gz cpython-fb305092a5d7894b41f122c1a1117b3abf4c567e.tar.bz2 |
bpo-44348: BaseException deallocator uses trashcan (GH-28190)
The deallocator function of the BaseException type now uses the
trashcan mecanism to prevent stack overflow. For example, when a
RecursionError instance is raised, it can be linked to another
RecursionError through the __context__ attribute or the __traceback__
attribute, and then a chain of exceptions is created. When the chain
is destroyed, nested deallocator function calls can crash with a
stack overflow if the chain is too long compared to the available
stack memory.
Diffstat (limited to 'Doc')
0 files changed, 0 insertions, 0 deletions