Subject: Re: 2.0: xclock segfaults when fc-cache not ran (== default)
To: Frederick Bruckman <fredb@immanent.net>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-x11
Date: 04/06/2004 14:14:43
On Tue, 6 Apr 2004, Hubert Feyrer wrote:
> > The fonts.cache-1 files *are* included in the sets. Still, those won't
> > include any fonts you already have installed.
>
> I started with no /usr/X11R6 at all, so aparently something's not working
> properly here. I didn't get complaints about missing fonts.cache files
> when creating the release sets, and I didn't look (and can't check right
> now) if they're in there and with what data (or empty?), but this needs
> investigation.

OK, aparently the timestamp of the fonts.cache-1 file is important:

	# Xvfb :1 &
	#
	# xclock -digital -display :1
	Warning: Cannot convert string "" to type XftFont
	[2]   Segmentation fault (core dumped) xclock -digital -display :1
	#
	# touch /usr/X11R6/lib/X11/fonts/100dpi/fonts.cache-1
	#
	# xclock -digital -display :1
	*works*
	^C
	#
	# touch -r/netbsd /usr/X11R6/lib/X11/fonts/100dpi/fonts.cache-1
	#
	# xclock -digital -display :1
	Warning: Cannot convert string "" to type XftFont
	[2]   Segmentation fault (core dumped) xclock -digital -display :1
	# Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing
	from list!

Fun...
(The problem can most probably get reproduced w/o Xvfb, I just don't have
access to the machine's console).

I guess I'll send-pr this now.


 - Hubert

-- 
Hubert Feyrer <hubert@feyrer.de>