Article View: gnu.gdb.bug
Article #845more info on gdb3.5 memory bloat
From: Glenn Engel
Date: Sat, 17 Feb 1990 21:00
Date: Sat, 17 Feb 1990 21:00
15 lines
1013 bytes
1013 bytes
Re: previous bug report about gdb using significantly more memory than
gdb3.4.
After a debug session on gdb 3.5 I discovered that the problem appears
to be in the malloc.c provided with gdb.
When reading my executable's symbol table, malloc is called 841 times
to request 4088 bytes. After every one of these 4088 byte malloc calls,
the data segment size goes up by 8192 bytes. As a result, gdb uses
an extra 3.5 Megabytes of data space. Linking in the system malloc.o
instead seems to fix the problem. Looking back, I see that I used the
system malloc on gdb3.4 as well.
--
glenne@hplsla.hp.com
Technical Details
Message-ID:
<9002172100.AA17438@labgre.HP.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!HPLSLA.HP.COM!glenneShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!HPLSLA.HP.COM!glenne From: glenne@HPLSLA.HP.COM (Glenn Engel) Newsgroups: gnu.gdb.bug Subject: more info on gdb3.5 memory bloat Message-ID: <9002172100.AA17438@labgre.HP.COM> Date: 17 Feb 90 21:00:41 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 15