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#580: 23.0.60; OSX: Crash in show-paren-mode Date: Tue, 22 Jul 2008 14:54:37 -0400 Message-ID: References: <20080720170241.3A4129CED08@mt-computer.local> Reply-To: Stefan Monnier , 580@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216753684 16059 80.91.229.12 (22 Jul 2008 19:08:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Jul 2008 19:08:04 +0000 (UTC) To: 580@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 22 21:08:52 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KLNE8-0006lA-Nk for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Jul 2008 21:08:49 +0200 Original-Received: from localhost ([127.0.0.1]:39215 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLNDF-0005Db-F2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Jul 2008 15:07:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLNCl-00053u-8f for bug-gnu-emacs@gnu.org; Tue, 22 Jul 2008 15:07:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLNCj-000537-QI for bug-gnu-emacs@gnu.org; Tue, 22 Jul 2008 15:07:22 -0400 Original-Received: from [199.232.76.173] (port=40412 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLNCj-000530-Im for bug-gnu-emacs@gnu.org; Tue, 22 Jul 2008 15:07:21 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47356) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KLNCi-0004IP-Vb for bug-gnu-emacs@gnu.org; Tue, 22 Jul 2008 15:07:21 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6MJ7Inl019329; Tue, 22 Jul 2008 12:07:19 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m6MJ04rd016374; Tue, 22 Jul 2008 12:00:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 22 Jul 2008 19:00:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 580 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 580-submit@emacsbugs.donarmstrong.com id=B580.121675288715060 (code B ref 580); Tue, 22 Jul 2008 19:00:04 +0000 Original-Received: (at 580) by emacsbugs.donarmstrong.com; 22 Jul 2008 18:54:47 +0000 Original-Received: from pruche.dit.umontreal.ca (pruche.dit.umontreal.ca [132.204.246.22]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6MIsdq9015054 for <580@emacsbugs.donarmstrong.com>; Tue, 22 Jul 2008 11:54:40 -0700 Original-Received: from alfajor.home (vpn-132-204-232-56.acd.umontreal.ca [132.204.232.56]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m6MIt3NO026539; Tue, 22 Jul 2008 14:55:03 -0400 Original-Received: by alfajor.home (Postfix, from userid 20848) id 253241C522; Tue, 22 Jul 2008 14:54:38 -0400 (EDT) In-Reply-To: <20080720170241.3A4129CED08@mt-computer.local> (Markus Triska's message of "Sun, 20 Jul 2008 19:02:41 +0200 (CEST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3065=0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 22 Jul 2008 15:07:22 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18772 Archived-At: > Let c6.el consist of the following form: > (while t > (insert "(when t (if t t 'hi))\n")) > There must not be any blank lines at the start of the file; the file > is also available from: http://www.logic.at/prolog/c6.el . > When I do: > $ emacs -Q c6.el -f show-paren-mode > and then repeatedly: > C-M-x C-g C-_ > Emacs crashes within a few iterations with the following backtrace: I cannot reproduce it on my GNU/Linux machine with the latest CVS code. > Program received signal EXC_BAD_ACCESS, Could not access memory. > Reason: KERN_INVALID_ADDRESS at address: 0x02dc6fff > 0x0016b0f5 in char_quoted (charpos=1, bytepos=48001023) at syntax.c:312 > 312 DEC_BOTH (charpos, bytepos); > (gdb) bt > #0 0x0016b0f5 in char_quoted (charpos=1, bytepos=48001023) at syntax.c:312 > #1 0x0017391d in back_comment (from=9, from_byte=9, stop=1, comnested=0, comstyle=0, charpos_ptr=0xbfffe468, bytepos_ptr=0xbfffe46c) at syntax.c:597 This is odd for 2 reasons: 1 - the bytepos=48001023 is clearly wrong. Maybe it's a GDB error? 2 - the code of char_quoted (as of an hour ago) should not execute DEC_BOTH at all if charpos == 1. Can you still reproduce the problem with the latest CVS code? If so, please try and figure out why DEC_BOTH is executed, and also try and figure out if bytepos is really equal to 48001023 (it should be equal to charpos) and if so, we need to track down its origin. Stefan