[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fwd: [ft-devel] ftview/ftstring segfault with -e unic
From: |
Jjgod Jiang |
Subject: |
Fwd: [ft-devel] ftview/ftstring segfault with -e unic |
Date: |
Sun, 14 May 2006 05:40:09 +0000 |
---------- Forwarded message ----------
From: Jjgod Jiang <address@hidden>
Date: 2006-5-14 上午5:27
Subject: Re: [ft-devel] ftview/ftstring segfault with -e unic
To: Werner LEMBERG <address@hidden>
Hi,
# gcc --ver
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0.3/configure --host=i686-pc-linux-gnu
--build=i686-pc-linux-gnu --prefix=/usr --enable-shared
--enable-languages=c,c++,objc --enable-threads=posix
--enable-__cxa_atexit
Thread model: posix
gcc version 4.0.3
CC = gcc
CFLAGS = -c -Wall -g -DFT_CONFIG_OPTION_SYSTEM_ZLIB
-DFT_CONFIG_CONFIG_H="<ftconfig.h>"
here is the compelete commands used to build ftview:
gcc -c -Wall -g -DFT_CONFIG_OPTION_SYSTEM_ZLIB
-DFT_CONFIG_CONFIG_H="<ftconfig.h>" -I../freetype2/builds/unix
-I../freetype2/builds/unix -I/root/src/freetype/freetype2/include
-I/root/src/freetype/ft2demos-2.2.1/src
-DFT_CONFIG_MODULES_H="<ftmodule.h>"
-I/root/src/freetype/ft2demos-2.2.1/graph \
-o /root/src/freetype/ft2demos-2.2.1/obj/ftview.o
/root/src/freetype/ft2demos-2.2.1/src/ftview.c -DFT2_BUILD_LIBRARY
gcc -c -Wall -g -DFT_CONFIG_OPTION_SYSTEM_ZLIB
-DFT_CONFIG_CONFIG_H="<ftconfig.h>" -I../freetype2/builds/unix
-I../freetype2/builds/unix -I/root/src/freetype/freetype2/include
-I/root/src/freetype/ft2demos-2.2.1/src
-DFT_CONFIG_MODULES_H="<ftmodule.h>"
-I/root/src/freetype/ft2demos-2.2.1/graph \
-o
/root/src/freetype/ft2demos-2.2.1/obj/ftcommon.o
/root/src/freetype/ft2demos-2.2.1/src/ftcommon.c
../freetype2/builds/unix/libtool --mode=link gcc -lz -o
/root/src/freetype/ft2demos-2.2.1/bin/ftview
/root/src/freetype/ft2demos-2.2.1/obj/ftview.o
/root/src/freetype/ft2demos-2.2.1/obj/common.o
/root/src/freetype/ft2demos-2.2.1/obj/ftcommon.o
/root/src/freetype/freetype2/objs/libfreetype.la
/root/src/freetype/ft2demos-2.2.1/obj/graph.a -R/usr/X11R6/lib
-L/usr/X11R6/lib -lX11 -lm
gcc -o /root/src/freetype/ft2demos-2.2.1/bin/.libs/ftview
/root/src/freetype/ft2demos-2.2.1/obj/ftview.o
/root/src/freetype/ft2demos-2.2.1/obj/common.o
/root/src/freetype/ft2demos-2.2.1/obj/ftcommon.o
/root/src/freetype/freetype2/objs/.libs/libfreetype.so -lz
/root/src/freetype/ft2demos-2.2.1/obj/graph.a -L/usr/X11R6/lib -lX11
-lm -Wl,--rpath -Wl,/root/src/freetype/release/lib -Wl,--rpath
-Wl,/usr/X11R6/lib
c
here is my backtrace log:
(gdb) run -e unic -f 25000 ppem KozMinProVI-Regular.otf
Program received signal SIGSEGV, Segmentation fault.
FT_Stream_ReadLong (stream=0x80bca68, error=0xbfcc4fc8) at ftstream.c:635
/root/src/freetype/freetype-2.2.1/src/base/ftstream.c:635:14617:beg:0xb7f53e1c
(gdb) bt
#0 FT_Stream_ReadLong (stream=0x80bca68, error=0xbfcc4fc8) at ftstream.c:635
#1 0xb7f83805 in sfnt_init_face (stream=0x80bca68, face=0x80bca98,
face_index=1917873769, num_params=0, params=0x0) at sfobjs.c:377
#2 0xb7f61542 in tt_face_init (stream=0x80bca68, ttface=0x80bca98,
face_index=1917873769, num_params=0, params=0x0) at ttobjs.c:191
#3 0xb7f5721a in open_face (driver=0x8066970, stream=0x80bca68,
face_index=1917873769, num_params=0, params=0x0, aface=0xbfcc5204) at
ftobjs.c:987
#4 0xb7f57c11 in FT_Open_Face (library=0x80628a0, args=0xbfcc5244,
face_index=1917873769, aface=0x80bca5c) at ftobjs.c:1694
#5 0xb7f5885e in FT_New_Memory_Face (library=0x0, file_base=0x0,
file_size=0, face_index=0, aface=0x0) at ftobjs.c:1073
#6 0x0804bab1 in my_face_requester (face_id=0x81073f0, lib=0x0,
request_data=0x0, aface=0x80bca5c) at
/root/src/freetype/ft2demos-2.2.1/src/ftcommon.c:204
#7 0xb7f95426 in ftc_face_node_init (ftcnode=0x80bca50,
ftcface_id=0x0, ftcmanager=0x0) at ftcmanag.c:237
#8 0xb7f94f26 in FTC_MruList_New (list=0x8068a4c, key=0x81073f0,
anode=0xbfcc533c) at ftcmru.c:269
#9 0xb7f9506a in FTC_Manager_LookupFace (manager=0x80689f0,
face_id=0x81073f0, aface=0xbfcc5380) at ftcmanag.c:319
#10 0xb7f96421 in FTC_CMapCache_Lookup (cmap_cache=0x8068c18,
face_id=0x80c8658, cmap_index=4, char_code=4) at ftccmap.c:381
#11 0x0804c46c in FTDemo_Get_Index (handle=0x0, charcode=0) at
/root/src/freetype/ft2demos-2.2.1/src/ftcommon.c:607
#12 0x0804b17c in main (argc=0, argv=0xbfcc5610) at
/root/src/freetype/ft2demos-2.2.1/src/ftview.c:276
2006/5/14, Werner LEMBERG <address@hidden>:
Now I have this font, and I can't manage to make ftview produce a
segfault. Please report which compiler you use, which optimization
flags, etc., etc. Try with a different optimization level; maybe it's
a compiler bug.
the orginal optimization level is -O2, but nothing changes after I removed it.