From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#21688: 25.0.50; abort in regex.c during "align" Date: Sun, 25 Oct 2015 22:57:54 -0400 Message-ID: References: <6eh9ls35e6.fsf@just-testing.permabit.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445828363 18051 80.91.229.3 (26 Oct 2015 02:59:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Oct 2015 02:59:23 +0000 (UTC) Cc: 21688@debbugs.gnu.org To: Ken Raeburn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 26 03:59:12 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 1ZqY08-0000a9-8W for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Oct 2015 03:59:12 +0100 Original-Received: from localhost ([::1]:50347 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqY07-0000i3-JL for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Oct 2015 22:59:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqY03-0000hx-Ue for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2015 22:59:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZqXzy-0003bi-Uv for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2015 22:59:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqXzy-0003bR-Sm for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2015 22:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZqXzy-0006bb-4h for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2015 22:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Oct 2015 02:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21688 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21688-submit@debbugs.gnu.org id=B21688.144582829825340 (code B ref 21688); Mon, 26 Oct 2015 02:59:02 +0000 Original-Received: (at 21688) by debbugs.gnu.org; 26 Oct 2015 02:58:18 +0000 Original-Received: from localhost ([127.0.0.1]:38359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZqXzG-0006ae-85 for submit@debbugs.gnu.org; Sun, 25 Oct 2015 22:58:18 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:55461) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZqXyu-0006Zj-Tm for 21688@debbugs.gnu.org; Sun, 25 Oct 2015 22:58:16 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t9Q2vsJZ029618; Sun, 25 Oct 2015 22:57:54 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 1184EAE260; Sun, 25 Oct 2015 22:57:54 -0400 (EDT) In-Reply-To: <6eh9ls35e6.fsf@just-testing.permabit.com> (Ken Raeburn's message of "Thu, 15 Oct 2015 04:25:21 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5470=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5470> : inlines <3953> : streams <1527480> : uri <2070359> 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:108033 Archived-At: > I'm getting an abort in the regex code while doing an align operation on > some perl code. I've boiled down a test case to reproduce it to this: [...] > The abort at 6256 is in the switch statement after the "fail" label. > Since "pat" is only three bytes into the buffer, the value branched on > would've been two bytes in, a 1, which is the "succeed" enumerator, > which isn't expected in that switch statement. I think the issue is simply that syntax-propertization is now done on-the-fly during regexp-matching and that this is wrong: the regexp code is not re-entrant, so if syntax-propertization happens from regexp-matching and performs regexp-matching itself we're likely to see weird behaviors. I think the fix is to make regexp.c use a new UPDATE_SYNTAX_TABLE_FORWARD_FAST (which doesn't pay attention to syntax-propertize--done) instead of UPDATE_SYNTAX_TABLE_FORWARD. Stefan