Re: OS X: Segfault adding ligature
Ambarish Sridharanarayanan <[email protected]>
| Newsgroups | gmane.comp.fonts.fontforge.devel |
|---|---|
| Message-ID | <[email protected]> |
On 24 Jan, 2014, at 22:00, Ambarish Sridharanarayanan <[email protected]<mailto:[email protected]>> wrote: <snip> On 21 Jan, 2014, at 22:33, Ambarish Sridharanarayanan <[email protected]<mailto:[email protected]>> wrote: On 14 Jan, 2014, at 19:52, Ambarish Sridharanarayanan <[email protected]<mailto:[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 Per Dave’s suggestion, filed as https://github.com/fontforge/fontforge/issues/1150 ------------------------------------------------------------------------------ WatchGuard Dimension instantly turns raw network data into actionable security intelligence. It gives you real-time visual feedback on key security issues and trends. Skip the complicated setup - simply import a virtual appliance and go from zero to informed in seconds. http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk _______________________________________________ Fontforge-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fontforge-devel