Message46127
Logged In: YES
user_id=413
Thanks, I hadn't caught up on python-dev in a while. What
happens if you apply my attached patch and rerun the test
under valgrind?
The 4 bytes leaked sounds exactly like what i was expecting
reading the code (an integer key causes make_key_dbt to
alloc a 32bit value). in the DBC_set_range case without the
patch i believe it is likely that the integer is allocated
but the REALLOC flag is overridden in the old code with a
MALLOC causing BerkeleyDB to leak the old pointer and
allocate a new key for the return value (btree accessed
using an integer key).
8 bytes in 2 blocks leaked in DB_get is double what i
expected but without debug info showing the DB_get function
call arguments and database flags its hard to say what happened. |
|
Date |
User |
Action |
Args |
2007-08-23 15:38:02 | admin | link | issue967763 messages |
2007-08-23 15:38:02 | admin | create | |
|