Dwarf2.c:read_attribute_value - isn't it a leak?
Nick Clifton
nickc@redhat.com
Mon Mar 1 16:32:00 GMT 2010
Hi Dmitry,
> There is seems to a be a leak at dwarf2.c (function
> read_attribute_value, allocations of dwarf_block in DW_FORM_blockX
> cases).
>
> While using BFD (modified a little bit) i had found that my program
> permanently increases a heap memory consumption.
> Thought it might be relative to changes I made in BFD (perhaps
> originla BFD does not permanently eats memory), I suppose it is a real
> leak that you might wish to fix.
>
> I'm using a BFD from GDB 7.0.1. Its version, I suppose, is 20090916.
Thanks for the heads up. I'll keep an eye on the problem, although
without a definitive way to reproduce it, it may not be solved. Plus
there is always the possibility that the problem has already been fixed
in the binutils mainline code.
As a matter of interest, does the problem still occur with the gdb 7.1
sources ? They are using a newer snapshot of the binutils sources, so
maybe the issue has been resolved.
Cheers
Nick
More information about the Binutils
mailing list