xfs cannot start - invalid stanzas in config file

Bug #20557 reported by P
18
Affects Status Importance Assigned to Milestone
xfs (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I don't know where they come from but the X font server cannot start on my breezy machine because of the presence of
the following stanzas in /etc/X11/fs/config :

Setting up X font server socket directory /tmp/.font-unix...done.
Starting X font server: xfs/usr/bin/xfs error: CONFIG: unknown parameter "cache-hi-mark"
/usr/bin/xfs error: CONFIG: unknown parameter "cache-low-mark"
/usr/bin/xfs error: CONFIG: unknown parameter "cache-balance"

commenting them out let xfs start correctly.

Revision history for this message
Daniel Stone (daniels) wrote :

Looks like the patches from xorg have gone missing. Fabio, any ideas?

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

hmm strage.. i am pretty sure i did merge them, but i might be mistaken and i
have no time
to work on universe packages. One of the MOTU will have to take care of it.

Fabio

Revision history for this message
Matt Zimmerman (mdz) wrote :

(In reply to comment #2)
> hmm strage.. i am pretty sure i did merge them, but i might be mistaken and i
> have no time
> to work on universe packages. One of the MOTU will have to take care of it.

it may be a universe package, but we broke it, and so we need to fix it.

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

I just uploaded xfs 0.99.0-2 that fixed this upstream problem.

daniel you want to add -DFONTCACHE and relative checks to Makefile.am and
Makefile.in.

Fabio

Revision history for this message
P (p92) wrote :

Well, xfs still broken but another way :
ii xfs 0.99.0-2 X font server

lstat64("/tmp/.font-unix", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
unlink("/tmp/.font-unix/fs7100") = 0
bind(3, {sa_family=AF_FILE, path="/tmp/.font-unix/fs7100"}, 24) = 0
listen(3, 128) = 0
umask(022) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGHUP, {0x8056cf0, [HUP], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x8056d18, [INT], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x8056d18, [TERM], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGUSR1, {0x8056d40, [USR1], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGUSR2, {0x8056d68, [USR2], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGCHLD, {0x8056d90, [CHLD], SA_RESTART}, {SIG_DFL}, 8) = 0
gettimeofday({1125652146, 626522}, NULL) = 0
write(2, "xfs fatal error: ", 17) = 17
write(2, "couldn\'t init renderer font cache\n", 34) = 34
exit_group(1) = ?

Revision history for this message
Daniel Stone (daniels) wrote :

could you please install libxfont1-dbg, break on FontCacheChangeSettings, and
step through there to see what's broken?

Revision history for this message
P (p92) wrote :

well without the sources i wonder what I can examine, could you explain more please?
anyway I did a break on write to see where the error msg come from.

I must say also that these 2 error messages are only visible on stracing the program, nor on the standard error, nor
on the log file ! strange
write(2, "xfs fatal error: ", 17) = 17
write(2, "couldn\'t init renderer font cache\n", 34) = 34

-----------------

(gdb) run
Starting program: /usr/bin/xfs
(no debugging symbols found)
(no debugging symbols found)

Breakpoint 1, FontCacheChangeSettings (cs=0xbffffaa0) at ../../../src/fontcache/fontcache.c:159
159 ../../../src/fontcache/fontcache.c: No such file or directory.
        in ../../../src/fontcache/fontcache.c
(gdb) n
160 in ../../../src/fontcache/fontcache.c
(gdb) n
161 in ../../../src/fontcache/fontcache.c
(gdb) n
181 in ../../../src/fontcache/fontcache.c
(gdb) n
0x080520f8 in remove_fs_handlers ()
(gdb) n
Single stepping until exit from function remove_fs_handlers,
which has no line number information.

Breakpoint 2, 0xb7e3f320 in write () from /lib/tls/libc.so.6
(gdb) where
#0 0xb7e3f320 in write () from /lib/tls/libc.so.6
#1 0xb7de412f in _IO_file_write () from /lib/tls/libc.so.6
#2 0xb7de4335 in _IO_file_xsputn () from /lib/tls/libc.so.6
#3 0xb7dbff39 in cuserid () from /lib/tls/libc.so.6
#4 0xb7dc00cb in vfprintf () from /lib/tls/libc.so.6
#5 0xb7dc881f in fprintf () from /lib/tls/libc.so.6
#6 0x080557d7 in FatalError ()
#7 0x08052108 in remove_fs_handlers ()
#8 0x080522a5 in remove_fs_handlers ()
#9 0xb7d99eb4 in __libc_start_main () from /lib/tls/libc.so.6
#10 0x0804a2d1 in ?? ()
(gdb)

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

As per discussion on irc.. new libxfont is on the way.

Fabio

Revision history for this message
Daniel Stone (daniels) wrote :

fixed in b to the reezy

Revision history for this message
P (p92) wrote :

This bug is back in dapper :D ! But this time xfs goes on running, while complaining at start.

version :
xfs 1.0.1-0ubuntu1 X font server
libxfont1 1.0.0-0ubuntu3 X11 font rasterisation library

Stopping X font server: xfs.
Setting up X font server socket directory /tmp/.font-unix...done.
Starting X font server: xfs/usr/bin/xfs error: CONFIG: unknown parameter "cache-hi-mark"
/usr/bin/xfs error: CONFIG: unknown parameter "cache-low-mark"
/usr/bin/xfs error: CONFIG: unknown parameter "cache-balance"

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

Ok upload on the way...

Changed in xfs:
assignee: daniels → nobody
Revision history for this message
P (p92) wrote :

verified OK - thanks !

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.