From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: 580@emacsbugs.donarmstrong.com
Subject: bug#580: 23.0.60; OSX: Crash in show-paren-mode
Date: Tue, 22 Jul 2008 14:54:37 -0400 [thread overview]
Message-ID: <jwvod4p69f8.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <20080720170241.3A4129CED08@mt-computer.local> (Markus Triska's message of "Sun, 20 Jul 2008 19:02:41 +0200 (CEST)")
> 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
next prev parent reply other threads:[~2008-07-22 18:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <jwvbq0p7sl4.fsf-monnier+emacsbugreports@gnu.org>
2008-07-20 17:02 ` bug#580: 23.0.60; OSX: Crash in show-paren-mode Markus Triska
2008-07-22 17:20 ` bug#580: marked as done (23.0.60; OSX: Crash in show-paren-mode) Emacs bug Tracking System
2008-07-22 18:54 ` Stefan Monnier [this message]
[not found] ` <mailman.15195.1216753645.18990.bug-gnu-emacs@gnu.org>
2008-07-22 19:57 ` bug#580: 23.0.60; OSX: Crash in show-paren-mode Markus Triska
2008-07-23 2:20 ` bug#580: marked as done (23.0.60; OSX: Crash in show-paren-mode) Emacs bug Tracking System
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvod4p69f8.fsf-monnier+emacsbugreports@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=580@emacsbugs.donarmstrong.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).