Synthetic symbol leak in in elf_x86_64_get_synthetic_symtab and elf_read_minimal_symbols

Pedro Alves palves@redhat.com
Thu Aug 17 17:42:00 GMT 2017


On 08/17/2017 01:31 PM, Philippe Waroquiers wrote:

> My knowledge of c++ is close to 0, so I cannot help much
> to find the source of the leak.
> I am wondering however who owns the memory allocated
> at dwarf2read.c:9362 :
>   line_header_up lh = dwarf_decode_line_header (line_offset, cu);
> when the logic goes later on to line 9389
>         gdb_assert (die->tag != DW_TAG_partial_unit);
> (for info: in the c version 7.11, this assert was followed by
>       make_cleanup (free_cu_line_header, cu);
> )

That does look like the reason for the leak.  I'm taking a look.

Thanks,
Pedro Alves



More information about the Gdb-patches mailing list