Hi Edward!

On Sun, 2010-01-24 at 05:36:13 +0000, Edward Welbourne wrote:
> I get
> 
> xfstt[3155]: segfault at 4 ip 4085e4 sp 7fffbe604f50 error 4 in 
> xfstt[400000+19000]
> 
> on start-up.  RandomAccessFile::RandomAccessFile(char * filename)'s
> error path, on failure to open file, neglects to set absbase; this leads
> to openError() failing to report that open failed, so instances think
> they're OK and try to use methods that should only be used if open
> succeeded - boom !  Have a trivial <patch>
> 
> diff -u /root/xfstt/xfstt-1.7/libfstt/rafile.cc.orig 
> /root/xfstt/xfstt-1.7/libfstt/rafile.cc
> --- /root/xfstt/xfstt-1.7/libfstt/rafile.cc.orig      2010-01-24 
> 06:14:53.000000000 +0100
> +++ /root/xfstt/xfstt-1.7/libfstt/rafile.cc   2010-01-24 06:10:55.000000000 
> +0100
> @@ -176,7 +176,7 @@
>       int fd = open(fileName, O_RDONLY);
>       if (fd <= 0) {
>               debug("Cannot open \"%s\"\n", fileName);
> -             ptr = base = 0;
> +             ptr = absbase = base = 0;
>               return;
>       }
>       struct stat st;

> </patch> which has fixed the problem for me.

Wonderful, I'll commit it upstream and will be preparing a new Debian
release.

> Incidentally, as I initially followed your instructions: <quote src="console">
> 
> vortex:~# xfstt
> corrupt font database!
> opening TTF database failed, while reading "/usr/share/fonts/truetype" to 
> build
> it.
> Sync in directory "/usr/share/fonts/truetype/.".
> Sync in directory "/usr/share/fonts/truetype/ttf-lucida".
> [49632.125872] xfstt[11488]: segfault at 0 ip 40b29d sp 7fff5de31680 error 4 
> in
> xfstt[400000+21000]
> Segmentation fault (core dumped)
> vortex:~# list
> notes  notes.old  old/  xfstt/
> 
> </quote> have you any idea where the core dump went ?  I need to find it
> to tidy it away !

It should be under one of the /usr/share/fonts/truetype/ directories,
as the server does chdir to them when scanning.

> I don't know what's allegedly corrupt about /usr/share/fonts/truetype/;
> it looks like a perfectly sensible directory to me, with Isabella.ttf
> and a bunch of subdirectories in it.

Could you check if there's a broken symlink somewhere there?

thanks!
guillem



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to