Issue 23782: Leak in _PyTraceback_Add (original) (raw)
Issue23782
Created on 2015-03-26 10:25 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin. This issue is now closed.
Files | |||
---|---|---|---|
File name | Uploaded | Description | Edit |
_PyTraceback_Add_leak.patch | serhiy.storchaka,2016-06-19 17:09 | review | |
_PyTraceback_Add_leak2.patch | serhiy.storchaka,2016-10-09 12:59 | review |
Pull Requests | |||
---|---|---|---|
URL | Status | Linked | Edit |
PR 552 | closed | dstufft,2017-03-31 16:36 |
Messages (5) | ||
---|---|---|
msg239319 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2015-03-26 10:25 |
There is a leak of fetched exception in _PyTraceback_Add() (Python/traceback.c:146). | ||
msg239321 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2015-03-26 11:16 |
If a new exception is raised by _PyTraceback_Add(), the original exception is lost. It's sad because _PyTraceback_Add() is supposed to enhance the current exception, not to drop it. In the draft of my PEP 490, I propose to chain the two exceptions. | ||
msg268857 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2016-06-19 17:09 |
Proposed patch fixes a leak. | ||
msg278358 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2016-10-09 12:59 |
More refactoring. | ||
msg278852 - (view) | Author: Roundup Robot (python-dev) ![]() |
Date: 2016-10-18 10:28 |
New changeset 6b3be9f38f2a by Serhiy Storchaka in branch '3.5': Issue #23782: Fixed possible memory leak in _PyTraceback_Add() and exception https://hg.python.org/cpython/rev/6b3be9f38f2a New changeset 2d352bf2b228 by Serhiy Storchaka in branch '3.6': Issue #23782: Fixed possible memory leak in _PyTraceback_Add() and exception https://hg.python.org/cpython/rev/2d352bf2b228 New changeset 83877018ef97 by Serhiy Storchaka in branch 'default': Issue #23782: Fixed possible memory leak in _PyTraceback_Add() and exception https://hg.python.org/cpython/rev/83877018ef97 |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:58:14 | admin | set | github: 67970 |
2017-03-31 16:36:21 | dstufft | set | pull_requests: + <pull%5Frequest951> |
2016-10-18 10:32:08 | serhiy.storchaka | set | status: open -> closedstage: patch review -> resolvedresolution: fixedversions: + Python 3.7 |
2016-10-18 10:28:39 | python-dev | set | nosy: + python-devmessages: + |
2016-10-09 12:59:10 | serhiy.storchaka | set | files: + _PyTraceback_Add_leak2.patchmessages: + |
2016-07-17 10:05:33 | serhiy.storchaka | set | assignee: serhiy.storchaka |
2016-06-19 17:09:19 | serhiy.storchaka | set | files: + _PyTraceback_Add_leak.patchversions: + Python 3.5, Python 3.6messages: + components: + Interpreter Corekeywords: + patchstage: patch review |
2015-03-26 11:16:32 | vstinner | set | messages: + |
2015-03-26 10:25:02 | serhiy.storchaka | create |