-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Pdb (as of 3.11.0, 3.11.1 and main branch, run from the command line) loops endlessly on non-interactive scripts.
To reproduce, run python -m pdb /dev/null from the command line. This loops, endlessly printing The program finished and will be restarted to the terminal. Pressing Ctrl + C drops you into the debugger shell, but entering quit only drops you back into that endless loop, I had to kill the process directly to make it quit.
With Python 3.10, it looks like this:
nils@makake:~> python3.10 -m pdb /dev/null
> /dev/null(1)<module>()
(Pdb) quit
nils@makake:~> python3.10 -m pdb -c c /dev/null
The program finished and will be restarted
> /dev/null(1)<module>()
(Pdb) q
nils@makake:~>
Your environment
- CPython versions tested on: 3.11.0, 3.11.1, built from current
mainbranch - Operating system and architecture: Fedora Linux 37, x86_64
Linked PRs
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error