Need to keep traceback alive in WITH_EXCEPT_START
オープン
まだ誰も着手していません。
3.13
3.14
3.15
interpreter-core
type-bug
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Bug report
Bug description:
Currently in WITH_EXCEPT_START the interpreter loop gets the traceback from the exception object and then immediately decref's it before calling the __exit__ function. But the __exit__ function may not incref the traceback (if it's not an interpretedPython function) and could cause the traceback to be replaced on the exception, leading it holding onto a freed traceback.
CPython versions tested on:
CPython main branch, 3.12
Operating systems tested on:
Linux
Linked PRs
- gh-130562
- gh-130626
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず関連付けられた PR gh-130562 と gh-130626 を確認し、その後 CPython のインタープリターループにある WITH_EXCEPT_START の実装を特定してください。exit の実行中も traceback が有効なままであることを検証し、報告された置換とライフタイムのシナリオに対するカバレッジを追加または更新してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- compilers
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100