Mail Archives: geda-user/2020/12/14/16:49:26
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--8323329-270082969-1607981360=:1180
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8BIT
On Mon, 14 Dec 2020, Glenn (glimrick AT epilitimus DOT com) [via
geda-user AT delorie DOT com] wrote:
> Something is definitely leaking memory. I couldn't figure out what which
> is why I just marked it, It may be a leak in the library and so not
> fixable.
>
> There are actually three leaks listed. The first two look to be the same
> leak triggered twice:
>
>> ==16700== 11,175 (3,840 direct, 7,335 indirect) bytes in 5 blocks are
>> definitely lost in loss record 13,377 of 13,440
>> ==16700==Â Â Â at 0x4839D7B: realloc (vg_replace_malloc.c:836)
>> ==16700==Â Â Â by 0x5318299: ??? (in /usr/lib64/libfontconfig.so.1.8.0)
>> ==16700==Â Â Â by 0x5318921: ??? (in /usr/lib64/libfontconfig.so.1.8.0)
>> ==16700==Â Â Â by 0x5315C6A: FcFontRenderPrepare (in
>> /usr/lib64/libfontconfig.so.1.8.0)
>> ==16700==Â Â Â by 0x531614F: FcFontMatch (in
>> /usr/lib64/libfontconfig.so.1.8.0)
>> ==16700==Â Â Â by 0x50F3285: ??? (in /usr/lib64/libpangoft2-1.0.so.0.3800.1)
>> ==16700==Â Â Â by 0x50F342C: ??? (in /usr/lib64/libpangoft2-1.0.so.0.3800.1)
>> ==16700==Â Â Â by 0x5FE34ED: pango_context_get_metrics (in
>> /usr/lib64/libpango-1.0.so.0.3800.1)
This appears to be current_fonts->patterns->match. As far as I can tell,
the last part of the stack trace would read (static functions in braces):
FcFontMatch
[pango_fc_patterns_get_font_pattern]
[pango_fc_fontset_load_next_font]
[pango_fc_fontset_get_font_at]
[pango_fc_fontset_foreach]
[pango_fontset_foreach]
[get_base_metrics]
pango_context_get_metrics
It *may* be that this is not a library leak as much as a usage error, like
a Pango context which hasn't been freed somewhere. In that case, I'd
expect there to be another leak, though; this is most certainly not an
error in eda_renderer_get_font_descent.
The other two leaks are much harder to trace (I gave up around
pango_font_map_load_fontset), but I think it's safe to assume that they
are of a similar kind.
Roland
--8323329-270082969-1607981360=:1180--
- Raw text -