Message251800
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/issues/36) but not in `bash`. I've tested and reproduced with Python 2.[4-6] and 3.4, but I don't see any similar bug-reports that would suggest that the problem doesn't also exist in all 3.x series releases. To reproduce, in a `readline`-enabled Python:
$ python
…
>>> import cmd
>>> cmd.Cmd().cmdloop()
(Cmd) # do "C-x ( <NL> <NL> C-x ) C-x e" and it segfaults
The author of `rlwrap` is working to create a minimum working example, and I'm not sure whether this is a problem with the underlying `libreadline` or just how it's being used by `rlwrap` and Python. |
|
Date |
User |
Action |
Args |
2015-09-28 20:53:09 | gumnos | set | recipients:
+ gumnos |
2015-09-28 20:53:09 | gumnos | set | messageid: <1443473589.61.0.823349470149.issue25259@psf.upfronthosting.co.za> |
2015-09-28 20:53:09 | gumnos | link | issue25259 messages |
2015-09-28 20:53:09 | gumnos | create | |
|