freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Regression Crash between freetype 2.3.5 and 2.3.7


From: Ian Britten
Subject: Re: [ft-devel] Regression Crash between freetype 2.3.5 and 2.3.7
Date: Thu, 02 Oct 2008 08:23:56 -0300
User-agent: Thunderbird 2.0.0.17 (X11/20080926)

Werner LEMBERG wrote:
Still crashes.  See attached for details.

Try to undefine FTC_INLINE in src/cache/ftcmru.h.  Does this help?

The good news?  That works for -O2 (And "-O2 -g").  No crash, no
Valgrind errors.

The bad news?  It still crashes for -O3 (And "-O3 -g").  I've
attached a new Valgrind log, but it looks to be virtually
identical to the last one.

Again, let me know if I can be of any more help...
Ian
% valgrind .libs/lt-ftview 10 /usr/share/fonts/TTF/Vera.ttf

==11600== Memcheck, a memory error detector.
==11600== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==11600== Using LibVEX rev 1804, a library for dynamic binary translation.
==11600== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==11600== Using valgrind-3.3.0, a dynamic binary instrumentation framework.
==11600== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==11600== For more details, rerun with: -v
==11600== 
==11600== Use of uninitialised value of size 4
==11600==    at 0x4087DAE: FTC_Manager_LookupFace (ftcmanag.c:327)
==11600==    by 0x4087DED: ftc_basic_family_get_count (ftcbasic.c:141)
==11600==    by 0x4089136: ftc_snode_new (ftcsbits.c:215)
==11600==    by 0x4087A56: FTC_Cache_Lookup (ftccache.c:454)
==11600==    by 0x408824C: FTC_GCache_Lookup (ftcglyph.c:200)
==11600==    by 0x40883D7: FTC_SBitCache_LookupScaler (ftcbasic.c:743)
==11600==    by 0x804D1E3: FTDemo_Index_To_Bitmap (ftcommon.c:800)
==11600==    by 0x804D3FD: FTDemo_Draw_Index (ftcommon.c:931)
==11600==    by 0x804B059: main (ftview.c:385)
==11600== 
==11600== Invalid read of size 4
==11600==    at 0x4087DAE: FTC_Manager_LookupFace (ftcmanag.c:327)
==11600==    by 0x4087DED: ftc_basic_family_get_count (ftcbasic.c:141)
==11600==    by 0x4089136: ftc_snode_new (ftcsbits.c:215)
==11600==    by 0x4087A56: FTC_Cache_Lookup (ftccache.c:454)
==11600==    by 0x408824C: FTC_GCache_Lookup (ftcglyph.c:200)
==11600==    by 0x40883D7: FTC_SBitCache_LookupScaler (ftcbasic.c:743)
==11600==    by 0x804D1E3: FTDemo_Index_To_Bitmap (ftcommon.c:800)
==11600==    by 0x804D3FD: FTDemo_Draw_Index (ftcommon.c:931)
==11600==    by 0x804B059: main (ftview.c:385)
==11600==  Address 0x1a is not stack'd, malloc'd or (recently) free'd
==11600== 
==11600== Process terminating with default action of signal 11 (SIGSEGV)
==11600==  Access not within mapped region at address 0x1A
==11600==    at 0x4087DAE: FTC_Manager_LookupFace (ftcmanag.c:327)
==11600==    by 0x4087DED: ftc_basic_family_get_count (ftcbasic.c:141)
==11600==    by 0x4089136: ftc_snode_new (ftcsbits.c:215)
==11600==    by 0x4087A56: FTC_Cache_Lookup (ftccache.c:454)
==11600==    by 0x408824C: FTC_GCache_Lookup (ftcglyph.c:200)
==11600==    by 0x40883D7: FTC_SBitCache_LookupScaler (ftcbasic.c:743)
==11600==    by 0x804D1E3: FTDemo_Index_To_Bitmap (ftcommon.c:800)
==11600==    by 0x804D3FD: FTDemo_Draw_Index (ftcommon.c:931)
==11600==    by 0x804B059: main (ftview.c:385)
==11600== 
==11600== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 35 from 1)
==11600== malloc/free: in use at exit: 1,501,731 bytes in 579 blocks.
==11600== malloc/free: 930 allocs, 351 frees, 1,603,759 bytes allocated.
==11600== For counts of detected errors, rerun with: -v
==11600== searching for pointers to 579 not-freed blocks.
==11600== checked 1,646,492 bytes.
==11600== 
==11600== LEAK SUMMARY:
==11600==    definitely lost: 0 bytes in 0 blocks.
==11600==      possibly lost: 0 bytes in 0 blocks.
==11600==    still reachable: 1,501,731 bytes in 579 blocks.
==11600==         suppressed: 0 bytes in 0 blocks.
==11600== Rerun with --leak-check=full to see details of leaked memory.

reply via email to

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