Repository navigation
array iterator segfault on __setstate__() when exhausted #128961
Copy link
Copy link
Closed
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Description
Activity
- addedtype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
on Jan 17, 2025 - added a commit that references this issue
on Jan 17, 2025 Ping @erlend-aasland
- added a commit that references this issue
on Jan 17, 2025 - addedextension-modulesC modules in the Modules dirC modules in the Modules dir
on Jan 18, 2025 Fixed with:
- gh-128961: Fix exhausted array iterator crash in
__setstate__#128962 - [3.13] gh-128961: Fix exhausted array iterator crash in __setstate__() (GH-128962) #128976
- [3.12] gh-128961: Fix exhausted array iterator crash in __setstate__() (GH-128962) #128977
Auto-merge enabled for the backports. Closing as resolved. Thanks for identifying the bug and fixing it, Tomasz!
- gh-128961: Fix exhausted array iterator crash in
For the record: this was discovered while the OP was working on #128943.
- moved this to Todo in Struct, memoryview and array issues 🏗️
on Jul 13, 2026 - moved this from Todo to Done in Struct, memoryview and array issues 🏗️
on Jul 13, 2026
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Projects
- StatusShow more project fieldsDone
Crash report
What happened?
This goes back at least to py 3.8 (checked on that one), PR fix incoming.
CPython versions tested on:
3.14
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.14.0a4+ (heads/arrayiter:7d97bc8eda, Jan 17 2025, 16:24:27) [GCC 11.4.0]
Linked PRs
__setstate__#128962