This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gumnos
Recipients gumnos
Date 2015-09-28.20:53:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1443473589.61.0.823349470149.issue25259@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-09-28 20:53:09gumnossetrecipients: + gumnos
2015-09-28 20:53:09gumnossetmessageid: <1443473589.61.0.823349470149.issue25259@psf.upfronthosting.co.za>
2015-09-28 20:53:09gumnoslinkissue25259 messages
2015-09-28 20:53:09gumnoscreate