Re: [fontforge 2.0.20140101] glibc BOOM! during native script test #32 (resend)

Abel Cheung <[email protected]>
Newsgroups gmane.comp.fonts.fontforge.devel
Message-ID <CA+P8WDm8HtA7zYsC-vynRcfUgzyTqEDZkjfWU2Dgj9+_bFj5tA@mail.gmail.com>
(resending because testsuite log is too large, so previous mail is
under moderation queue. Only gdb log is attached this time)

This is the first problem I failed to workaround when attempting to
compile 20140101 on Ubuntu 10.04. Hinting test on CFF causes glibc
corruption message near end of ProcessNativeScript() -- the said
location is an fclose() so I guess the problem might actually happen a
bit earlier. Test suite log and gdb trace log are attached.

-- 
Abel Cheung
New GPG Key fingerprint: F43B 7F88 3D7B 4B58 928E  0151 EC2B E414 3B03 A8AC
Old GPG Key fingerprint: 671C C7AE EFB5 110C D6D1  41EE 4152 E1F1 C671 86FF

------------------------------------------------------------------------------
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
gdb.log (text/x-log, 13.1 KB)
~/fontforge-2.0.20140101/tests$ gdb ../fontforgeexe/.libs/fontforge 
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /tmp/buildd/fontforge-2.0.20140101/fontforgeexe/.libs/fontforge...done.
(gdb) set env LD_LIBRARY_PATH ../fontforgeexe/.libs:../Unicode/.libs/:../gutils/.libs:../fontforge/.libs:../gdraw/.libs
(gdb) set args -lang ff -script "./test122.pe"
(gdb) run
Starting program: /tmp/buildd/fontforge-2.0.20140101/fontforgeexe/.libs/fontforge -lang ff -script "./test122.pe"
[Thread debugging using libthread_db enabled]
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 19:35 UTC 17-Jan-2014-ML-TtfDb-D.
 Library based on sources from 19:35 UTC 17-Jan-2014.
 Based on source from git with hash:
Failed to open hotkey definition file: /tmp/buildd/fontforge-2.0.20140101/fontforgeexe/.libs/share/fontforge/hotkeys/default
CompareGlyphs: Hinting mismatch in glyph: afii10095
Called from...
 ./test122.pe: line 13
