Martin Panter added the comment: I found that if you redirect GDB’s stdin if fixes all the problems. I don’t fully understand what GDB is doing to change the terminal’s foreground process group.
In my patch I set stdin to a pipe. It is like using DEVNULL, but should be compatible with Python 2 as well. ---------- keywords: +patch nosy: +martin.panter stage: needs patch -> patch review versions: +Python 3.5, Python 3.6 -Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file41260/gdb-stdin.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14771> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com