Re: [Memory Leak] Valgrind reported memory leaks

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

 



On 03/31/11 07:51, NEHA GUPTA wrote:
>  
> Hi All
>  
> 
> I am getting below memory leaks while running my application with valgrind.

It's quite possible that this is not actually a leak.  Fontconfig uses
pointers in ways that confuses valgrind.  In particular, if you can't make the
memory consumption go up indefinitely, it's probably not a leak.

behdad

> Any idea about below :
> 
> Leak 1
> 
> ==30196== 864 (256 direct, 608 indirect) bytes in 1 blocks are definitely lost
> in loss record 1,768 of 1,859
> ==30196==    at 0x4005A22: realloc (vg_replace_malloc.c:476)
> ==30196==    by 0xB73131: ??? (in /usr/lib/libfontconfig.so.1.3.0)
> ==30196==    by 0xB73BA7: ??? (in /usr/lib/libfontconfig.so.1.3.0)
> ==30196==    by 0xB741EB: ??? (in /usr/lib/libfontconfig.so.1.3.0)
> ==30196==    by 0xB7014D: *FcFontRenderPrepare *(in
> /usr/lib/libfontconfig.so.1.3.0)
> ==30196==    by 0xB70497: FcFontSetMatch (in /usr/lib/libfontconfig.so.1.3.0)
> ==30196==    by 0xB7069C: FcFontMatch (in /usr/lib/libfontconfig.so.1.3.0)
> ==30196==    by 0x46175BD: pango_fc_patterns_get_font_pattern
> (pangofc-fontmap.c:761)
> ==30196==    by 0x461772B: pango_fc_fontset_load_next_font (pangofc-fontmap.c:846)
> ==30196==    by 0x46177C6: pango_fc_fontset_get_font_at (pangofc-fontmap.c:879)
> ==30196==    by 0x4617B7A: pango_fc_fontset_foreach (pangofc-fontmap.c:1003)
> ==30196==    by 0x475733E: pango_fontset_foreach (pango-fontset.c:101)
> 
>  
> 
> Leak 2
> 
> ==30196== 2,236 (256 direct, 1,980 indirect) bytes in 1 blocks are definitely
> lost in loss record 1,828 of 1,859
> ==30196==    at 0x4005A22: realloc (vg_replace_malloc.c:476)
> ==30196==    by 0xB73131: ??? (in /usr/lib/libfontconfig.so.1.3.0)
> ==30196==    by 0xB73BA7: ??? (in /usr/lib/libfontconfig.so.1.3.0)
> ==30196==    by 0xB741EB: ??? (in /usr/lib/libfontconfig.so.1.3.0)
> ==30196==    by 0xB7422F: ??? (in /usr/lib/libfontconfig.so.1.3.0)
> ==30196==    by 0xB685C5: *FcDefaultSubstitute* (in
> /usr/lib/libfontconfig.so.1.3.0)
> ==30196==    by 0x4674A32: pango_cairo_fc_font_map_fontset_key_substitute
> (pangocairo-fcfontmap.c:93)
> ==30196==    by 0x4618F4F: pango_fc_default_substitute (pangofc-fontmap.c:1587)
> ==30196==    by 0x4619134: pango_fc_font_map_get_patterns (pangofc-fontmap.c:1641)
> ==30196==    by 0x461938E: pango_fc_font_map_load_fontset (pangofc-fontmap.c:1743)
> ==30196==    by 0x4756859: pango_font_map_load_fontset (pango-fontmap.c:136)
> ==30196==    by 0x4753CE3: itemize_state_update_for_new_run (pango-context.c:1349)
> 
> Any guidance  would be great help for me . Thanks !!!
> 
>  
> 
> Regards
> 
> Neha Gupta
> 
>  
> 
> Samsung India Software Center(SISC),
> Tower A, 10th Floor,
> Plot No. C-28,29, Sector 62,
> Noida - 201301 (U.P.), INDIA
> 
>  
> 
>  
> 
> 
> 
> _______________________________________________
> Fontconfig mailing list
> Fontconfig@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/fontconfig
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig


[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux