Crash in repr() in finalizer
未关闭
还没有人认领这个 Issue。
3.11
interpreter-core
type-crash
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 36k
- PR 合并指标
- PR 指标待抓取
描述
This is currently the number one crash reported through Windows Error Reporting. It appears to be something to do with a repr during finalization. I haven't dug into the actual lines of code, but the line numbers below should be accurate as of 3.11.1
| symbol | offset | IP | filename | line |
|---|---|---|---|---|
| 0 | python311!_PyObject_VectorcallTstate | 0x0000000000000024 | pycore_call.h | 87 |
| 1 | python311!PyObject_CallOneArg | 0x0000000000000030 | call.c | 377 |
| 2 | python311!PyObject_Repr | 0x000000000000008B | object.c | 434 |
| 3 | python311!_PyEval_EvalFrameDefault | 0x0000000000007136 | ceval.c | 5506 |
| 4 | python311!_PyObject_VectorcallTstate | 0x0000000000000354 | pycore_call.h | 92 |
| 5 | python311!PyObject_CallOneArg | 0x0000000000000030 | call.c | 377 |
| 6 | python311!slot_tp_repr | 0x0000000000000039 | typeobject.c | 7559 |
| 7 | python311!PyObject_Repr | 0x000000000000008B | object.c | 434 |
| 8 | python311!_PyEval_EvalFrameDefault | 0x0000000000007136 | ceval.c | 5506 |
| 9 | python311!_PyObject_VectorcallTstate | 0x0000000000000354 | pycore_call.h | 92 |
| 10 | python311!PyObject_CallOneArg | 0x0000000000000030 | call.c | 377 |
| 11 | python311!slot_tp_finalize | 0x000000000000005F | typeobject.c | 7909 |
| 12 | python311!finalize_garbage | 0x00000000000000A5 | gcmodule.c | 980 |
| 13 | python311!gc_collect_main | 0x0000000000000143 | gcmodule.c | 1280 |
| 14 | python311!_PyGC_CollectNoFail | 0x0000000000000030 | gcmodule.c | 2111 |
| 15 | python311!finalize_modules | 0x00000000000000F0 | pylifecycle.c | 1601 |
| 16 | python311!Py_FinalizeEx | 0x00000000000000A1 | pylifecycle.c | 1839 |
| 17 | python311!Py_RunMain | 0x000000000000001A | main.c | 682 |
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查 gcmodule.c、typeobject.c、object.c、ceval.c 和 pylifecycle.c 中报告的调用链,并以 3.11.1 的行号引用作为指引。重现 Windows 上的终结崩溃,并跟踪关闭期间的 repr 调用;当理解了崩溃原因,且回归检查证明能够安全终结时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- backend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100