From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.bugs Subject: bug#21802: 25.0.50; segfault in regex.c triggered by an isearch Date: Sun, 01 Nov 2015 01:36:45 -0800 Message-ID: <87mvuyrrgy.fsf@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1446370644 25214 80.91.229.3 (1 Nov 2015 09:37:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Nov 2015 09:37:24 +0000 (UTC) To: 21802@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 01 10:37:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zsp4a-0003rF-CH for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Nov 2015 10:37:12 +0100 Original-Received: from localhost ([::1]:58453 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zsp4Z-00044g-EM for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Nov 2015 04:37:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zsp4T-00044V-Vj for bug-gnu-emacs@gnu.org; Sun, 01 Nov 2015 04:37:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zsp4Q-0007ai-Ny for bug-gnu-emacs@gnu.org; Sun, 01 Nov 2015 04:37:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zsp4Q-0007aX-JL for bug-gnu-emacs@gnu.org; Sun, 01 Nov 2015 04:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zsp4Q-0000UH-B8 for bug-gnu-emacs@gnu.org; Sun, 01 Nov 2015 04:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Nov 2015 09:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21802 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14463706191862 (code B ref -1); Sun, 01 Nov 2015 09:37:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Nov 2015 09:36:59 +0000 Original-Received: from localhost ([127.0.0.1]:47498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zsp4M-0000Ty-NC for submit@debbugs.gnu.org; Sun, 01 Nov 2015 04:36:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43807) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zsp4K-0000Tf-1v for submit@debbugs.gnu.org; Sun, 01 Nov 2015 04:36:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zsp4I-0007ZL-ML for submit@debbugs.gnu.org; Sun, 01 Nov 2015 04:36:55 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zsp4I-0007ZH-II for submit@debbugs.gnu.org; Sun, 01 Nov 2015 04:36:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zsp4H-000442-08 for bug-gnu-emacs@gnu.org; Sun, 01 Nov 2015 04:36:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zsp4D-0007W6-Or for bug-gnu-emacs@gnu.org; Sun, 01 Nov 2015 04:36:52 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:42329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zsp4D-0007VC-G1 for bug-gnu-emacs@gnu.org; Sun, 01 Nov 2015 04:36:49 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id E626E20458 for ; Sun, 1 Nov 2015 04:36:47 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Sun, 01 Nov 2015 04:36:47 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=content-type:date:from:message-id:mime-version:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=hCxr0ht6VVrz4j2CXHfwl9503QQ =; b=fW3hZCMX8xh5+AwqclN3+5rYEuAuVyl9KwfuGigtqvlMQbttPij0dlUX7mS xylgjR1DpZPjX5RFBR5tUueV3a1kD6ZRDED0V3V0Fb37XAR7ImkyK8QnfO5Nxx5J nx9nlnwOl9tj62YfAJ6au8ZQtb+fsQWOmATEGNt0yabBTDEw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=hC xr0ht6VVrz4j2CXHfwl9503QQ=; b=Lw6FWX2ZyXEEUFjFYNgwuvGwUfucoinykE yIHxPcrKeORDt5C94Vkrq2ykMdxIgt5T7ZeAr6BpCoNrKqdKPvDfMGC/USjlRSLG DnVDWsgKdcWPdVBO0qSCXM7rXkIahvSZxO1F4WE+59niJxoMeKVtBtVK3p2nYtWm TA+yqTwYM= X-Sasl-enc: ODJ5GVP2weGPnGh48wsyiqojfB7eoL6MKtea3yJIY/BA 1446370606 Original-Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 6B14CC016D5 for ; Sun, 1 Nov 2015 04:36:46 -0500 (EST) Original-Received: from ip6-localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1Zsp49-0000os-AT for bug-gnu-emacs@gnu.org; Sun, 01 Nov 2015 01:36:45 -0800 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:108258 Archived-At: --=-=-= Content-Type: text/plain 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=