[issue41033] readline.c: SEGFAULT on SIGWINCH when loaded twice

2021-12-16 Thread Dale
Dale added the comment: I hit this on macOS today but I didn't get segmentation fault, at least not for as long as I cared to let Python run. Instead I got a non-responsive Python process using 100% CPU that I had to kill with ^\. I first hit this with GNU readline while running Python

[issue41033] readline.c: SEGFAULT on SIGWINCH when loaded twice

2020-07-09 Thread daniel hahler
daniel hahler added the comment: 91e1bc18bd (bpo-41194) reminded me of this. Maybe the same mechanism could be used here. -- ___ Python tracker ___

[issue41033] readline.c: SEGFAULT on SIGWINCH when loaded twice

2020-06-19 Thread daniel hahler
New submission from daniel hahler : The following will crash due to the signal handler calling itself recursively: ``` import os, readline, signal, sys del sys.modules["readline"] import readline os.kill(os.getpid(), signal.SIGWINCH) ``` This fixes it: ``` diff --git a/Modules/readline.c