Re: OS X: Segfault adding ligature
Ambarish Sridharanarayanan <[email protected]>
| Newsgroups | gmane.comp.fonts.fontforge.devel |
|---|---|
| Message-ID | <[email protected]> |
[I only subscribed to the mailing list today, so I’m replying to my own mail although this is a response to Frank Trampe’s and Dave Crossland’s responses] On 21 Jan, 2014, at 22:33, Ambarish Sridharanarayanan <[email protected]> wrote: > On 14 Jan, 2014, at 19:52, Ambarish Sridharanarayanan <[email protected]> wrote: > >> I’m running fontforge 20131122, libfontforge 20131122-ML on OS X Mavericks. I’m trying to add a ligature to an Indic font for the Grantha script. The target of any ligature I add (through Glyph Info) ends up being a .notdef in the table, If I then go to Font Info, Lookups, go into the sub-table, Edit Data and try to fix the Ligature Glyph Name, FontForge crashes when I hit ‘OK’, with a Segmentation Fault, with the following output: >> >> MakeTemporaryFile() fd:28 template:/var/folders/_j/jr2f9sf110l_ylyy7mchm95h0000gp/T//fontforge-stemp-H83T9W >> Failed to read a file. Bytes read:0 file size:0 >> /Applications/FontForge.app/Contents/MacOS/FontForge: line 64: 699 Segmentation fault: 11 $WRAPPER $bundle_bin/fontforge -new "$@" >> >> Here are repro steps: >> >> * Download file from the link below (you may need a modern browser + JS) >> http://sdrv.ms/1fwqunc >> * Go to Element → Font Info >> * Go to Lookups >> * Open the <1, 0> Required Ligatures table >> * Select the only sub-table and click Edit Data >> * Notice the 2 ligatures are both .notdef >> * Try to fix up the Ligature glyph-names by editing the first notdef, typing in ‘uniE00C’ >> * Click OK >> * CRASH! I managed to reproduce the crash in the newer version Dave suggested, in debug mode (under script/lldb/...). MBP:/Users/ambarish> /Applications/FontForge.app/Contents/MacOS/FontForge --version Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE. Executable based on sources from 04:16 EST 23-Jan-2014-ML-D. Library based on sources from 04:16 EST 23-Jan-2014. Based on source from git with hash:aa5b99b44eb37b38a1876a6fa3f8dc1a5099bbc9 fontforge 20140123 libfontforge 20140123-ML The FontForge-Debug-Output is in the text file in my Public SkyDrive: https://skydrive.live.com/?cid=96eb26ec94925919&id=96EB26EC94925919%2119966 And here’s the call-stack from lldb (also in the debug trace) (lldb) thread backtrace * thread #1: tid = 0xb9a7, 0x00007fff9185a812 libsystem_c.dylib`strlen + 18, queue = 'com.apple.main-thread, stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x00007fff9185a812 libsystem_c.dylib`strlen + 18 frame #1: 0x0000000100735eda libgutils.2.dylib`GFileWriteAll + 24 frame #2: 0x00000001000ed1db libfontforgeexe.2.dylib`PSTKD_Ok + 1850 frame #3: 0x000000010034de90 libgdraw.5.dylib`GButtonInvoked + 253 frame #4: 0x000000010034c6e6 libgdraw.5.dylib`gbutton_mouse + 348 frame #5: 0x0000000100352fc3 libgdraw.5.dylib`_GWidget_Container_eh + 717 frame #6: 0x0000000100353a87 libgdraw.5.dylib`_GWidget_TopLevel_eh + 1355 frame #7: 0x0000000100395c9e libgdraw.5.dylib`dispatchEvent + 5520 frame #8: 0x0000000100393482 libgdraw.5.dylib`GXDrawProcessOneEvent + 60 frame #9: 0x00000001000e908e libfontforgeexe.2.dylib`_LookupSubtableContents + 14113 frame #10: 0x00000001000b4192 libfontforgeexe.2.dylib`GFI_LookupEditSubtableContents + 65 frame #11: 0x000000010034de90 libgdraw.5.dylib`GButtonInvoked + 253 frame #12: 0x000000010034c6e6 libgdraw.5.dylib`gbutton_mouse + 348 frame #13: 0x0000000100352fc3 libgdraw.5.dylib`_GWidget_Container_eh + 717 frame #14: 0x0000000100395c9e libgdraw.5.dylib`dispatchEvent + 5520 frame #15: 0x00000001003934d1 libgdraw.5.dylib`GXDrawEventLoop + 65 frame #16: 0x0000000100160217 libfontforgeexe.2.dylib`fontforge_main + 6853 frame #17: 0x000000010000df2c fontforge`start + 52 Should I go ahead and file a bug? Is this an issue with the Mac build? Ambarish ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Fontforge-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fontforge-devel