Interpreter segfaults when LC_CTYPE is unsupported on Linux s390x
オープン
まだ誰も着手していません。
interpreter-core
type-crash
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 36k
- PR マージ指標
- PR 指標を取得中
説明
Crash report
set LC_CTYPE to an unsupported locale, e.g.
export LC_CTYPE=UTF-8
You should hopefully get -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory. If not, set LC_CTYPE to something random, e.g. foobar.
Start python REPL => segfault.
Error messages
Enter any relevant error message caused by the crash, including a core dump if there is one.
Your environment
- CPython versions tested on: 3.7.13, 3.8.13, 3.9.12
- Operating system and architecture: Linux s390x
- Running in a conda env. Unsetting
LC_CTYPEfixes the problem, in the same env. (System Python3 not available/installable on the available machine unfortunately.)
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、LC_CTYPE にサポートされていない値が設定されている状態で、CPython 3.7.13、3.8.13、または 3.9.12 を使って Linux s390x 上でクラッシュを再現し、次に LC_CTYPE の設定を解除した同じ環境と比較します。報告されたロケール設定で Python REPL を起動してもセグメンテーションフォールトが発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- c, python
- 領域
- operating-systems
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100