Comment 2 for bug 134213

Revision history for this message
Sven Herzberg (herzi) wrote : Re: double free or corruption detected by glibc

==13879== Memcheck, a memory error detector.
==13879== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==13879== Using LibVEX rev 1658, a library for dynamic binary translation.
==13879== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==13879== Using valgrind-3.2.1-Debian, a dynamic binary instrumentation framework.
==13879== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==13879== For more details, rerun with: -v
==13879==
==13879== Invalid free() / delete / delete[]
==13879== at 0x402123A: free (vg_replace_malloc.c:233)
==13879== by 0x804B148: free_cmd_data (in /usr/bin/slocate)
==13879== by 0x804AF62: main (in /usr/bin/slocate)
==13879== Address 0x41547A8 is 0 bytes inside a block of size 20 free'd
==13879== at 0x402123A: free (vg_replace_malloc.c:233)
==13879== by 0x804D5FD: match (in /usr/bin/slocate)
==13879== by 0x80496E7: search_path (in /usr/bin/slocate)
==13879== by 0x8049D73: search_db (in /usr/bin/slocate)
==13879== by 0x804AF27: main (in /usr/bin/slocate)
==13879==
==13879== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 19 from 1)
==13879== malloc/free: in use at exit: 176 bytes in 12 blocks.
==13879== malloc/free: 9,720,890 allocs, 9,720,879 frees, 414,990,507 bytes allocated.
==13879== For counts of detected errors, rerun with: -v
==13879== searching for pointers to 12 not-freed blocks.
==13879== checked 55,912 bytes.
==13879==
==13879== LEAK SUMMARY:
==13879== definitely lost: 176 bytes in 12 blocks.
==13879== possibly lost: 0 bytes in 0 blocks.
==13879== still reachable: 0 bytes in 0 blocks.
==13879== suppressed: 0 bytes in 0 blocks.
==13879== Use --leak-check=full to see details of leaked memory.

Now I can look into the source...