hanslub42 / rlwrap

A readline wrapper
GNU General Public License v2.0
2.53k stars 149 forks source link

SIGSEGV when pasting after a Ctrl+V #153

Closed demostanis closed 1 year ago

demostanis commented 2 years ago

rlwrap cat Pressing Ctrl+V Pasting on my terminal some random text with Ctrl+Shift+V Pressing Enter leads to rlwrap: Oops, crashed (caught SIGSEGV) - this should not have happened! If you need a core dump, re-configure with --enable-debug and rebuild Resetting terminal and cleaning up...

hanslub42 commented 2 years ago

Thanks for the report! I need some information to have any chance to reproduce and investigate:

demostanis commented 2 years ago

Oops, sorry for forgetting basic information in the initial report... ~/.inputrc: set editing-mode vi Terminal: xfce4-terminal (can reproduce in kitty and alacritty) Arch Linuxxxxxxx

hanslub42 commented 2 years ago

Thanks! I cannot reproduce, however. A few more questions, therefore:

The fact that the bug occurs after a quoted-insert (bound to CTRL+V by default) and a subsequent paste (which will enter a bracketed paste marker before the pasted text) is suspicious: there have been a few rlwrap releases that didn't get bracketed-paste quite right

If my hunch is correct, it might help to put a set enable-bracketed-paste off in your .inputrc, or update rlwrap to the newset version (0.45.2)

hanslub42 commented 1 year ago

I suspect (though I'm by no means certain) that this is related to #167

Closing (until someone can reproduce this on the newest rlwrap)