*** glibc detected *** /tmp/buildd/fontforge-2.0.20140101/fontforgeexe/.libs/fontforge: double free or corruption (!prev): 0x080a22f0 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6e331)[0xca6331]
/lib/tls/i686/cmov/libc.so.6(+0x6fb88)[0xca7b88]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0xcaaccd]
/lib/tls/i686/cmov/libc.so.6(fclose+0x14a)[0xc9684a]
../fontforge/.libs/libfontforge.so.2(ProcessNativeScript+0x354)[0x83aa24]
../fontforge/.libs/libfontforge.so.2(CheckIsScript+0x3b0)[0x83b3e0]
../fontforgeexe/.libs/libfontforgeexe.so.2(fontforge_main+0x356)[0x2f0336]
/tmp/buildd/fontforge-2.0.20140101/fontforgeexe/.libs/fontforge(main+0x1b)[0x80486ab]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xc4ebf6]
/tmp/buildd/fontforge-2.0.20140101/fontforgeexe/.libs/fontforge[0x80485f1]
======= Memory map: ========
00110000-0012b000 r-xp 00000000 00:14 341149     /lib/ld-2.11.1.so
0012b000-0012c000 r--p 0001a000 00:14 341149     /lib/ld-2.11.1.so
0012c000-0012d000 rw-p 0001b000 00:14 341149     /lib/ld-2.11.1.so
0012d000-0012e000 r-xp 00000000 00:00 0          [vdso]
0012e000-00345000 r-xp 00000000 00:14 404819     /tmp/buildd/fontforge-2.0.20140101/fontforgeexe/.libs/libfontforgeexe.so.2.0.0
00345000-00347000 r--p 00217000 00:14 404819     /tmp/buildd/fontforge-2.0.20140101/fontforgeexe/.libs/libfontforgeexe.so.2.0.0
00347000-003bf000 rw-p 00219000 00:14 404819     /tmp/buildd/fontforge-2.0.20140101/fontforgeexe/.libs/libfontforgeexe.so.2.0.0
003bf000-003fa000 rw-p 00000000 00:00 0 
003fa000-00634000 r-xp 00000000 00:14 395827     /tmp/buildd/fontforge-2.0.20140101/Unicode/.libs/libgunicode.so.4.0.0
00634000-00644000 r--p 00239000 00:14 395827     /tmp/buildd/fontforge-2.0.20140101/Unicode/.libs/libgunicode.so.4.0.0
00644000-00676000 rw-p 00249000 00:14 395827     /tmp/buildd/fontforge-2.0.20140101/Unicode/.libs/libgunicode.so.4.0.0
00676000-0068a000 r-xp 00000000 00:14 396492     /tmp/buildd/fontforge-2.0.20140101/gutils/.libs/libgutils.so.2.0.0
0068a000-0068b000 r--p 00013000 00:14 396492     /tmp/buildd/fontforge-2.0.20140101/gutils/.libs/libgutils.so.2.0.0
0068b000-0068d000 rw-p 00014000 00:14 396492     /tmp/buildd/fontforge-2.0.20140101/gutils/.libs/libgutils.so.2.0.0
0068d000-0068e000 rw-p 00000000 00:00 0 
0068e000-00692000 r-xp 00000000 00:14 396679     /tmp/buildd/fontforge-2.0.20140101/gutils/.libs/libgioftp.so.2.0.0
00692000-00693000 r--p 00003000 00:14 396679     /tmp/buildd/fontforge-2.0.20140101/gutils/.libs/libgioftp.so.2.0.0
00693000-00694000 rw-p 00004000 00:14 396679     /tmp/buildd/fontforge-2.0.20140101/gutils/.libs/libgioftp.so.2.0.0
00694000-009ba000 r-xp 00000000 00:14 400451     /tmp/buildd/fontforge-2.0.20140101/fontforge/.libs/libfontforge.so.2.0.0
009ba000-009cd000 r--p 00325000 00:14 400451     /tmp/buildd/fontforge-2.0.20140101/fontforge/.libs/libfontforge.so.2.0.0
009cd000-00a16000 rw-p 00338000 00:14 400451     /tmp/buildd/fontforge-2.0.20140101/fontforge/.libs/libfontforge.so.2.0.0
00a16000-00a1a000 rw-p 00000000 00:00 0 
00a1a000-00aaf000 r-xp 00000000 00:14 401957     /tmp/buildd/fontforge-2.0.20140101/gdraw/.libs/libgdraw.so.5.0.0
00aaf000-00ab1000 r--p 00094000 00:14 401957     /tmp/buildd/fontforge-2.0.20140101/gdraw/.libs/libgdraw.so.5.0.0
00ab1000-00acc000 rw-p 00096000 00:14 401957     /tmp/buildd/fontforge-2.0.20140101/gdraw/.libs/libgdraw.so.5.0.0
00acc000-00acf000 rw-p 00000000 00:00 0 
00acf000-00be8000 r-xp 00000000 00:14 359650     /usr/lib/libX11.so.6.3.0
00be8000-00be9000 r--p 00118000 00:14 359650     /usr/lib/libX11.so.6.3.0
00be9000-00beb000 rw-p 00119000 00:14 359650     /usr/lib/libX11.so.6.3.0
00beb000-00bec000 rw-p 00000000 00:00 0 
00bec000-00c10000 r-xp 00000000 00:14 341090     /lib/tls/i686/cmov/libm-2.11.1.so
00c10000-00c11000 r--p 00023000 00:14 341090     /lib/tls/i686/cmov/libm-2.11.1.so
00c11000-00c12000 rw-p 00024000 00:14 341090     /lib/tls/i686/cmov/libm-2.11.1.so
00c12000-00c19000 r-xp 00000000 00:14 361938     /usr/lib/libltdl.so.7.2.1
00c19000-00c1a000 r--p 00006000 00:14 361938     /usr/lib/libltdl.so.7.2.1
00c1a000-00c1b000 rw-p 00007000 00:14 361938     /usr/lib/libltdl.so.7.2.1
00c1b000-00c1d000 r-xp 00000000 00:14 341098     /lib/tls/i686/cmov/libdl-2.11.1.so
00c1d000-00c1e000 r--p 00001000 00:14 341098     /lib/tls/i686/cmov/libdl-2.11.1.so
00c1e000-00c1f000 rw-p 00002000 00:14 341098     /lib/tls/i686/cmov/libdl-2.11.1.so
00c1f000-00c34000 r-xp 00000000 00:14 341095     /lib/tls/i686/cmov/libpthread-2.11.1.so
00c34000-00c35000 r--p 00014000 00:14 341095     /lib/tls/i686/cmov/libpthread-2.11.1.so
00c35000-00c36000 rw-p 00015000 00:14 341095     /lib/tls/i686/cmov/libpthread-2.11.1.so
00c36000-00c38000 rw-p 00000000 00:00 0 
00c38000-00d92000 r-xp 00000000 00:14 341088     /lib/tls/i686/cmov/libc-2.11.1.so
00d92000-00d93000 ---p 0015a000 00:14 341088     /lib/tls/i686/cmov/libc-2.11.1.so
00d93000-00d95000 r--p 0015a000 00:14 341088     /lib/tls/i686/cmov/libc-2.11.1.so
00d95000-00d96000 rw-p 0015c000 00:14 341088     /lib/tls/i686/cmov/libc-2.11.1.so
00d96000-00d99000 rw-p 00000000 00:00 0 
00d99000-00f94000 r-xp 00000000 00:14 362226     /usr/lib/libpython2.6.so.1.0
00f94000-00f95000 r--p 001fb000 00:14 362226     /usr/lib/libpython2.6.so.1.0
00f95000-00fe4000 rw-p 001fc000 00:14 362226     /usr/lib/libpython2.6.so.1.0
00fe4000-00fee000 rw-p 00000000 00:00 0 
00fee000-00ff5000 r-xp 00000000 00:14 359049     /usr/lib/libgif.so.4.1.6
00ff5000-00ff6000 r--p 00006000 00:14 359049     /usr/lib/libgif.so.4.1.6
00ff6000-00ff7000 rw-p 00007000 00:14 359049     /usr/lib/libgif.so.4.1.6
00ff7000-01016000 r-xp 00000000 00:14 358782     /usr/lib/libjpeg.so.62.0.0
01016000-01017000 r--p 0001e000 00:14 358782     /usr/lib/libjpeg.so.62.0.0
01017000-01018000 rw-p 0001f000 00:14 358782     /usr/lib/libjpeg.so.62.0.0
01018000-0103b000 r-xp 00000000 00:14 341186     /lib/libpng12.so.0.42.0
0103b000-0103c000 r--p 00022000 00:14 341186     /lib/libpng12.so.0.42.0
0103c000-0103d000 rw-p 00023000 00:14 341186     /lib/libpng12.so.0.42.0
0103d000-01095000 r-xp 00000000 00:14 358842     /usr/lib/libtiff.so.4.3.2
01095000-01096000 ---p 00058000 00:14 358842     /usr/lib/libtiff.so.4.3.2
01096000-01098000 r--p 00058000 00:14 358842     /usr/lib/libtiff.so.4.3.2
01098000-01099000 rw-p 0005a000 00:14 358842     /usr/lib/libtiff.so.4.3.2
01099000-011c4000 r-xp 00000000 00:14 362121     /usr/lib/libuninameslist.so.0.0.3
011c4000-011c5000 ---p 0012b000 00:14 362121     /usr/lib/libuninameslist.so.0.0.3
011c5000-01206000 r--p 0012b000 00:14 362121     /usr/lib/libuninameslist.so.0.0.3
01206000-01207000 rw-p 0016c000 00:14 362121     /usr/lib/libuninameslist.so.0.0.3
01207000-0132b000 r-xp 00000000 00:14 357371     /usr/lib/libxml2.so.2.7.6
0132b000-0132c000 ---p 00124000 00:14 357371     /usr/lib/libxml2.so.2.7.6
0132c000-01330000 r--p 00124000 00:14 357371     /usr/lib/libxml2.so.2.7.6
Program received signal SIGABRT, Aborted.
0x0012d422 in __kernel_vsyscall ()
(gdb) bt full
#0  0x0012d422 in __kernel_vsyscall ()
No symbol table info available.
#1  0x00c626a1 in raise () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#2  0x00c65ad2 in abort () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#3  0x00c9c23d in ?? () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#4  0x00ca6331 in ?? () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#5  0x00ca7b88 in ?? () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#6  0x00caaccd in free () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#7  0x00c9684a in fclose () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#8  0x0083aa24 in ProcessNativeScript (argc=5, argv=0xbffffc74, script=0x0) at scripting.c:10435
        i = <value optimized out>
        j = <value optimized out>
        c = {caller = 0x0, a = {argc = 1, vals = 0x8097190}, dontfree = 0x8086888, locals = {entries = 0x0, cnt = 0, 
            max = 0}, script = 0x80a22f0, backedup = 0, donteval = 0, returned = 0, broken = 0, interactive = 0, 
          error = 0, 
          tok_text = "CompareGlyphs\000ntforge-2.0.20140101/tests/fonts/Hinting.sfd", '\000' <repeats 198 times>, 
          tok = tt_eof, tok_val = {type = v_int, u = {ival = 1, fval = 4.9406564584124654e-324, 
              sval = 0x1 <Address 0x1 out of bounds>, lval = 0x1, aval = 0x1, u32ptval = 0x1, u16ptval = 0x1, 
              u8ptval = 0x1 <Address 0x1 out of bounds>}}, return_val = {type = v_void, u = {ival = 0, fval = 0, 
              sval = 0x0, lval = 0x0, aval = 0x0, u32ptval = 0x0, u16ptval = 0x0, u8ptval = 0x0}}, trace = {type = v_int, 
            u = {ival = 0, fval = 0, sval = 0x0, lval = 0x0, aval = 0x0, u32ptval = 0x0, u16ptval = 0x0, u8ptval = 0x0}}, 
          argsval = {type = v_int, u = {ival = 0, fval = 0, sval = 0x0, lval = 0x0, aval = 0x0, u32ptval = 0x0, 
              u16ptval = 0x0, u8ptval = 0x0}}, filename = 0xbffffdec "./test122.pe", lineno = 13, ungotch = -1, 
          curfv = 0x809be40, err_env = 0xbfffd724}
        tok = <value optimized out>
        string = 0x0
        env = {{__jmpbuf = {10276852, 134882032, 134882032, -1073751736, 1090348534, -1207748472}, __mask_was_saved = 0, 
            __saved_mask = {__val = {134837568, 16443640, 3221215068, 16338932, 15199705, 13272910, 3221215096, 15215154, 
                3086600500, 3086781260, 0, 16338932, 16338932, 3086742188, 3221215192, 49, 408, 3086600500, 49, 384, 
                14094888, 14246904, 14094612, 14095362, 3221215164, 392, 5, 14094911, 14246848, 129912, 14246896, 
                14241780}}}}
