Hi. I'm running a recent emacs built from git: https://github.com/emacs-mirror/emacs/commit/6e2a402 I'm on a Debian machine, running the GTK build of emacs. Segfault recipe: 1. emacs -Q /tmp/feedgnuplot (source attached) 2. M-x cperl-mode 3. C-s last if /^exit/ C-s Type out the string "last if /^exit/". It may crash while you're typing it, or it may reach the end of the string in the match on line 431. Hit C-s again after you typed it. If it didn't crash already, the extra C-s makes it crash. I haven't done any debugging other than to look at the backtrace. Relevant chunks: #0 0x00007ffff03f8107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 #1 0x00007ffff03f94e8 in __GI_abort () at abort.c:89 #2 0x000000000053c3e5 in re_match_2_internal (bufp=bufp@entry=0xb93fc0, string1=string1@entry=0x28bbca0 "#!/usr/bi:HiRes qw( usleep gettimeofday tv_interval );\nuse IO::Handle;\nuse List::Util qw( "..., size1=size1@entry=0, strinrnings;\nuse Getopt::Long;\nuse Time::HiRes qw( usleep gettimeofday tv_interval );\nuse IO::Handle;\nuse List::Util #3 0x0000000000543b52 in re_search_2 (bufp=bufp@entry=0xb93fc0, str1=str1@entry=0x28bbca0 "#!/usr/bin/perl\n\npackeep gettimeofday tv_interval );\nuse IO::Handle;\nuse List::Util qw( "..., size1=size1@entry=0, str2=str2@entry=0x2:Long;\nuse Time::HiRes qw( usleep gettimeofday tv_interval );\nuse IO::Handle;\nuse List::Util qw( "..., size2=siz #4 0x0000000000539522 in search_buffer (string=string@entry=42306836, pos=, pos_byte=, noerror=44160, count=, bound=, noerror=