From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.emacs.bugs Subject: bug#12077: Abort in replace-regexp with an after-change-functions hook Date: Sat, 28 Jul 2012 12:53:33 -0500 Message-ID: <87wr1n22n6.fsf@trouble.defaultvalue.org> References: <20120727200247.7276.54835.reportbug@susie.zeus.nullprogram.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1343498046 10501 80.91.229.3 (28 Jul 2012 17:54:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 Jul 2012 17:54:06 +0000 (UTC) Cc: 682995-forwarded@bugs.debian.org, Christopher Wellons , 682995@bugs.debian.org To: 12077@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 28 19:54:05 2012 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 1SvBDH-0006qV-Qz for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Jul 2012 19:54:04 +0200 Original-Received: from localhost ([::1]:56438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvBDH-0006rU-9H for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Jul 2012 13:54:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvBDE-0006rL-OL for bug-gnu-emacs@gnu.org; Sat, 28 Jul 2012 13:54:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SvBDD-0000sB-Ir for bug-gnu-emacs@gnu.org; Sat, 28 Jul 2012 13:54:00 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvBDD-0000s7-F0 for bug-gnu-emacs@gnu.org; Sat, 28 Jul 2012 13:53:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SvBK2-0000pD-6w for bug-gnu-emacs@gnu.org; Sat, 28 Jul 2012 14:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rob Browning Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Jul 2012 18:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12077 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.13434984443140 (code B ref -1); Sat, 28 Jul 2012 18:01:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Jul 2012 18:00:44 +0000 Original-Received: from localhost ([127.0.0.1]:46990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SvBJk-0000ob-BI for submit@debbugs.gnu.org; Sat, 28 Jul 2012 14:00:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58814) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SvBJi-0000oU-JL for submit@debbugs.gnu.org; Sat, 28 Jul 2012 14:00:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SvBCr-0000qq-VQ for submit@debbugs.gnu.org; Sat, 28 Jul 2012 13:53:38 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:37779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvBCr-0000qm-SY for submit@debbugs.gnu.org; Sat, 28 Jul 2012 13:53:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvBCq-0006qU-Sm for bug-gnu-emacs@gnu.org; Sat, 28 Jul 2012 13:53:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SvBCp-0000qQ-K1 for bug-gnu-emacs@gnu.org; Sat, 28 Jul 2012 13:53:36 -0400 Original-Received: from defaultvalue.org ([70.85.129.156]:58782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvBCp-0000q7-Fb for bug-gnu-emacs@gnu.org; Sat, 28 Jul 2012 13:53:35 -0400 Original-Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id 4AAC090D35; Sat, 28 Jul 2012 12:56:22 -0500 (CDT) Original-Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id 22C5314E0C5; Sat, 28 Jul 2012 12:53:33 -0500 (CDT) In-Reply-To: <20120727200247.7276.54835.reportbug@susie.zeus.nullprogram.com> (Christopher Wellons's message of "Fri, 27 Jul 2012 16:02:47 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) 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 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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:62526 Archived-At: (If possible, please preserve the 682995-forwarded address in any replies.) The following bug report was recently filed, and I've tried the example, and saw the same abort. You can find additional information here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=682995 Christopher Wellons writes: > Package: emacs24 > Version: 24.1+1-4 > Severity: normal > > When this expression is evaluated, Emacs will abort. > > (with-temp-buffer > (insert "#\n*\n") > (goto-char (point-min)) > (add-hook 'after-change-functions > (lambda (a b c) (re-search-forward "\n" nil t))) > (replace-regexp "^\\*" " *")) > > It is also provided in an attached file, example.el, in order to make > this easier to demonstrate. > > emacs -q -l example.el > > The abort() occurs in the check at the beginning of > buf_charpos_to_bytepos() in marker.c, because the point has left the > buffer bounds. I ran into this bug while trying to perform this > replace-regexp while in a third-party markdown-mode, and narrowed it > down to this combination of events. > > This bug also appears in emacs23 in both squeeze and sid as well as > upstream and non-Debian builds of Emacs. Thanks -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4