freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] ftview crashes


From: mpsuzuki
Subject: Re: [ft-devel] ftview crashes
Date: Wed, 18 Mar 2009 19:01:34 +0900

Hi,

Recently I don't have sufficient time to track this bug,
but I experienced similar issue:

* ftview crashes in cache module.
* the crash can be avoided by disable "-O2" optimization

My platform is Debian GNU/Linux on x86 (Centrino Duo),
gcc is 4.2.3. My backtrace is similar to the bug reported
by Ian Britten,

http://lists.nongnu.org/archive/html/freetype-devel/2008-10/msg00005.html

Ian's (and my) stacktrace is different from Andrey's.
I've tried to detect which optimization feature causes
this bug, by increasing optimizer option step-by-step,
but yet I couldn't.

Regards,
mpsuzuki

P.S.
my stacktrace is following:

(gdb) run 14 ~/.fonts/LiberationMono-Regular.ttf
Starting program: 
/home/mpsuzuki/redhat/BUILD/freetype2-current/ft2demos/bin/ftview 14 
~/.fonts/LiberationMono-Regular.ttf

Program received signal SIGSEGV, Segmentation fault.
FTC_Manager_LookupFace (manager=0x80cb658, face_id=0x80cc8d0, aface=0xbfcf0c24)
    at 
/home/mpsuzuki/redhat/BUILD/freetype2-current/freetype2/src/cache/ftcmanag.c:327
327           *aface = node->face;
(gdb) where
#0  FTC_Manager_LookupFace (manager=0x80cb658, face_id=0x80cc8d0,
    aface=0xbfcf0c24)
    at 
/home/mpsuzuki/redhat/BUILD/freetype2-current/freetype2/src/cache/ftcmanag.c:327
#1  0x08094482 in ftc_basic_family_get_count (ftcfamily=0x80d8420,
    manager=0x80cb658)
    at 
/home/mpsuzuki/redhat/BUILD/freetype2-current/freetype2/src/cache/ftcbasic.c:141
#2  0x080947e9 in ftc_snode_new (ftcpsnode=0xbfcf0c98, ftcgquery=0xbfcf0cd0,
    cache=0x80cb710)
    at 
/home/mpsuzuki/redhat/BUILD/freetype2-current/freetype2/src/cache/ftcsbits.c:215
#3  0x08095184 in FTC_Cache_NewNode (cache=0x80cb710, hash=124150650,
    query=0xbfcf0cd0, anode=0xbfcf0cf4)
    at 
/home/mpsuzuki/redhat/BUILD/freetype2-current/freetype2/src/cache/ftccache.c:454
#4  0x0809547a in FTC_SBitCache_LookupScaler (cache=0x80cb710,
    scaler=0x80c3030, load_flags=512, gindex=0, ansbit=0xbfcf0d64, anode=0x0)
    at 
/home/mpsuzuki/redhat/BUILD/freetype2-current/freetype2/src/cache/ftcbasic.c:743
#5  0x0804cfa2 in FTDemo_Index_To_Bitmap (handle=0x80c3008, Index=0,
    target=0xbfcf0dac, left=0xbfcf0dd0, top=0xbfcf0dcc, x_advance=0xbfcf0dc8,
    y_advance=0xbfcf0dc4, aglyf=0xbfcf0da8)
    at /home/mpsuzuki/redhat/BUILD/freetype2-current/ft2demos/src/ftcommon.c:801
#6  0x0804d2b9 in FTDemo_Draw_Index (handle=0x80c3008, display=0x80cc548,
    gindex=0, pen_x=0xbfcf0e0c, pen_y=0xbfcf0e08)
    at /home/mpsuzuki/redhat/BUILD/freetype2-current/ft2demos/src/ftcommon.c:932
#7  0x08049df8 in Render_All (num_indices=663, first_index=0)
    at /home/mpsuzuki/redhat/BUILD/freetype2-current/ft2demos/src/ftview.c:385
#8  0x0804b8d5 in main (argc=0, argv=0xbfcf0f00)
    at /home/mpsuzuki/redhat/BUILD/freetype2-current/ft2demos/src/ftview.c:1221




On Mon, 16 Mar 2009 19:59:22 +0100 (CET)
Werner LEMBERG <address@hidden> wrote:

>> I did not changed ftoption.h but defined
>> CPPFLAGS="-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER \
>>           -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING"
>> before running configure.
>
>OK.
>
>> freetype2 was configured with ./configure [...] CFLAGS="-O2
>> -mtune=i686".  ftview was patched with ft2demos-2.3.6.diff (see
>> attachement) before compilation.
>
>I did all that and it works for me without any problems.  Perhaps the
>compiler version you are using (which one, BTW?) is really buggy in
>producing code optimized with -O2...
>
>Can you try a different gcc version?
>
>
>    Werner
>
>
>_______________________________________________
>Freetype-devel mailing list
>address@hidden
>http://lists.nongnu.org/mailman/listinfo/freetype-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]