python-gnureadline icon indicating copy to clipboard operation
python-gnureadline copied to clipboard

Sometimes readline causes Terminal on MacOS to crash

Open bbbbbbbbba opened this issue 6 years ago • 3 comments
trafficstars

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

bbbbbbbbba avatar Feb 01 '19 08:02 bbbbbbbbba

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).

bbbbbbbbba avatar Feb 01 '19 09:02 bbbbbbbbba

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 :-)

ludwigschwardt avatar Jul 06 '19 23:07 ludwigschwardt

So far everything seems good, but I will need some more testing to be certain. It didn't seem to be a deterministic crash.

bbbbbbbbba avatar Jul 07 '19 09:07 bbbbbbbbba