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

Bug#163634: marked as done (libxft1: SEGV when encountering surprising spaces in /etc/X11/XftConfig)



Your message dated Fri, 21 Apr 2006 16:32:00 -0400
with message-id <44494140.7070202@princeton.edu>
and subject line Reassigning or closing obsolete libxft1 bugs
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: xlibs
Version: 4.1.0-17, 4.2.1-1

segmentation fault using xftcache

After adding line not ended with enter to /etc/X11/XftConfig and executing 
xftcache it crashes.

End of strace xftcache:
open("/etc/X11/XftConfig", O_RDONLY)    = 3
brk(0x804f000)                          = 0x804f000
ioctl(0, SNDCTL_TMR_TIMEBASE, {B38400 opost isig icanon echo ...}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=539, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40014000
read(3, "# $XFree86: xc/lib/Xft/XftConfig"..., 4096) = 539
open("/root/.xftconfig", O_RDONLY)      = -1 ENOENT (No such file or 
directory)
read(3, "", 4096)                       = 0
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40014000, 4096)                = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

In my case I added two spaces to end of mentioned file.

end of `hexdump /etc/X11/XftConfig`:
00001e0 6620 6d61 6c69 2079 3d3d 2220 6962 7374
00001f0 7274 6165 206d 6863 7261 6574 2272 6520
0000200 6964 2074 6166 696d 796c 3d20 202b 6322
0000210 6168 7472 7265 3b22 200a 0020
000021b

0000200    6964    2074    6166    696d    796c    3d20    202b    6322
0000200   d   i   t       f   a   m   i   l   y       =   +       "   c
0000210    6168    7472    7265    3b22    200a    0020
0000210   h   a   r   t   e   r   "   ;  \n

Suggested solution: improved parsing of /etc/X11/XftCache file.

Problem reported previously by mail to maintainer of xlibs package (in version 
4.1.0-17).

Sincerely,
Robert Gomulka


--- End Message ---
--- Begin Message ---
# Reassigning the following to libxft2 in case it still occurs:
reassign 136527 libxft2
thanks

I'm closing the following bugs which are obsolete because libXft1 is no
longer shipped, and libXft2 no longer uses /etc/X11/Xft:

#163634: libxft1: SEGV when encountering surprising spaces in
/etc/X11/XftConfig

#97506: libxft1: want antialiasing excluded from fonts where 8 < size <
15 by default in /etc/X11/XftConfig

#88054: libxft1: want a mechanism for packages to update directories
listed in /etc/X11/XftConfig

#171787: libxft1: please automatically register TrueType fonts in
/etc/X11/XftConfig

#207976: libxft1: support modular configuration of /etc/X11/XftConfig
through include directives

I'm also closing this bug because the test case for it is no longer
compilable even in Sarge:

#101055: libxft1: SEGV when calling XAddExtension() from
_XftDisplayInfoGet()


regards,

-- 
Kevin B. McCarty <kmccarty@princeton.edu>   Physics Department
WWW: http://www.princeton.edu/~kmccarty/    Princeton University
GPG: public key ID 4F83C751                 Princeton, NJ 08544

--- End Message ---

Reply to: