From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: 9401@debbugs.gnu.org
Subject: bug#9401: 24.0.50; Crash during fontification
Date: Mon, 29 Aug 2011 14:59:36 -0400 [thread overview]
Message-ID: <jwvzkis82qi.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87obz8i4gr.fsf@stupidchicken.com>
> I can trigger this crash about 50 percent of the time by doing
> emacs -q trunk/src/buffer.h
> C-s defvar
> Emacs then crashes with a segfault.
> The problem involves a call to scan_sexps_forward (frame#4) with
> from_byte larger than the byte size of the buffer.
[...]
> #4 0x00000000006300a5 in scan_sexps_forward (stateptr=0x7fffffff30b0,
> from=26298, from_byte=48082, end=38471, targetdepth=-10000, stopbefore=0,
> oldstate=12552834, commentstop=0) at syntax.c:3133
> #5 0x000000000061e721 in back_comment (from=38165, from_byte=38165, stop=1,
> comnested=0, comstyle=0, charpos_ptr=0x7fffffff3418,
> bytepos_ptr=0x7fffffff3420) at syntax.c:733
There's something pretty fishy going on, indeed, since we end going
"back" from 38165/38165 to 26298/38471, i.e. the char position is
smaller but the byte position is larger.
Stefan
next prev parent reply other threads:[~2011-08-29 18:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-29 16:10 bug#9401: 24.0.50; Crash during fontification Chong Yidong
2011-08-29 18:59 ` Stefan Monnier [this message]
2011-08-29 21:16 ` Chong Yidong
2011-08-30 3:54 ` Leo
2011-08-30 22:45 ` Chong Yidong
2011-08-31 12:42 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvzkis82qi.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=9401@debbugs.gnu.org \
--cc=cyd@stupidchicken.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.