Bug 121538

Summary: Fontforge segfaults when building emulators/wine
Product: Ports & Packages Reporter: Dmitry Marakasov <amdmi3>
Component: Individual Port(s)Assignee: Vanilla I. Shu <vanilla>
Status: Closed FIXED    
Severity: Affects Only Me CC: gerald
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Dmitry Marakasov 2008-03-09 16:40:00 UTC
Fontforge segfaults when building emulators/wine

---
...
LD_LIBRARY_PATH="../libs/wine:$LD_LIBRARY_PATH" ../tools/sfnt2fnt system.ttf 16 874 96 128 7
Missing glyph for char 0082
Missing glyph for char 0084
...
Missing glyph for char 0e5a
Missing glyph for char 0e5b
../tools/fnt2fon system-874-96-16.fnt vgas874.fon
System 10 pts 96x96 dpi
fontforge -script ../fonts/genttf.ff marlett.sfd marlett.ttf
Copyright (c) 2000-2008 by George Williams.
 Executable based on sources from 21:54 GMT 2-Mar-2008-ML.
 Library based on sources from 21:54 GMT 2-Mar-2008.
gmake[1]: *** [marlett.ttf] Segmentation fault: 11
gmake[1]: *** Deleting file `marlett.ttf'
gmake[1]: Leaving directory `/usr/work/.amd_mnt/hive/pool/ports/emulators/wine/work/wine-0.9.57/fonts'
gmake: *** [fonts] Error 2
*** Error code 2

Stop in /.amd_mnt/hive/pool/ports/emulators/wine.
sudo make  165.79s user 48.51s system 79% cpu 4:30.56 total
---

May be a bug in fontforge.

All ports are latest, fontforge-20080302.

How-To-Repeat: cd /usr/ports/emulators/wine && make
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-03-09 16:40:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gerald

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Gerald Pfeifer freebsd_committer freebsd_triage 2008-03-09 17:07:56 UTC
Responsible Changed
From-To: gerald->vanilla

Definitely a bug in fontforge.  fontforge-20080203 and various earlier 
versions are good, fontforge-20080302 is not. 

vanilla, I don't think I can assign a PR to a non-committer, so since 
you did the latest update for the maintainer, would you mind having a 
look?
Comment 3 Naram Qashat 2008-03-09 17:56:36 UTC
I'm the maintainer of fontforge, and I use wine myself, so I tried something as 
a test.  Fontforge builds without Python, and I tried to build it with Python to 
see if that might fix the problem.  But it didn't.  As of right now, I'm trying 
to rebuild fontforge with -g in the CFLAGS so I can try to get some debugging 
information from it.  Maybe I can narrow down the problem and either fix it or 
let the fontforge developers know about the problem.

Naram Qashat
Comment 4 Naram Qashat 2008-03-10 03:02:57 UTC
Naram Qashat wrote:
> I'm the maintainer of fontforge, and I use wine myself, so I tried 
> something as a test.  Fontforge builds without Python, and I tried to 
> build it with Python to see if that might fix the problem.  But it 
> didn't.  As of right now, I'm trying to rebuild fontforge with -g in the 
> CFLAGS so I can try to get some debugging information from it.  Maybe I 
> can narrow down the problem and either fix it or let the fontforge 
> developers know about the problem.
> 
> Naram Qashat

I'm just following up on my own testing.  I rebuilt Fontforge with debugging and 
managed to get a stack trace.  I couldn't figure out the problem, but I sent in 
a bug report to the developer of fontforge, and he got back after a while saying 
it was a problem with an undefined variable, so he's going to be releasing a new 
version soon.

Naram Qashat
Comment 5 Vanilla I. Shu freebsd_committer freebsd_triage 2008-03-11 02:20:22 UTC
State Changed
From-To: open->closed

This should be fixed after fontforge's update.