[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#164567: xfonts-scalable (4.2.1-4): Segmentation fault in postinst script(s) - FIXED (Maybe)!



Hi Brandon,

I think I may have found the problem that is causing these bugs to
occur.

The postinst and postrm scripts for the xfonts-scalable package both
seem to fail when running the command xftcache in these directories:

	/usr/X11R6/lib/X11/fonts/Speedo
	/usr/X11R6/lib/X11/fonts/Type1

This is caused by xftcache segfaulting, which it also did when run by
hand in these directories.

Tailing a stack trace indicates that the segmentation fault occurs when
xftcache tries to open a non-existent file:  /root/.xftconfig

Tail of strace is here:

old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40012000
read(3, "# $XFree86: xc/lib/Xft/XftConfig"..., 4096) = 1110
open("/root/.xftconfig", O_RDONLY)      = -1 ENOENT (No such file or
directory)
brk(0x804f000)                          = 0x804f000
read(3, "", 4096)                       = 0
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40012000, 4096)                = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

It also dies if an empty file is created in this location.
 
A very simple (but bad) workaround is to edit /etc/X11/XftConfig and
comment out the line (around line 13 in mine):

	includeif	"~/.xftconfig"


I'm not sure if this only relates to debian or not. 

Best regards,

Sam.


-- 
Sam Williams <samw@salterprojects.com>
Salter Projects Limited





Reply to: