This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug symtab/14108] New: symbase in elf_slurp_symbol_table memorywaste


http://sourceware.org/bugzilla/show_bug.cgi?id=14108

             Bug #: 14108
           Summary: symbase in elf_slurp_symbol_table memory waste
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
        AssignedTo: unassigned@sourceware.org
        ReportedBy: dje@google.com
    Classification: Unclassified


It is not possible for the caller of bfd_canonicalize_symtab to free the
"symbase" object allocated by elf_slurp_symbol_table (bfd/elfcode.h).

The memory isn't wasted per se, it will be freed when the bfd is freed.
However, GDB has no need to keep it (at least for normal syms, there's a
comment in gdb/elfread.c about needing to keep dynamic syms, not sure it's
still valid or if it applies here).  In large apps it can be a significant
waste of memory (e.g. 100's of MB).

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]