bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

memory corruption in gdbm_close


From: ldap
Subject: memory corruption in gdbm_close
Date: 9 Jul 2002 11:38:31 -0700

Hi,
 
I am getting the following message from a modified testgdbm.c (attached).
Looks like there is a memory corruption (version 1.8.0). I am using
dbmalloc with it.
 
 
MALLOC Warning from free() (called from gdbmclose.c line 67):
Data has overrun beyond requested number of bytes
This error is *probably* associated with the following allocation:
 
        A call to malloc for 8192 bytes in gdbmopen.c on line 343.
        This was the 100407th call to malloc.
 
The changes I made in testgdbm.c, which expose this corruption are:
modify the (s) and the (d) options to delete 100000 entries, and after
each of the commands, close and open the db again. At some point,
the close indicates a leak. Basically at runtime, the sequence is as
follows:

1) open db
2) add 100,000 entries
3) close db
4) open db
5) delete the previos 100,000 entries
6) close db
7) open db
8) add 100,000 entries
9) close db 

The (9) close indicates the above message from dbmalloc.
 
 
-Medhavi.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]