python / python/cpython

In mac, terminal freezes when taking JWT token as getpass input

オープン
#157,538 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

type-bug
主要言語
Python
スター
77.2k
フォーク
35.9k
PR マージ指標
PR 指標を取得中

説明

Bug report

Bug description:

Issue Title: Terminal freezes on macOS when passing a JWT token via getpass
Summary
When attempting to input a long string—specifically a JSON Web Token (JWT)—using Python's getpass module in the macOS Terminal, the terminal application hangs and freezes completely, requiring a force quit.

Steps to Reproduce
Open Terminal (or iTerm2) on macOS.

Run a Python script or interactive shell that calls getpass.getpass().

Paste a standard long JWT string into the prompt.

Observe the terminal freeze/hang.

Expected Behavior
The terminal should accept the input securely (masking characters if applicable) without locking up, allowing the script to proceed.

Actual Behavior
The terminal interface stops responding entirely

Environment
OS: macOS (any version 10+)

CPython versions tested on:

3.13

Operating systems tested on:

macOS

Linked PRs
  • gh-157805

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、長い JWT を使って macOS Terminal または iTerm2 で getpass.getpass() を再現し、その後、すでに進行中の作業についてリンクされた PR gh-157805 を確認してください。JWT を貼り付けた後もターミナルが応答可能なままで、スクリプトが続行されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
cli, operating-systems
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。