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