[KinoSearch] Memory leak in KinoSearch::Index::PostingsWriter::add_batch

Dan Sully daniel at electricrain.com
Mon Jul 30 16:28:00 PDT 2007


* Marvin Humphrey shaped the electrons to say...

>How about running with a subset of your document collection?  As soon  
>as a byte gets lost, Valgrind notices.

I've managed to get it to index 5 documents. :)

valgrind output is attached.

-D
--
<dsully> please describe web 2.0 to me in 2 sentences or less.
<jwb> you make all the content. they keep all the revenue.
-------------- next part --------------
==4137== Memcheck, a memory error detector.
==4137== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==4137== Using LibVEX rev 1606, a library for dynamic binary translation.
==4137== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==4137== Using valgrind-3.2.0-Debian, a dynamic binary instrumentation framework.
==4137== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==4137== 
==4137== My PID = 4137, parent PID = 21731.  Prog and args are:
==4137==    debugperl
==4137==    mail-indexer
==4137== 
--4137-- 
--4137-- Command line
--4137--    debugperl
--4137--    mail-indexer
--4137-- Startup, with flags:
--4137--    --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp
--4137--    --suppressions=/usr/lib/valgrind/p588_valgrind.supp
--4137--    --leak-check=full
--4137--    --show-reachable=yes
--4137--    --log-file-exactly=valgrind.txt
--4137--    -v
--4137-- Contents of /proc/version:
--4137--   Linux version 2.6.17-10-generic (root at king) (gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)) #2 SMP Tue Dec 5 21:16:35 UTC 2006 (Ubuntu 2.6.17-10.34-generic)
--4137-- Arch and hwcaps: AMD64, amd64-sse2
--4137-- Valgrind library directory: /usr/lib/valgrind
--4137-- Reading syms from /usr/bin/debugperl (0x400000)
--4137-- Reading syms from /lib/ld-2.4.so (0x4000000)
--4137-- Reading debug info from /lib/ld-2.4.so...
--4137-- ... CRC mismatch (computed 9697110F wanted 12D86C19)
--4137--    object doesn't have a symbol table
--4137-- Reading syms from /usr/lib/valgrind/amd64-linux/memcheck (0x38000000)
--4137--    object doesn't have a dynamic symbol table
--4137-- Reading suppressions file: /usr/lib/valgrind/debian-libc6-dbg.supp
--4137-- Reading suppressions file: /usr/lib/valgrind/p588_valgrind.supp
--4137-- Reading suppressions file: /usr/lib/valgrind/default.supp
--4137-- Reading syms from /usr/lib/valgrind/amd64-linux/vgpreload_core.so (0x491D000)
--4137-- Reading syms from /usr/lib/valgrind/amd64-linux/vgpreload_memcheck.so (0x4A1E000)
--4137-- Reading syms from /lib/libdl-2.4.so (0x4B24000)
--4137-- Reading debug info from /lib/libdl-2.4.so...
--4137-- ... CRC mismatch (computed 815B85A3 wanted 6E76141D)
--4137--    object doesn't have a symbol table
--4137-- Reading syms from /lib/libm-2.4.so (0x4C28000)
--4137-- Reading debug info from /lib/libm-2.4.so...
--4137-- ... CRC mismatch (computed 2B892E9C wanted 50A7C6DA)
--4137--    object doesn't have a symbol table
--4137-- Reading syms from /lib/libpthread-2.4.so (0x4DA9000)
--4137-- Reading debug info from /lib/libpthread-2.4.so...
--4137-- ... CRC mismatch (computed B930304E wanted 6B816E25)
--4137-- Reading syms from /lib/libc-2.4.so (0x4EBF000)
--4137-- Reading debug info from /lib/libc-2.4.so...
--4137-- ... CRC mismatch (computed 8109B5C7 wanted 8B3079D3)
--4137--    object doesn't have a symbol table
--4137-- Reading syms from /lib/libcrypt-2.4.so (0x50FF000)
--4137-- Reading debug info from /lib/libcrypt-2.4.so...
--4137-- ... CRC mismatch (computed 683CAEF7 wanted A51A8ADE)
--4137--    object doesn't have a symbol table
--4137-- REDIR: 0x4F35390 (memset) redirected to 0x4A21830 (memset)
--4137-- REDIR: 0x4F35AB0 (memcpy) redirected to 0x4A21FC0 (memcpy)
--4137-- REDIR: 0x4F344B0 (rindex) redirected to 0x4A21420 (rindex)
--4137-- REDIR: 0x4F2F660 (malloc) redirected to 0x4A2078C (malloc)
--4137-- REDIR: 0x4F35200 (memmove) redirected to 0x4A21860 (memmove)
--4137-- REDIR: 0x4F340C0 (strlen) redirected to 0x4A215D0 (strlen)
--4137-- REDIR: 0x4F34340 (strncmp) redirected to 0x4A21630 (strncmp)
--4137-- REDIR: 0x4F33B30 (strcmp) redirected to 0x4A216A0 (strcmp)
--4137-- REDIR: 0x4F33980 (index) redirected to 0x4A21510 (index)
--4137-- REDIR: 0x4F36440 (strchrnul) redirected to 0x4A218C0 (strchrnul)
--4137-- REDIR: 0x4F2D830 (free) redirected to 0x4A2039C (free)
--4137-- REDIR: 0x4F34BB0 (memchr) redirected to 0x4A21760 (memchr)
--4137-- REDIR: 0x4F2FAE0 (realloc) redirected to 0x4A2083D (realloc)
--4137-- REDIR: 0x4F341B0 (strnlen) redirected to 0x4A215A0 (strnlen)
--4137-- REDIR: 0x4F357B0 (stpcpy) redirected to 0x4A21DD0 (stpcpy)
--4137-- REDIR: 0x4F33B70 (strcpy) redirected to 0x4A21B20 (strcpy)
--4137-- REDIR: 0x4F36310 (rawmemchr) redirected to 0x4A218F0 (rawmemchr)
--4137-- REDIR: 0xFFFFFFFFFF600400 (???) redirected to 0x380275F1 (???)
--4137-- REDIR: 0x4F2F2F0 (calloc) redirected to 0x4A1FAB1 (calloc)
==4137== Invalid read of size 8
==4137==    at 0x4014CB0: (within /lib/ld-2.4.so)
==4137==    by 0x400A29D: (within /lib/ld-2.4.so)
==4137==    by 0x4005F94: (within /lib/ld-2.4.so)
==4137==    by 0x40081D5: (within /lib/ld-2.4.so)
==4137==    by 0x401119C: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4010C0A: (within /lib/ld-2.4.so)
==4137==    by 0x4B251A9: (within /lib/libdl-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4B2571C: (within /lib/libdl-2.4.so)
==4137==    by 0x4B25120: dlopen (in /lib/libdl-2.4.so)
==4137==    by 0x41DEF8: XS_DynaLoader_dl_load_file (DynaLoader.xs:191)
==4137==  Address 0x5718780 is 32 bytes inside a block of size 38 alloc'd
==4137==    at 0x4A2080E: malloc (vg_replace_malloc.c:149)
==4137==    by 0x4007573: (within /lib/ld-2.4.so)
==4137==    by 0x400812E: (within /lib/ld-2.4.so)
==4137==    by 0x401119C: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4010C0A: (within /lib/ld-2.4.so)
==4137==    by 0x4B251A9: (within /lib/libdl-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4B2571C: (within /lib/libdl-2.4.so)
==4137==    by 0x4B25120: dlopen (in /lib/libdl-2.4.so)
==4137==    by 0x41DEF8: XS_DynaLoader_dl_load_file (DynaLoader.xs:191)
==4137==    by 0x4C53CD: Perl_pp_entersub (pp_hot.c:2877)
--4137-- Reading syms from /usr/lib/perl/5.8.8/auto/Fcntl/Fcntl.so (0x5766000)
--4137--    object doesn't have a symbol table
==4137== 
==4137== Invalid read of size 8
==4137==    at 0x4014CCA: (within /lib/ld-2.4.so)
==4137==    by 0x400A29D: (within /lib/ld-2.4.so)
==4137==    by 0x4005F94: (within /lib/ld-2.4.so)
==4137==    by 0x40081D5: (within /lib/ld-2.4.so)
==4137==    by 0x401119C: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4010C0A: (within /lib/ld-2.4.so)
==4137==    by 0x4B251A9: (within /lib/libdl-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4B2571C: (within /lib/libdl-2.4.so)
==4137==    by 0x4B25120: dlopen (in /lib/libdl-2.4.so)
==4137==    by 0x41DEF8: XS_DynaLoader_dl_load_file (DynaLoader.xs:191)
==4137==  Address 0x5974610 is 40 bytes inside a block of size 41 alloc'd
==4137==    at 0x4A2080E: malloc (vg_replace_malloc.c:149)
==4137==    by 0x4007573: (within /lib/ld-2.4.so)
==4137==    by 0x400812E: (within /lib/ld-2.4.so)
==4137==    by 0x401119C: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4010C0A: (within /lib/ld-2.4.so)
==4137==    by 0x4B251A9: (within /lib/libdl-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4B2571C: (within /lib/libdl-2.4.so)
==4137==    by 0x4B25120: dlopen (in /lib/libdl-2.4.so)
==4137==    by 0x41DEF8: XS_DynaLoader_dl_load_file (DynaLoader.xs:191)
==4137==    by 0x4C53CD: Perl_pp_entersub (pp_hot.c:2877)
--4137-- Reading syms from /usr/lib/perl/5.8.8/auto/List/Util/Util.so (0x5A69000)
--4137--    object doesn't have a symbol table
--4137-- Reading syms from /usr/lib/perl5/auto/KinoSearch/KinoSearch.so (0x5B72000)
--4137--    object doesn't have a symbol table
--4137-- Reading syms from /usr/lib/perl5/auto/Clone/Clone.so (0x5E02000)
--4137--    object doesn't have a symbol table
--4137-- Reading syms from /usr/lib/perl/5.8.8/auto/Time/HiRes/HiRes.so (0x6005000)
--4137--    object doesn't have a symbol table
--4137-- REDIR: 0xFFFFFFFFFF600000 (???) redirected to 0x380275E7 (???)
--4137-- Reading syms from /usr/lib/perl/5.8.8/auto/IO/IO.so (0x630A000)
--4137--    object doesn't have a symbol table
--4137-- Reading syms from /usr/lib/perl5/auto/Compress/Zlib/Zlib.so (0x650F000)
--4137--    object doesn't have a symbol table
==4137== 
==4137== Invalid read of size 8
==4137==    at 0x4014CE4: (within /lib/ld-2.4.so)
==4137==    by 0x400A29D: (within /lib/ld-2.4.so)
==4137==    by 0x4005F94: (within /lib/ld-2.4.so)
==4137==    by 0x40081D5: (within /lib/ld-2.4.so)
==4137==    by 0x400B45C: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x400BB2B: (within /lib/ld-2.4.so)
==4137==    by 0x40111FC: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4010C0A: (within /lib/ld-2.4.so)
==4137==    by 0x4B251A9: (within /lib/libdl-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==  Address 0x647FEA0 is 16 bytes inside a block of size 19 alloc'd
==4137==    at 0x4A2080E: malloc (vg_replace_malloc.c:149)
==4137==    by 0x400865F: (within /lib/ld-2.4.so)
==4137==    by 0x400B45C: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x400BB2B: (within /lib/ld-2.4.so)
==4137==    by 0x40111FC: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4010C0A: (within /lib/ld-2.4.so)
==4137==    by 0x4B251A9: (within /lib/libdl-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4B2571C: (within /lib/libdl-2.4.so)
==4137==    by 0x4B25120: dlopen (in /lib/libdl-2.4.so)
--4137-- Reading syms from /usr/lib/libz.so.1.2.3 (0x661F000)
--4137-- Reading debug info from /usr/lib/libz.so.1.2.3...
--4137-- ... CRC mismatch (computed 21C34893 wanted 515F07D3)
--4137--    object doesn't have a symbol table
--4137-- Reading syms from /usr/lib/perl5/auto/Lingua/Stem/Snowball/Snowball.so (0x6A35000)
--4137--    object doesn't have a symbol table
--4137-- Reading syms from /usr/lib/perl/5.8.8/auto/MIME/Base64/Base64.so (0x6C78000)
--4137--    object doesn't have a symbol table
--4137-- Reading syms from /usr/lib/perl5/auto/HTML/Parser/Parser.so (0x767B000)
--4137--    object doesn't have a symbol table
--4137-- Reading syms from /usr/lib/perl5/auto/Term/ReadKey/ReadKey.so (0x7786000)
--4137--    object doesn't have a symbol table
==4137== 
==4137== ERROR SUMMARY: 11 errors from 3 contexts (suppressed: 72 from 1)
==4137== 
==4137== 2 errors in context 1 of 3:
==4137== Invalid read of size 8
==4137==    at 0x4014CE4: (within /lib/ld-2.4.so)
==4137==    by 0x400A29D: (within /lib/ld-2.4.so)
==4137==    by 0x4005F94: (within /lib/ld-2.4.so)
==4137==    by 0x40081D5: (within /lib/ld-2.4.so)
==4137==    by 0x400B45C: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x400BB2B: (within /lib/ld-2.4.so)
==4137==    by 0x40111FC: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4010C0A: (within /lib/ld-2.4.so)
==4137==    by 0x4B251A9: (within /lib/libdl-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==  Address 0x647FEA0 is 16 bytes inside a block of size 19 alloc'd
==4137==    at 0x4A2080E: malloc (vg_replace_malloc.c:149)
==4137==    by 0x400865F: (within /lib/ld-2.4.so)
==4137==    by 0x400B45C: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x400BB2B: (within /lib/ld-2.4.so)
==4137==    by 0x40111FC: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4010C0A: (within /lib/ld-2.4.so)
==4137==    by 0x4B251A9: (within /lib/libdl-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4B2571C: (within /lib/libdl-2.4.so)
==4137==    by 0x4B25120: dlopen (in /lib/libdl-2.4.so)
==4137== 
==4137== 2 errors in context 2 of 3:
==4137== Invalid read of size 8
==4137==    at 0x4014CB0: (within /lib/ld-2.4.so)
==4137==    by 0x400A29D: (within /lib/ld-2.4.so)
==4137==    by 0x4005F94: (within /lib/ld-2.4.so)
==4137==    by 0x40081D5: (within /lib/ld-2.4.so)
==4137==    by 0x401119C: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4010C0A: (within /lib/ld-2.4.so)
==4137==    by 0x4B251A9: (within /lib/libdl-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4B2571C: (within /lib/libdl-2.4.so)
==4137==    by 0x4B25120: dlopen (in /lib/libdl-2.4.so)
==4137==    by 0x41DEF8: XS_DynaLoader_dl_load_file (DynaLoader.xs:191)
==4137==  Address 0x5718780 is 32 bytes inside a block of size 38 alloc'd
==4137==    at 0x4A2080E: malloc (vg_replace_malloc.c:149)
==4137==    by 0x4007573: (within /lib/ld-2.4.so)
==4137==    by 0x400812E: (within /lib/ld-2.4.so)
==4137==    by 0x401119C: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4010C0A: (within /lib/ld-2.4.so)
==4137==    by 0x4B251A9: (within /lib/libdl-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4B2571C: (within /lib/libdl-2.4.so)
==4137==    by 0x4B25120: dlopen (in /lib/libdl-2.4.so)
==4137==    by 0x41DEF8: XS_DynaLoader_dl_load_file (DynaLoader.xs:191)
==4137==    by 0x4C53CD: Perl_pp_entersub (pp_hot.c:2877)
==4137== 
==4137== 7 errors in context 3 of 3:
==4137== Invalid read of size 8
==4137==    at 0x4014CCA: (within /lib/ld-2.4.so)
==4137==    by 0x400A29D: (within /lib/ld-2.4.so)
==4137==    by 0x4005F94: (within /lib/ld-2.4.so)
==4137==    by 0x40081D5: (within /lib/ld-2.4.so)
==4137==    by 0x401119C: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4010C0A: (within /lib/ld-2.4.so)
==4137==    by 0x4B251A9: (within /lib/libdl-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4B2571C: (within /lib/libdl-2.4.so)
==4137==    by 0x4B25120: dlopen (in /lib/libdl-2.4.so)
==4137==    by 0x41DEF8: XS_DynaLoader_dl_load_file (DynaLoader.xs:191)
==4137==  Address 0x5974610 is 40 bytes inside a block of size 41 alloc'd
==4137==    at 0x4A2080E: malloc (vg_replace_malloc.c:149)
==4137==    by 0x4007573: (within /lib/ld-2.4.so)
==4137==    by 0x400812E: (within /lib/ld-2.4.so)
==4137==    by 0x401119C: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4010C0A: (within /lib/ld-2.4.so)
==4137==    by 0x4B251A9: (within /lib/libdl-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4B2571C: (within /lib/libdl-2.4.so)
==4137==    by 0x4B25120: dlopen (in /lib/libdl-2.4.so)
==4137==    by 0x41DEF8: XS_DynaLoader_dl_load_file (DynaLoader.xs:191)
==4137==    by 0x4C53CD: Perl_pp_entersub (pp_hot.c:2877)
--4137-- 
--4137-- supp:   72 Fedora-Core-5-hack3-ld24
==4137== 
==4137== IN SUMMARY: 11 errors from 3 contexts (suppressed: 72 from 1)
==4137== 
==4137== malloc/free: in use at exit: 27,238 bytes in 516 blocks.
==4137== malloc/free: 602,958 allocs, 602,442 frees, 808,085,025 bytes allocated.
==4137== 
==4137== searching for pointers to 516 not-freed blocks.
==4137== checked 556,824 bytes.
==4137== 
==4137== 
==4137== 19 bytes in 1 blocks are still reachable in loss record 1 of 9
==4137==    at 0x4A2080E: malloc (vg_replace_malloc.c:149)
==4137==    by 0x400865F: (within /lib/ld-2.4.so)
==4137==    by 0x400B45C: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x400BB2B: (within /lib/ld-2.4.so)
==4137==    by 0x40111FC: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4010C0A: (within /lib/ld-2.4.so)
==4137==    by 0x4B251A9: (within /lib/libdl-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4B2571C: (within /lib/libdl-2.4.so)
==4137==    by 0x4B25120: dlopen (in /lib/libdl-2.4.so)
==4137== 
==4137== 
==4137== 32 bytes in 1 blocks are still reachable in loss record 2 of 9
==4137==    at 0x4A1FB37: calloc (vg_replace_malloc.c:279)
==4137==    by 0x4B2577A: (within /lib/libdl-2.4.so)
==4137==    by 0x4B25120: dlopen (in /lib/libdl-2.4.so)
==4137==    by 0x41DEF8: XS_DynaLoader_dl_load_file (DynaLoader.xs:191)
==4137==    by 0x4C53CD: Perl_pp_entersub (pp_hot.c:2877)
==4137==    by 0x4993BF: Perl_runops_debug (dump.c:1459)
==4137==    by 0x425351: S_call_body (perl.c:2731)
==4137==    by 0x424DAA: Perl_call_sv (perl.c:2646)
==4137==    by 0x42ADDA: S_call_list_body (perl.c:5262)
==4137==    by 0x42A7C9: Perl_call_list (perl.c:5191)
==4137==    by 0x470AF0: Perl_newATTRSUB (op.c:4520)
==4137==    by 0x46B4BA: Perl_utilize (op.c:3096)
==4137== 
==4137== 
==4137== 40 bytes in 1 blocks are still reachable in loss record 3 of 9
==4137==    at 0x4A2080E: malloc (vg_replace_malloc.c:149)
==4137==    by 0x400BBDC: (within /lib/ld-2.4.so)
==4137==    by 0x40111FC: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4010C0A: (within /lib/ld-2.4.so)
==4137==    by 0x4B251A9: (within /lib/libdl-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4B2571C: (within /lib/libdl-2.4.so)
==4137==    by 0x4B25120: dlopen (in /lib/libdl-2.4.so)
==4137==    by 0x41DEF8: XS_DynaLoader_dl_load_file (DynaLoader.xs:191)
==4137==    by 0x4C53CD: Perl_pp_entersub (pp_hot.c:2877)
==4137==    by 0x4993BF: Perl_runops_debug (dump.c:1459)
==4137== 
==4137== 
==4137== 460 bytes in 11 blocks are still reachable in loss record 4 of 9
==4137==    at 0x4A2080E: malloc (vg_replace_malloc.c:149)
==4137==    by 0x4007573: (within /lib/ld-2.4.so)
==4137==    by 0x400812E: (within /lib/ld-2.4.so)
==4137==    by 0x401119C: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4010C0A: (within /lib/ld-2.4.so)
==4137==    by 0x4B251A9: (within /lib/libdl-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4B2571C: (within /lib/libdl-2.4.so)
==4137==    by 0x4B25120: dlopen (in /lib/libdl-2.4.so)
==4137==    by 0x41DEF8: XS_DynaLoader_dl_load_file (DynaLoader.xs:191)
==4137==    by 0x4C53CD: Perl_pp_entersub (pp_hot.c:2877)
==4137== 
==4137== 
==4137== 479 bytes in 12 blocks are still reachable in loss record 5 of 9
==4137==    at 0x4A2080E: malloc (vg_replace_malloc.c:149)
==4137==    by 0x400A34B: (within /lib/ld-2.4.so)
==4137==    by 0x4005F94: (within /lib/ld-2.4.so)
==4137==    by 0x40081D5: (within /lib/ld-2.4.so)
==4137==    by 0x401119C: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4010C0A: (within /lib/ld-2.4.so)
==4137==    by 0x4B251A9: (within /lib/libdl-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4B2571C: (within /lib/libdl-2.4.so)
==4137==    by 0x4B25120: dlopen (in /lib/libdl-2.4.so)
==4137==    by 0x41DEF8: XS_DynaLoader_dl_load_file (DynaLoader.xs:191)
==4137== 
==4137== 
==4137== 632 bytes in 11 blocks are still reachable in loss record 6 of 9
==4137==    at 0x4A2080E: malloc (vg_replace_malloc.c:149)
==4137==    by 0x400BD62: (within /lib/ld-2.4.so)
==4137==    by 0x40111FC: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4010C0A: (within /lib/ld-2.4.so)
==4137==    by 0x4B251A9: (within /lib/libdl-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4B2571C: (within /lib/libdl-2.4.so)
==4137==    by 0x4B25120: dlopen (in /lib/libdl-2.4.so)
==4137==    by 0x41DEF8: XS_DynaLoader_dl_load_file (DynaLoader.xs:191)
==4137==    by 0x4C53CD: Perl_pp_entersub (pp_hot.c:2877)
==4137==    by 0x4993BF: Perl_runops_debug (dump.c:1459)
==4137== 
==4137== 
==4137== 936 bytes in 12 blocks are still reachable in loss record 7 of 9
==4137==    at 0x4A1FB37: calloc (vg_replace_malloc.c:279)
==4137==    by 0x400ECD1: (within /lib/ld-2.4.so)
==4137==    by 0x4011472: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4010C0A: (within /lib/ld-2.4.so)
==4137==    by 0x4B251A9: (within /lib/libdl-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4B2571C: (within /lib/libdl-2.4.so)
==4137==    by 0x4B25120: dlopen (in /lib/libdl-2.4.so)
==4137==    by 0x41DEF8: XS_DynaLoader_dl_load_file (DynaLoader.xs:191)
==4137==    by 0x4C53CD: Perl_pp_entersub (pp_hot.c:2877)
==4137==    by 0x4993BF: Perl_runops_debug (dump.c:1459)
==4137== 
==4137== 
==4137== 10,730 bytes in 455 blocks are definitely lost in loss record 8 of 9
==4137==    at 0x4A2080E: malloc (vg_replace_malloc.c:149)
==4137==    by 0x499A85: Perl_safesysmalloc (util.c:78)
==4137==    by 0x49B7DF: Perl_savepvn (util.c:789)
==4137==    by 0x42D8C7: Perl_gv_fetchpv (gv.c:754)
==4137==    by 0x42D31B: Perl_gv_stashpvn (gv.c:671)
==4137==    by 0x46AE5A: Perl_package (op.c:3010)
==4137==    by 0x45FE6C: Perl_yyparse (perly.y:415)
==4137==    by 0x51BC30: S_doeval (pp_ctl.c:2894)
==4137==    by 0x51ED2E: Perl_pp_require (pp_ctl.c:3429)
==4137==    by 0x4993BF: Perl_runops_debug (dump.c:1459)
==4137==    by 0x425351: S_call_body (perl.c:2731)
==4137==    by 0x424DAA: Perl_call_sv (perl.c:2646)
==4137== 
==4137== 
==4137== 13,910 bytes in 12 blocks are still reachable in loss record 9 of 9
==4137==    at 0x4A1FB37: calloc (vg_replace_malloc.c:279)
==4137==    by 0x400A0E4: (within /lib/ld-2.4.so)
==4137==    by 0x4005F94: (within /lib/ld-2.4.so)
==4137==    by 0x40081D5: (within /lib/ld-2.4.so)
==4137==    by 0x401119C: (within /lib/ld-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4010C0A: (within /lib/ld-2.4.so)
==4137==    by 0x4B251A9: (within /lib/libdl-2.4.so)
==4137==    by 0x400D1E5: (within /lib/ld-2.4.so)
==4137==    by 0x4B2571C: (within /lib/libdl-2.4.so)
==4137==    by 0x4B25120: dlopen (in /lib/libdl-2.4.so)
==4137==    by 0x41DEF8: XS_DynaLoader_dl_load_file (DynaLoader.xs:191)
==4137== 
==4137== LEAK SUMMARY:
==4137==    definitely lost: 10,730 bytes in 455 blocks.
==4137==      possibly lost: 0 bytes in 0 blocks.
==4137==    still reachable: 16,508 bytes in 61 blocks.
==4137==         suppressed: 0 bytes in 0 blocks.
--4137--  memcheck: sanity checks: 2810 cheap, 113 expensive
--4137--  memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--4137--  memcheck: auxmaps: 0 searches, 0 comparisons
--4137--  memcheck: SMs: n_issued      = 6761 (108176k, 105M)
--4137--  memcheck: SMs: n_deissued    = 6196 (99136k, 96M)
--4137--  memcheck: SMs: max_noaccess  = 524287 (8388592k, 8191M)
--4137--  memcheck: SMs: max_undefined = 75 (1200k, 1M)
--4137--  memcheck: SMs: max_defined   = 375 (6000k, 5M)
--4137--  memcheck: SMs: max_non_DSM   = 598 (9568k, 9M)
--4137--  memcheck: max sec V bit nodes:    19 (1k, 0M)
--4137--  memcheck: set_sec_vbits8 calls: 892 (new: 19, updates: 873)
--4137--  memcheck: max shadow mem size:   13713k, 13M
--4137-- translate:            fast SP updates identified: 28,418 ( 85.0%)
--4137-- translate:   generic_known SP updates identified: 3,314 (  9.9%)
--4137-- translate: generic_unknown SP updates identified: 1,685 (  5.0%)
--4137--     tt/tc: 2,093,137 tt lookups requiring 2,538,048 probes
--4137--     tt/tc: 2,093,137 fast-cache updates, 2 flushes
--4137--  transtab: new        33,464 (1,010,028 -> 17,717,959; ratio 175:10) [0 scs]
--4137--  transtab: dumped     0 (0 -> ??)
--4137--  transtab: discarded  0 (0 -> ??)
--4137-- scheduler: 281,017,496 jumps (bb entries).
--4137-- scheduler: 2,810/3,302,520 major/minor sched events.
--4137--    sanity: 2811 cheap, 113 expensive checks.
--4137--    exectx: 30,011 lists, 10,240 contexts (avg 0 per list)
--4137--    exectx: 1,196,788 searches, 6,697,839 full compares (5,596 per 1000)
--4137--    exectx: 677 cmp2, 1,017 cmp4, 0 cmpAll


More information about the kinosearch mailing list