Bug report
Bug description:
test.py:
To reproduce: run with (*)
$ pdb3 test.py
or
$ python3 -m pdb test.py
enter command 'c' to run
(* or pdb / python depending on installation)
Result: The program runs to completion but then pdb crashes with "ValueError: I/O operation on closed file."
Full output:
output.txt
Reproduced with 3.12.3 on Linux and 3.10.4 on Windows.
It happens only in the debugger and only when exit() is called, and regardless of a status code passed to exit().
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Bug report
Bug description:
test.py:
To reproduce: run with (*)
$ pdb3 test.py
or
$ python3 -m pdb test.py
enter command 'c' to run
(* or pdb / python depending on installation)
Result: The program runs to completion but then pdb crashes with "ValueError: I/O operation on closed file."
Full output:
output.txt
Reproduced with 3.12.3 on Linux and 3.10.4 on Windows.
It happens only in the debugger and only when exit() is called, and regardless of a status code passed to exit().
CPython versions tested on:
3.12
Operating systems tested on:
Linux