GNU bug report logs - #5973
Crash in get_next_display_element

Previous Next

Package: emacs;

Reported by: David Reitter <david.reitter <at> gmail.com>

Date: Mon, 19 Apr 2010 16:09:01 UTC

Severity: normal

Tags: moreinfo, unreproducible

Found in version 24.0.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 5973 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: David Reitter <david.reitter <at> gmail.com>
Cc: 5973 <at> debbugs.gnu.org
Subject: Re: bug#5973: Crash in get_next_display_element
Date: Mon, 19 Apr 2010 20:23:32 +0300
> From: David Reitter <david.reitter <at> gmail.com>
> Date: Mon, 19 Apr 2010 12:08:18 -0400
> Cc: 
> 
> I just had a crash.  I can't pinpoint what triggered it.
> 
> Line xdisp.c:5946 is this in the build that I was running:
> 
> 	  it->face_id = FACE_FOR_CHAR (it->f, face, it->c, pos, it->string);
> 
> 
> FWIW, the build was done with
> CPP=cc -E -no-cpp-precomp
> CFLAGS=-g -O0 -Wdeclaration-after-statement -Wno-pointer-sign  
> 
> So one may possibly infer from the trace below that face_for_char() was NOT called by FACE_FOR_CHAR, and that the invalid pointer was somewhere in (FACE)->ascii_face->id  (see dispextern.h:1693).
> 
> Maybe FACE_FROM_ID returned a null pointer as it is documented to do if the face doesn't exist (?? frame? face got just deleted with frame??) and this bit of code doesn't check face.
> 
> But that's speculation - I don't know the display code very well.

Let's start by finding the immediate reason for the crash.  Please
show the contents of `face', the last argument to FACE_FOR_CHAR in the
line that crashed.

Also, what kind of signal was it that crashed the program?  (The
backtrace is in some form that I'm not familiar with, so maybe the
information is already present there.)

Thanks.




This bug report was last modified 12 years and 92 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.