From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: David Bremner Newsgroups: gmane.emacs.bugs Subject: bug#35557: 26.1; false positive: Match data clobbered by buffer modification hooks Date: Sat, 04 May 2019 08:35:57 -0300 Message-ID: <87o94ih2oy.fsf@tethera.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="128832"; mail-complaints-to="usenet@blaine.gmane.org" To: 35557@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 04 13:37:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMsyk-000XQ0-9V for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 May 2019 13:37:18 +0200 Original-Received: from localhost ([127.0.0.1]:54950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMsyj-0007XS-Bu for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 May 2019 07:37:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMsyV-0007WL-EB for bug-gnu-emacs@gnu.org; Sat, 04 May 2019 07:37:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMsyU-00023d-EV for bug-gnu-emacs@gnu.org; Sat, 04 May 2019 07:37:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36922) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hMsyU-00023S-BQ for bug-gnu-emacs@gnu.org; Sat, 04 May 2019 07:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hMsyU-0006or-2Q for bug-gnu-emacs@gnu.org; Sat, 04 May 2019 07:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Bremner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 May 2019 11:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35557 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155696977526148 (code B ref -1); Sat, 04 May 2019 11:37:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 May 2019 11:36:15 +0000 Original-Received: from localhost ([127.0.0.1]:50466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMsxi-0006ng-PN for submit@debbugs.gnu.org; Sat, 04 May 2019 07:36:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58443) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMsxg-0006nR-QB for submit@debbugs.gnu.org; Sat, 04 May 2019 07:36:13 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:52144) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hMsxb-0001hN-H9 for submit@debbugs.gnu.org; Sat, 04 May 2019 07:36:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMsxa-000739-De for bug-gnu-emacs@gnu.org; Sat, 04 May 2019 07:36:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMsxZ-0001fw-Bz for bug-gnu-emacs@gnu.org; Sat, 04 May 2019 07:36:06 -0400 Original-Received: from fethera.tethera.net ([2607:5300:60:c5::1]:34012) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hMsxZ-0001fH-81 for bug-gnu-emacs@gnu.org; Sat, 04 May 2019 07:36:05 -0400 Original-Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1hMsxT-0005hK-MF for bug-gnu-emacs@gnu.org; Sat, 04 May 2019 07:35:59 -0400 Original-Received: (nullmailer pid 27423 invoked by uid 1000); Sat, 04 May 2019 11:35:57 -0000 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:158737 Archived-At: 1. Save the following as test.el (let ((inhibit-modification-hooks t)) (with-temp-buffer (insert "P'") (goto-char (point-min)) (while (re-search-forward "\\([^\\]\\)'" nil t) (replace-match "\\1`")) (buffer-substring (point-min) (point-max)))) 2. run "emacs --batch --quick --load ./test.el" 3. Under docker, with Debian's emacs-nox (but not emacs-lucid or emacs-gtk, I get an error "Match data clobbered by buffer modification hooks". I don't think this is Debian specific, as someone was also able to duplicate it with "nixpkgs.emacs26-nox" (also in Docker). I agree the setup sounds pretty specific, but it is used by a Debian CI setup, which is why I care. Here's the build info, copied out of docker: In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu) of 2019-02-03, modified by Debian built on zam904 Recent messages: Loading /etc/emacs/site-start.d/00debian.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/sh\ are/emacs/26.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/sh\ are/emacs/26.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-x=no --without-gsettings 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs-26.1+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro'