[Pkg-fonts-devel] Bug#912062: fontforge: segfaults when opening some UFO fonts

Thibaut Girka thib at sitedethib.com
Sat Oct 27 18:33:41 BST 2018

Package: fontforge
Version: 1:20170731~dfsg-1
Severity: normal

When trying to open some UFO fonts, fontforge segfaults with the following

#0  0x00007f2746c6e5aa in SPLFindOrder (ss=0x21) at ././fontforge/svg.c:3453
#1  0x00007f2746c793fe in SFLFindOrder (sf=sf at entry=0x55e103d80d10,
layerdest=layerdest at entry=2) at ././fontforge/svg.c:3492
#2  0x00007f2746cb7aa1 in SFReadUFO (basedir=basedir at entry=0x55e103d10eb0
flags=flags at entry=0)
    at ././fontforge/ufo.c:4221
#3  0x00007f2746bf4fb0 in _ReadSplineFont (file=0x55e103c9dc50, file at entry=0x0,
filename=<optimized out>,
    filename at entry=0x55e103cc0730 "/home/thib/tmp/fonts-
openflags=openflags at entry=(unknown: 0)) at ././fontforge/splinefont.c:1086
#4  0x00007f2746bf5a9c in ReadSplineFont
(filename=filename at entry=0x55e103cc0730 "/home/thib/tmp/fonts-
cantarell-0.111/master_ufo/Cantarell-Regular.ufo/", openflags=openflags at entry=
    (unknown: 0)) at ././fontforge/splinefont.c:1288
#5  0x00007f2746bf5c30 in LoadSplineFont (filename=<optimized out>,
openflags=openflags at entry=(unknown: 0)) at ././fontforge/splinefont.c:1346
#6  0x00007f2746aaf39c in ViewPostScriptFont (filename=<optimized out>,
openflags=0) at ././fontforge/fontviewbase.c:1341
#7  0x00007f2747a58023 in fontforge_main (argc=2, argv=0x7ffeb49c01d8) at
#8  0x00007f2746241b17 in __libc_start_main (main=
    0x55e1023687b0 <main>, argc=2, argv=0x7ffeb49c01d8, init=<optimized out>,
fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffeb49c01c8) at
#9  0x000055e1023687ea in _start ()

This can be reproduced by trying to open the UFO fonts generated from the
fonts-cantarell package:
$ apt source fonts-cantarell
$ cd fonts-cantarell-0.111/
$ fontmake -g src/Cantarell.glyphs -o ufo
$ fontforge master_ufo/Cantarell-Regular.ufo/

-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (990, 'testing-debug'), (990, 'testing'), (120, 'unstable-debug'), (120, 'unstable'), (105, 'experimental-debug'), (105, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 4.17.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages fontforge depends on:
ii  fontforge-common  1:20170731~dfsg-1
ii  libc6             2.27-6
ii  libfontforge2     1:20170731~dfsg-1
ii  libgdraw5         1:20170731~dfsg-1
ii  libltdl7          2.4.6-6
ii  libx11-6          2:1.6.7-1

fontforge recommends no packages.

Versions of packages fontforge suggests:
pn  autotrace         <none>
pn  fontforge-doc     <none>
pn  fontforge-extras  <none>
pn  potrace           <none>
pn  python-fontforge  <none>

-- no debconf information

More information about the Pkg-fonts-devel mailing list