Subject: Re: bug#5396: Something in splash page causes Emacs to crash?

From: Kenichi Handa <[email-masked]>
Date: Wed, 27 Jan 2010 15:11:40 +0900

In article <[email-masked]>, Joseph Tam <[email-masked]> writes:

> Under certain circumstances, emacs crashes on startup.  I hope I have
> provided enough details for you to figure it out, or at least, so that
> you can refer me for more diagnostics.

> Using a X11 thin client,  I could not recreate this problem by using
> emacs directly on the installed host, but rather, I ssh -X from an
> intermediary host, then ran emacs:

>  	thin client <- X11 -> intermediary host <- "ssh -X" -> emacs

[...]
>  	(gdb) run
>  	Starting program: /nfs/build/Emacs/emacs-23.1/src/emacs

>  	Breakpoint 1, abort () at emacs.c:432
>  	432       kill (getpid (), SIGABRT);

>  	(gdb) bt
>  	#0  abort () at emacs.c:432
>  	#1  0x0017ef30 in font_parse_xlfd (name=0x8 <Address 0x8 out of bounds>, font=-2138962232) at font.c:1131
>  	#2  0x001c8130 in xfont_list_pattern (display=0x7c5a80,
>  	    pattern=0xffbfc198 "-adobe-helvetica-*-*-*-*-*-*-*-*-*-*-iso8859-1", registry=540807248, script=540533584)
>  	    at xfont.c:414
[...]
>  	(gdb) up
>  	#1  0x0017ef30 in font_parse_xlfd (name=0x8 <Address 0x8 out of bounds>,
>  	    font=-2142319328) at font.c:1131
>  	1131                  font_assert (FONT_SPEC_P (font));

>  	(gdb) pr font
>  	The history is empty.

>  	(gdb) call debug_print(font)
>  	#<font-entity nil adobe helvetica x iso8859-1 medium r normal nil nil nil nil nil>

Hmm, it seems that the contents of `name' argument to
font_parse_xlfd is broken or invalid.

In the same gdb session, following the above, please do:

(gdb) up
(gdb) p buf

---
Kenichi Handa
[email-masked]