[issue25259] readline macros can segfault Python

2020-11-09 Thread STINNER Victor
STINNER Victor added the comment: No activity for 4 years, I close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___

[issue25259] readline macros can segfault Python

2020-11-07 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___ _

[issue25259] readline macros can segfault Python

2016-06-20 Thread Martin Panter
Martin Panter added the comment: I think Victor may be on the right track. Since the macro contains two newlines, a single call to rl_callback_read_char() is going to produce two calls back to the rl_callback_handler_install() handler to receive each line. I can make the example from the Readl

[issue25259] readline macros can segfault Python

2015-09-28 Thread STINNER Victor
STINNER Victor added the comment: Python uses an user handler "rlhandler()" which calls rl_callback_handler_remove(). Is it safe to call rl_callback_handler_remove() in an user handler? Traceback on the crash: Program received signal SIGSEGV, Segmentation fault. 0x in ?? () (g

[issue25259] readline macros can segfault Python

2015-09-28 Thread Tim Chase
New submission from Tim Chase: Attempting to use a readline macro (use "C-x (" to start recording, "C-x )" to stop recording, and "C-x e" to playback) with more than one newline in it will cause a segfault. The behavior also presents in the [`rlwrap` tool](https://github.com/hanslub42/rlwrap/