Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#21 Crash with unallocated free() in _InterpretPS() on OS X

open
nobody
None
5
2013-02-15
2013-02-15
Moritz Moeller
No

I\'m using the FontForge version in MacPorts (20110222):
Reproduction steps:

Open FF, crearte a new Font, double click letter \'A\' to open outline editor, try to import attached EPS file -> bang!

> uname -a
Darwin bigmac.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64

GDB session:
> gdb fontforge
GNU gdb 6.3.50-20050815 (Apple version gdb-1820) (Sat Jun 16 02:40:11 UTC 2012)
(gdb) r
Starting program: /opt/local/bin/fontforge
Reading symbols for shared libraries +++++++++++++++++++++................................................................................................................................. done
Copyright (c) 2000-2011 by George Williams.
Executable based on sources from 13:48 GMT 22-Feb-2011-ML-NoPython.
Library based on sources from 13:48 GMT 22-Feb-2011.
fontforge(63198,0x7fff7d83d960) malloc: *** error for object 0x101e08920: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

Program received signal SIGABRT, Aborted.
0x00007fff8d830ce2 in __pthread_kill ()
(gdb) bt
#0 0x00007fff8d830ce2 in __pthread_kill ()
#1 0x00007fff9681a7d2 in pthread_kill ()
#2 0x00007fff9680ba7a in abort ()
#3 0x00007fff9686a84c in free ()
#4 0x0000000100365f7a in _InterpretPS ()
#5 0x0000000100358ee0 in SplinePointListInterpretPS ()
#6 0x00000001002882ac in SCImportPSFile ()
#7 0x0000000100060915 in GFD_ImportOk ()
#8 0x00000001005d61ae in GFileChooserFListSelected ()
#9 0x00000001005e8c43 in glist_mouse ()
#10 0x00000001005c7ec7 in _GWidget_Container_eh ()
#11 0x00000001005c89d9 in _GWidget_TopLevel_eh ()
#12 0x000000010061a8dd in dispatchEvent ()
#13 0x000000010061809f in GXDrawProcessOneEvent ()
#14 0x000000010005feb7 in _Import ()
#15 0x0000000100040b16 in CVMenuImport ()
#16 0x00000001005ee4cf in gmenu_mouse ()
#17 0x00000001005eff49 in gmenu_eh ()
#18 0x000000010061a8dd in dispatchEvent ()
#19 0x0000000100618105 in GXDrawEventLoop ()
#20 0x0000000100138f5d in main ()

Discussion