#9  0x0083b3e0 in _CheckIsScript (argc=5, argv=0xbffffc74) at scripting.c:10547
        temp = <value optimized out>
---Type <return> to continue, or q <return> to quit---
        buffer = "\001\000\000\000\220\372\377\267", '\001' <repeats 28 times>, "\000\000\000\000p\332\377\277(\332\377\277\064\332\377\277\000\000\000\000\220\372\377\267\000\000\000\000\000\000\000\000\r\000\000\000\314_\024", '\000' <repeats 21 times>"\240, \020\a\b\000\221\a\b", '\000' <repeats 12 times>"\310, \324i\000\300\331\377\267H\b\a\b\377\377\377\377\364\277\022\000\314_\024\000\001\000\000\000\200\332\377\277v\326\021\000H\374\377\267\000\000\000\000\001\000\000\000\001\000\000\000\000\000\000\000\001\000\000\000\244\324\023\000\344\241!\000\000\340\022\000\310\324i\000\364o4\000\000X\241"
        i = 2
        is_python = 0
        pt = 0x6 <Address 0x6 out of bounds>
#10 CheckIsScript (argc=5, argv=0xbffffc74) at scripting.c:10563
No locals.
#11 0x002f0336 in fontforge_main (argc=5, argv=0xbffffc74) at startui.c:1000
        load_prefs = 0x0
        i = <value optimized out>
        recover = 0
        any = 3405856
        next_recent = 10586264
        pos = {x = 1169433, y = 0, width = 1228788, height = -1208025088}
        wattrs = {mask = 33545028, event_masks = 0, border_width = 18609, border_color = 3221224104, 
          background_color = 3221224100, cursor = 1230924, window_title = 0x0, icon_title = 0x1116fe4, icon = 0x0, 
          nodecoration = 0, positioned = 0, centered = 1, undercursor = 1, noresize = 1, restrict_input_to_me = 1, 
          redirect_chars_to_me = 1, is_dlg = 1, not_restricted = 1, redirect_from = 0xbfffdb80, transient = 0x5, 
          utf8_window_title = 0xbfffdb60 "\274\372\377\277\216\302\021", 
          utf8_icon_title = 0x1249d5 "\203\304\b[]\303\220\215t&"}
        display = 0x0
        rq = {family_name = 0x11c28e, point_size = -10888, weight = -18434, style = 3086931296, 
          utf8_family_name = 0x14 <Address 0x14 out of bounds>}
        ds = <value optimized out>
        ld = <value optimized out>
        openflags = 16
        doopen = -1208035952
        quit_request = 16
#12 0x080486ab in main (argc=5, argv=0xbffffc74) at main.c:31
No locals.
(gdb)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.