From: Eli Zaretskii <eliz@gnu.org>
To: Juanma Barranquero <lekktu@gmail.com>, 1448@emacsbugs.donarmstrong.com
Cc: bug-gnu-emacs@gnu.org, fengli@blackmagic-design.com
Subject: bug#1448: 23.0.60; update to cvs emacs crash report
Date: Fri, 28 Nov 2008 12:56:05 +0200 [thread overview]
Message-ID: <u8wr4glve.fsf@gnu.org> (raw)
In-Reply-To: <f7ccd24b0811280125v18ccdb36rf21992b2bc02f073@mail.gmail.com>
> Date: Fri, 28 Nov 2008 10:25:09 +0100
> From: "Juanma Barranquero" <lekktu@gmail.com>
> Cc: 1448@emacsbugs.donarmstrong.com
>
> What you're seeing is bug#872 (also #1179).
>
> I originally thought it depended on
> `display-unibyte-via-language-environment', but it is not so; I've
> seen it (and suffered it) through several different incarnations.
>
> What they all have in common:
>
> - Using a "recent" MinGW GCC (4.2.1, 4.3.0-alpha, etc.)
> - Compiling with optimization
Now I understand why I cannot reproduce this: I never bothered to
upgrade to GCC 4.x.
> - Trying to display unibyte (or, perhaps, some composed characters,
> I'm not sure)
How does "C-h b" get to display unibyte or composed characters?
> I've been trying to debug it, without success (it doesn't help that I
> know very little about the glyph handling code). I'm not even sure
> whether it is a compiler bug, or a bug in Emacs (it happens in code
> that was undergoing changes quite recently).
Is it a Heisenbug? i.e., does it disappear if you add printf's around
the code that crashes or in its callers?
If the bug stays put when code around it is modified, you could try
debugging it by adding "if (something) abort ();" lines testing
various conditions that are suspect of causing the crash.
Some observations based on the traceback posted by Feng Li:
> Program received signal SIGSEGV, Segmentation fault.
> 0x0101fdd5 in fill_glyph_string (s=0x820000, face_id=27, start=<value optimized out>, end=<value optimized out>, overlaps=<value optimized out>) at xdisp.c:19740
Line 19740 in xdisp.c is this:
s->ybase += voffset;
And "bt full" says this about `s':
> s = (struct glyph_string *) 0x0
However, `s' is dereferenced many times in `fill_glyph_string' before
it gets to line 19740, so I think GDB lies about the place where it
crashed (because GCC optimizes code to the degree that any relation
between the code and the source lines is lost).
Therefore, the first thing to do is disassembly the vicinity of the
crash locus (0x0101fdd5) and see which code, exactly, crashes, and
why. Disassembly should establish (1) the source line that crashes,
and (2) which C-level variable causes the crash.
Note that `s' is allocated via `alloca' in BUILD_CHAR_GLYPH_STRINGS,
which is called by BUILD_GLYPH_STRINGS, which in turn is called by
`draw_glyphs' at line 20332 in frame #1:
> #1 0x01040a0c in draw_glyphs (w=0x3439800, x=72, row=0x3345260, area=TEXT_AREA, start=0, end=30, hl=DRAW_NORMAL_TEXT, overlaps=0) at xdisp.c:20332
The original source line 20332 in xdisp.c looks like this:
BUILD_GLYPH_STRINGS (i, end, head, tail, hl, x, last_x);
next prev parent reply other threads:[~2008-11-28 10:56 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <494134D7.9000502@f2s.com>
2008-09-03 16:06 ` bug#872: Crash displaying byte-code Juanma Barranquero
2008-12-11 15:45 ` bug#872: marked as done (Crash displaying byte-code) Emacs bug Tracking System
2008-10-16 14:52 ` bug#1179: Emacs on Windows hangs displaying unibyte strings Juanma Barranquero
2008-10-17 11:48 ` Juanma Barranquero
2008-10-17 11:55 ` Processed: " Emacs bug Tracking System
2008-10-17 13:01 ` Eli Zaretskii
2008-10-17 13:32 ` Juanma Barranquero
2008-10-17 14:01 ` Eli Zaretskii
2008-10-17 14:14 ` Juanma Barranquero
2008-12-11 15:45 ` bug#1179: marked as done (Emacs on Windows hangs displaying unibyte strings) Emacs bug Tracking System
2008-11-28 4:15 ` bug#1446: 23.0.60; GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-11-28 crash on "C-h b" Feng li
2008-12-11 15:45 ` bug#1446: marked as done (23.0.60; GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-11-28 crash on "C-h b") Emacs bug Tracking System
2008-11-28 4:33 ` bug#1447: 23.0.60; emacs crash Feng li
2008-12-11 15:45 ` bug#1447: marked as done (23.0.60; emacs crash) Emacs bug Tracking System
2008-11-28 5:15 ` bug#1448: 23.0.60; update to cvs emacs crash report Feng li
2008-11-28 9:25 ` Juanma Barranquero
2008-11-28 10:56 ` Eli Zaretskii [this message]
2008-11-28 11:23 ` Juanma Barranquero
2008-11-28 12:06 ` Eli Zaretskii
2008-11-28 12:08 ` Juanma Barranquero
2008-11-30 22:11 ` Feng Li
2008-11-30 23:03 ` Juanma Barranquero
2008-12-04 2:47 ` Feng Li
2008-12-04 8:44 ` Juanma Barranquero
2008-12-04 13:31 ` Stefan Monnier
2008-12-04 14:51 ` Juanma Barranquero
2008-12-11 15:45 ` bug#1448: marked as done (23.0.60; update to cvs emacs crash report) 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=u8wr4glve.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=1448@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@gnu.org \
--cc=fengli@blackmagic-design.com \
--cc=lekktu@gmail.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.