This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/12533] gdb consumes large memory when millionsgdb.values are created
- From: "ian at mahuron dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 22 Dec 2011 21:34:00 +0000
- Subject: [Bug python/12533] gdb consumes large memory when millionsgdb.values are created
- Auto-submitted: auto-generated
- References: <bug-12533-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12533
--- Comment #5 from Ian Mahuron <ian at mahuron dot org> 2011-12-22 21:34:00 UTC ---
Tested 7.4.50.20111222-cvs. gdb still leaks memory as reported in initial
problem description.
My test does something along the lines of:
buckets = gdb.newest_frame().read_var("buckets")
bucket_count = 2 ** 32
# iterate over all buckets
for i in range(0, bucket_count):
llist = buckets[i]['llhead']
# iterate over linked list for this bucket
while llist:
print llist.address
llist = llist['next']['llnext']
GDB hits 1.2G in a matter of seconds. This code shouldn't hold any refs so I'm
fairly confident it's still leaking.
--
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.