[Fontconfig] Possible memory problem
Behdad Esfahbod
behdad at cs.toronto.edu
Sat Dec 3 22:08:24 PST 2005
Hi,
Since I installed fontconfig from branch, I'm experiencing memory
problems with firefox. I cannot reproduce this without branch,
but almost always happens with. I went back on branch to
2004-11-29, happenning still.
With firefox, when exiting, I get the following glibc-detected
invalid pointer:
======= Backtrace: =========
/lib/libc.so.6[0xdc7124]
/lib/libc.so.6(__libc_free+0x77)[0xdc765f]
/home/behdad/.local/lib/libfontconfig.so.1(FcValueListDestroy+0x1d0)[0x7172ec]
/home/behdad/.local/lib/libfontconfig.so.1(FcPatternDestroy+0x155)[0x717750]
/usr/lib/firefox-1.0.7/components/libgfx_gtk.so[0x3f4a746]
/usr/lib/firefox-1.0.7/components/libgfx_gtk.so[0x3f4a97a]
/usr/lib/firefox-1.0.7/components/libgfx_gtk.so[0x3f4b698]
/usr/lib/firefox-1.0.7/components/libgfx_gtk.so[0x3f4ea73]
...
I also valgrinded pango/examples/pango-cairoview. With branch, I
get this:
==15686==
==15686== Syscall param write(buf) points to uninitialised byte(s)
==15686== at 0x6F6B03: __write_nocancel (in /lib/libc-2.3.5.so)
==15686== by 0x1BAC2485: FcConfigBuildFonts (fccfg.c:328)
==15686== by 0x1BACB30C: FcInitLoadConfigAndFonts (fcinit.c:85)
==15686== by 0x1BACB5A5: FcInit (fcinit.c:103)
==15686== by 0x1BABFD51: FcConfigGetCurrent (fccfg.c:360)
==15686== by 0x1BAC3E9D: FcConfigSubstituteWithPat (fccfg.c:1278)
==15686== by 0x1BAC3F00: FcConfigSubstitute (fccfg.c:1490)
==15686== by 0x1B972BAB: pango_cairo_fc_font_map_context_substitute (pangocairo-fcfontmap.c:94)
==15686== by 0x1B94E427: pango_fc_font_map_load_fontset (pangofc-fontmap.c:958)
==15686== by 0x1B920A56: pango_font_map_load_fontset (pango-fontmap.c:106)
==15686== by 0x1B91EEC2: itemize_state_process_run (pango-context.c:1046)
==15686== by 0x1B91F899: pango_itemize_with_base_dir (pango-context.c:1190)
==15686== Address 0x1BE93AA0 is 6264 bytes inside a block of size 25876 alloc'd
==15686== at 0x1B909222: malloc (vg_replace_malloc.c:130)
==15686== by 0x1BABDAEC: FcDirCacheProduce (fccache.c:823)
==15686== by 0x1BABDBFE: FcGlobalCacheUpdate (fccache.c:304)
==15686== by 0x1BAC7D6D: FcDirScanConfig (fcdir.c:190)
==15686== by 0x1BAC2412: FcConfigBuildFonts (fccfg.c:304)
==15686== by 0x1BACB30C: FcInitLoadConfigAndFonts (fcinit.c:85)
==15686== by 0x1BACB5A5: FcInit (fcinit.c:103)
==15686== by 0x1BABFD51: FcConfigGetCurrent (fccfg.c:360)
==15686== by 0x1BAC3E9D: FcConfigSubstituteWithPat (fccfg.c:1278)
==15686== by 0x1BAC3F00: FcConfigSubstitute (fccfg.c:1490)
==15686== by 0x1B972BAB: pango_cairo_fc_font_map_context_substitute (pangocairo-fcfontmap.c:94)
==15686== by 0x1B94E427: pango_fc_font_map_load_fontset (pangofc-fontmap.c:958)
==15686==
Maybe someone has any idea?
--behdad
http://behdad.org/
"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
-- Dan Bern, "New American Language"
More information about the Fontconfig
mailing list