Subject: 23.0.60; Startup-Crash by font look up

From: Harald Maier <[email-masked]>
Date: Thu, 24 Jul 2008 07:14:46 +0200 (CEST)

On my system emacs crashes at startup if the function
ftfont_cache_data in ftfont.c accesses the variable
fontset->fonts. This variable is on my system NULL. The following
workaround fixes the problem.

Harald

Index: ftfont.c
===================================================================
RCS file: /sources/emacs/emacs/src/ftfont.c,v
retrieving revision 1.27
diff -w -r1.27 ftfont.c
303c303,304
< 	  if (FcPatternGetCharSet (fontset->fonts[0], FC_CHARSET, 0, &charset)
---
> 	  if (fontset->fonts &&
> 	      FcPatternGetCharSet (fontset->fonts[0], FC_CHARSET, 0, &charset)

In GNU Emacs 23.0.60.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.8.11)
 of 2008-07-24 on ate-s10-x64
Windowing system distributor `The X.Org Foundation', version 11.0.60900000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=local
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t