This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Failed tee.fromiterable() corrupts the linked list of all GC objects in debug build
Type: crash Stage: resolved
Components: Extension Modules Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: kj, miss-islington, pablogsal, rhettinger, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2021-07-04 18:11 by serhiy.storchaka, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 27020 merged serhiy.storchaka, 2021-07-04 18:15
PR 27041 merged miss-islington, 2021-07-05 22:19
PR 27042 merged miss-islington, 2021-07-05 22:19
Messages (4)
msg396952 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2021-07-04 18:11
In tee.fromiterable() the non-initialized tee object can be deleted by  without calling _Py_ForgetReference() in debug build.

See also issue44553 and issue44562.

The proposed PR rewrites the code so that it no longer need to delete not completely initialized tee object.
msg397023 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2021-07-05 22:19
New changeset f64de53ff01e734d48d1d42195443d7d1646f220 by Serhiy Storchaka in branch 'main':
bpo-44563: Fix error handling in tee.fromiterable() (GH-27020)
https://github.com/python/cpython/commit/f64de53ff01e734d48d1d42195443d7d1646f220
msg397026 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2021-07-05 22:34
New changeset 324b93295fd81133d2dd597c3e3a0333f6c9d95b by Miss Islington (bot) in branch '3.9':
bpo-44563: Fix error handling in tee.fromiterable() (GH-27020) (GH-27042)
https://github.com/python/cpython/commit/324b93295fd81133d2dd597c3e3a0333f6c9d95b
msg397027 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2021-07-05 22:35
New changeset 645e527298b1f24625783338076330037d860162 by Miss Islington (bot) in branch '3.10':
bpo-44563: Fix error handling in tee.fromiterable() (GH-27020) (GH-27041)
https://github.com/python/cpython/commit/645e527298b1f24625783338076330037d860162
History
Date User Action Args
2022-04-11 14:59:47adminsetgithub: 88729
2021-07-05 22:43:26pablogsalsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-07-05 22:35:01pablogsalsetmessages: + msg397027
2021-07-05 22:34:16pablogsalsetmessages: + msg397026
2021-07-05 22:19:50miss-islingtonsetpull_requests: + pull_request25601
2021-07-05 22:19:50pablogsalsetmessages: + msg397023
2021-07-05 22:19:45miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request25600
2021-07-04 18:15:15serhiy.storchakasetkeywords: + patch
stage: patch review
pull_requests: + pull_request25579
2021-07-04 18:11:14serhiy.storchakacreate