GNU bug report logs -
#18162
24.3.92; segfault on null face pointer in face_for_char
Previous Next
Reported by: Ken Raeburn <raeburn <at> permabit.com>
Date: Thu, 31 Jul 2014 23:25:02 UTC
Severity: normal
Found in version 24.3.92
Fixed in version 24.3.93
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Date: Fri, 1 Aug 2014 21:52:44 -0400
> From: Ken Raeburn <raeburn <at> permabit.com>
> Cc: 18162 <18162 <at> debbugs.gnu.org>
>
> On Fri, Aug 1, 2014 at 1:57 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>
> > Sounds like some code called clear_face_cache, for some reason. Is f
> > at all the same frame where you were typing? If not, the crash could
> > have nothing to do with what you typed, but with some background
> > activity on another frame.
> >
>
> I just ran Emacs a while under gdb, and it called clear_face_cache while I
> wasn't doing anything interesting, just typing into a buffer. It happened
> from in redisplay_internal when clear_face_cache_count reached 501. Its
> documentation says it's used to "clear the face cache every once in a
> while".
There's nothing wrong with a call to clear_face_cache. We do this all
the time, as you have discovered. The problem is if we try using
faces after that without first realizing the basic faces.
This bug report was last modified 10 years and 346 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.