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 python/12533] gdb consumes large memory when millionsgdb.values are created


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.


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