python-gnureadline
python-gnureadline copied to clipboard
Sometimes readline causes Terminal on MacOS to crash
I wrote a program with a pseudo-console that uses gnureadline. Sometimes, when I am inputting a line, the Terminal will crash. It's the Terminal that crashes, not just my own program --- every Terminal window on my computer suddenly closes, and I get a dialog with a long error report (pastebin).
The exact circumstances that causes the crash is not clear, but it seems to only happen when my line contains Chinese characters, and when my line reach the right boundary of the Terminal.
My system is MacOS Mojave version 10.14. My python version information:
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 26 2016, 10:47:25)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
I just checked my Console.app to find the crash report of the first time I crashed recently, and realized the error code was different (pastebin).
Could you try the latest master to see if the problem still persists? I'm about to make a new release and would like to know if it helped :-)
So far everything seems good, but I will need some more testing to be certain. It didn't seem to be a deterministic crash.