Your message dated Tue, 04 May 2010 04:17:43 +0000
with message-id <[email protected]>
and subject line Bug#500724: fixed in xfstt 1.7-7
has caused the Debian Bug report #500724,
regarding xfstt: Segfaulting upon broken .ttf symlink
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
500724: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500724
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: xfstt
Version: 1.7-5

Hello all,

this can be considered a continuation of stale report #54624
("xfstt: Segfault if there is symlink to nowhere").

Here, I get:

# xfstt
corrupt font database!
opening TTF database failed, while reading "/usr/share/fonts/truetype"
to build it.
Sync in directory "/usr/share/fonts/truetype/.".
Segmentation fault


strace yields:


getpid()                                = 3667
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb80d1000
write(3, "3667\n"..., 5)                = 5
close(3)                                = 0
munmap(0xb80d1000, 4096)                = 0
rt_sigaction(SIGINT, {0x8049ae0, [INT], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x8049ae0, [TERM], SA_RESTART}, {SIG_DFL}, 8) = 0
chdir("/usr/share/fonts/truetype")      = 0
stat64("/var/cache/xfstt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/var/cache/xfstt/ttinfo.dir", O_RDONLY) = 3
stat64("/var/cache/xfstt/ttinfo.dir", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 0, PROT_READ, MAP_SHARED, 3, 0) = -1 EINVAL (Invalid argument)
close(3)                                = 0
write(2, "corrupt font database!\n"..., 23corrupt font database!
) = 23
write(2, "opening TTF database failed, whil"..., 84opening TTF database failed, 
while reading "/usr/share/fonts/truetype" to build it.
) = 84
chdir("/usr/share/fonts/truetype")      = 0
open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
fcntl64(3, F_GETFD)                     = 0x1 (flags FD_CLOEXEC)
stat64("/var/cache/xfstt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/var/cache/xfstt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/var/cache/xfstt/ttinfo.dir", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
open("/var/cache/xfstt/ttname.dir", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5
fstat64(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb80d1000
fstat64(5, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb80d0000
fstat64(1, {st_mode=S_IFREG|0644, st_size=5519, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb80cf000
open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 6
fstat64(6, {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
getdents(6, /* 172 entries */, 4096)    = 4092
stat64("Refsani.ttf", 0xbffee364)       = -1 ENOENT (No such file or directory)
stat64("Refserbi.ttf", 0xbffee364)      = -1 ENOENT (No such file or directory)
stat64("framd.ttf", 0xbffee364)         = -1 ENOENT (No such file or directory)
stat64("ttf-japanese-mincho.ttf", {st_mode=S_IFREG|0644, st_size=8967464, ...}) 
= 0
open("ttf-japanese-mincho.ttf", O_RDONLY) = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=8967464, ...}) = 0
mmap2(NULL, 8967464, PROT_READ, MAP_SHARED, 7, 0) = 0xb75c4000
close(7)                                = 0
write(5, "TTFNNAME\2\1\376\277\0\0\0\0"..., 16) = 16
_llseek(5, 0, [16], SEEK_CUR)           = 0
munmap(0xb75c4000, 8967464)             = 0
stat64("coprgtb.ttf", 0xbffee364)       = -1 ENOENT (No such file or directory)
open("coprgtb.ttf", O_RDONLY)           = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

note# ls -l /usr/share/fonts/truetype/coprgtb.ttf
lrwxr-xr-x 1 root root 31 May 15  2004
/usr/share/fonts/truetype/coprgtb.ttf ->/dosc/windows/fonts/coprgtb.ttf

Note: /dosc does exist, but no windows/ directory beyond it any more
(don't ask why - you know the reason, obviously! ;).

Removing all tons of symlinked fonts (those pointing to the /dosc/windows
directory) fixes the segfault.

Oh, now the possibly deciding factor:

/dev/sda1 on /dosc type vfat (rw,noexec,nosuid,nodev,noatime,umask=000,quiet)

IOW, providing a broken symlink into a VFAT partition (limited file attribute
set or so?) may yield a successful crash.

Thanks,

Andreas Mohr



--- End Message ---
--- Begin Message ---
Source: xfstt
Source-Version: 1.7-7

We believe that the bug you reported is fixed in the latest version of
xfstt, which is due to be installed in the Debian FTP archive:

xfstt_1.7-7.debian.tar.gz
  to main/x/xfstt/xfstt_1.7-7.debian.tar.gz
xfstt_1.7-7.dsc
  to main/x/xfstt/xfstt_1.7-7.dsc
xfstt_1.7-7_amd64.deb
  to main/x/xfstt/xfstt_1.7-7_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guillem Jover <[email protected]> (supplier of updated xfstt package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 04 May 2010 06:07:44 +0200
Source: xfstt
Binary: xfstt
Architecture: source amd64
Version: 1.7-7
Distribution: unstable
Urgency: low
Maintainer: Guillem Jover <[email protected]>
Changed-By: Guillem Jover <[email protected]>
Description: 
 xfstt      - X Font Server for TrueType fonts
Closes: 500724 559142 569316 579907
Changes: 
 xfstt (1.7-7) unstable; urgency=low
 .
   * Switch to source format “3.0 (quilt)”.
   * Fix copyright notice for Vietnamese translation.
   * Now using Standards-Version 3.8.4 (no changes needed).
   * Create the unix socket directory with mode 1777 regardless of umask.
     Which was making xfs not create its socket file due to it running
     unprivileged. (Closes: #579907)
   * Fix segfaults due to font open errors:
     - On error in open() set absbase to 0, so that openError() can be aware
       there's been an error. This happens usually on broken symlinks.
       Thanks to Edward Welbourne <[email protected]>. (Closes: #500724, #559142)
     - Handle mmap() errors, so that we don't end up accessing invalid memory.
   * Fix aborts when building with fortify support due to its bound checks.
     The current code is perfectly valid, but the compiler is too strict.
     Thanks to Niall Creech <[email protected]>. (Closes: #569316)
Checksums-Sha1: 
 b2c8acfd8600007b74fa515f2f06728e072ec60e 1134 xfstt_1.7-7.dsc
 5323b70f6c696831f35891dbc8109371495cafd5 33352 xfstt_1.7-7.debian.tar.gz
 d8fcbda8ffe8989aeb102d2838186b3b0f31ba26 78324 xfstt_1.7-7_amd64.deb
Checksums-Sha256: 
 ddb7929749f21d288ffcdf68bf42713a8a626efc945a0cd51c681676ee3d7054 1134 
xfstt_1.7-7.dsc
 cde100a5577b968f54d62c4f1439308aabf844d4cee387f1590dee057919f050 33352 
xfstt_1.7-7.debian.tar.gz
 4d68114acb4184e6fe236631b890d0f3b893d2ada7fd0d303e136134895ac065 78324 
xfstt_1.7-7_amd64.deb
Files: 
 7e8b8c0b50a25aa2a76af336bdc1562e 1134 x11 extra xfstt_1.7-7.dsc
 97018ac9170c580af79cfdeab4122b48 33352 x11 extra xfstt_1.7-7.debian.tar.gz
 a570bba6ea03ff39d982451e0fd3f33c 78324 x11 extra xfstt_1.7-7_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkvfnjcACgkQuW9ciZ2SjJu7aQCaAgRCfbpim1oYL3yqoZ304FuY
6MEAoNoEU3C7vpybHmUoPnq3Ndxbo+t/
=HawJ
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to