Thu 05 Aug 2010 12:32:32 PM UTC, original submission:
Font: http://alt.swiecki.net/j/f/sigsegv29.ttf
$ gdb ./ftbench
(gdb) r -c 1 sigsegv29.ttf
Program received signal SIGSEGV, Segmentation fault.
0x0000000000441545 in t42_parse_sfnts (face=0x6aca60, loader=0x7fffffffdf30) at /usr/local/google/src/freetype2/src/type42/t42parse.c:604
604 if ( string_buf[string_size - 1] == 0 && ( string_size % 2 == 1 ) )
(gdb) p/x string_size
$2 = 0xffffffff8cc6be80 <-- negative value
(gdb) p/x string_buf[string_size - 1]
Cannot access memory at address 0x7fff84c110c7
(gdb) bt
#0 0x0000000000441545 in t42_parse_sfnts (face=0x6aca60, loader=0x7fffffffdf30) at /usr/local/google/src/freetype2/src/type42/t42parse.c:604
#1 0x0000000000442019 in t42_load_keyword (face=0x6aca60, loader=0x7fffffffdf30, field=0x485380) at /usr/local/google/src/freetype2/src/type42/t42parse.c:974
#2 0x00000000004423eb in t42_parse_dict (face=0x6aca60, loader=0x7fffffffdf30,
base=0x7ffff7fa4000 "%!PS-TrueTypeFont-65536-131072-1\n%%VMusage: 0 0\n11 dict begin\n/FontName /AndaleMono def\n/FontType 42 def\n/FontMatrix [1 0 0 1 0 0] def\n/FontBBox [0 -0.218262 0.600098 0.995117] readonly def\n/PaintType"..., size=204767) at /usr/local/google/src/freetype2/src/type42/t42parse.c:1121
#3 0x000000000043f68b in T42_Open_Face (face=0x6aca60) at /usr/local/google/src/freetype2/src/type42/t42objs.c:56
#4 0x000000000043fa1c in T42_Face_Init (stream=0x6aca00, face=0x6aca60, face_index=0, num_params=0, params=0x0) at /usr/local/google/src/freetype2/src/type42/t42objs.c:183
#5 0x00000000004063ed in open_face (driver=0x6ac000, stream=0x6aca00, face_index=0, num_params=0, params=0x0, aface=0x7fffffffe3a8) at /usr/local/google/src/freetype2/src/base/ftobjs.c:1134
#6 0x0000000000407a20 in FT_Open_Face (library=0x6a7040, args=0x7fffffffe420, face_index=0, aface=0x7fffffffe540) at /usr/local/google/src/freetype2/src/base/ftobjs.c:2041
#7 0x000000000040650a in FT_New_Face (library=0x6a7040, pathname=0x7fffffffe979 "sigsegv29.ttf", face_index=0, aface=0x7fffffffe540) at /usr/local/google/src/freetype2/src/base/ftobjs.c:1196
#8 0x0000000000402319 in get_face (face=0x7fffffffe540) at /usr/local/google/src/freetype2-demos/src/ftbench.c:616
#9 0x0000000000402603 in main (argc=1, argv=0x7fffffffe660) at /usr/local/google/src/freetype2-demos/src/ftbench.c:740
Under valgrind it only reports
couldn't load font resource
due to different heap layout ?
|