[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freetype] Freetype2 2.0.8 segfault on particular truetype font file
From: |
Anthony Fok |
Subject: |
Re: [Freetype] Freetype2 2.0.8 segfault on particular truetype font file |
Date: |
Wed, 27 Feb 2002 10:49:33 +0800 |
User-agent: |
Mutt/1.3.27i |
On Fri, Feb 22, 2002 at 04:09:40PM +0100, Werner LEMBERG wrote:
> > % ttdump FOXJUMP.TTF
> > Traceback (most recent call last):
> > File "/usr/local/share/lib/FontTools/ttDump.py", line 31, in ?
> > from fontTools import ttLib
> > ImportError: No module named fontTools
> > This would have given a TTF -> XML -> TTF round-trip test.
>
> You might try the CVS version from http://fonttools.sf.net
It appears that FreeType-2.0.8 segfaults on FOXJUMP.TTF and a few other
fonts, so this bug is unrelated to FontTools afterall. I just downloaded
http://www.ozemail.com.au/~philcam/foxjump.zip
and tried running "ftview 24 FOXJUMP.TTF" (FreeType-2.0.8) on both Debian
and Thiz Linux, and I experienced segfault too, just as Francois-Rene, Mike
and Nelson have experienced: something within FT_New_Face. Francois-Rene
has filed a Debian bug report (with backtrace) on this, attached below:
Thanks in advance! :-)
Anthony
From: Francois-Rene Rideau <address@hidden>
To: address@hidden
Date: Tue, 26 Feb 2002 15:16:37 +0100
Package: libfreetype6
Version: 2.0.8-1
Severity: important
I had an old copy of the fontaddict repository at home,
and upgrading libgnomeprint-data wasn't working (see Bug#135654).
Debugging gnome-font-install --smart led to find that FT_New_Face
was causing a segfault on some files.
Christian Marillat then told me how to diagnose the problem as being
with libfreetype6.
After installing freetype2-demos, I used the following zsh command from
/usr/local/stow.disabled/fonts-fontaddict/share/fonts/TrueType/fontaddict/
(t=0 c=0 b=0 l=() bl=() ; for i (*/*~*/fonts.*(.)) { t=$[$t + 1] ; ftdump $i >&
bar || { a=$? ; echo $i ; echo "returned $a" ; cat bar ; if [ $a = 139 ] ; then
bl=($bl $i) ; b=$[ $b + 1 ] ; else c=$[$c + 1] ; l=($l $i) ; fi }} ; echo "$t
total fonts" ; echo "$c fonts that cause a simple error." ; print -l $l ; echo
"$b fonts that cause a segfault:" ; print -l $bl )
And found:
994 total fonts
9 fonts that cause a simple error.
b/B27.ttf
f/FOXWILD.TTF
g/G_CUT1.TTF
p/PANGBL.TTF
p/PANGHO.TTF
p/PANGHOBL.TTF
p/PANGOLIN.TTF
p/PANGOTH.TTF
r/RASHELA.TTF
2 fonts that cause a segfault:
f/FOXJUMP.TTF
g/Grunge2.ttf
The errors are either a segfault with no output, or
a simple error that makes the process return 1 with following error output:
Could not open face.
error = 0x0002
Bizarrely, running the same programs (gnome-font-install or ftdump)
under gdb will remove the segfault. Heisenbug!
When run under gdb, ftdump or ftview will simply display the usage
information, instead of segfaulting.
I can attach the culprit fonts, or you can download them from
http://www.fontaddict.com/
(hum, looks like the site is down.)
-- System Information
Debian Release: 3.0
Kernel Version: Linux Kadath 2.4.17 #2 sam jan 12 21:07:00 CET 2002 i686 unknown
Versions of the packages libfreetype6 depends on:
ii libc6 2.2.5-3 GNU C Library: Shared libraries and Timezone
--
Anthony Fok Tung-Ling
ThizLinux Laboratory <address@hidden> http://www.thizlinux.com/
Debian Chinese Project <address@hidden> http://www.debian.org/intl/zh/
Come visit Our Lady of Victory Camp! http://www.olvc.ab.ca/