[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#3938) out of memory leak causes segfault




--On Monday, August 15, 2005 2:59 AM +0000 openldap-its@OpenLDAP.org wrote:

valgrind says:

==24033== Addrcheck, a fine-grained address checker for x86-linux.
==24033== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==24033== Using valgrind-2.4.0, a program supervision framework for 
x86-linux.
==24033== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==24033== Valgrind library directory: /usr/lib/valgrind
==24033== Command line
==24033==    /usr/local/lib/slapd
==24033==    -h
==24033==    ldap:/// ldaps:///
==24033== Startup, with flags:
==24033==    -v
==24033==    --tool=addrcheck
==24033==    --trace-children=yes
==24033==    --leak-check=full
==24033== Contents of /proc/version:
==24033==   Linux version 2.4.27-2-686-smp 
(horms@charles.lab.ultramonkey.org) (gcc version 3.3.5 (Debian 1:3.3.5-6)) 
#1 SMP Thu Jan 20 11:02:39 JST 2005
==24033== Reading syms from /usr/local/stow/openldap-2.3.5/lib/slapd 
(0x8048000)
==24033== Reading syms from /lib/ld-2.3.2.so (0x3412A000)
==24033==    object doesn't have a symbol table
==24033== Reading debug info from /lib/ld-2.3.2.so...
==24033== ... CRC mismatch (computed E7117123 wanted 4ECF6D33)
==24033==    object doesn't have any debug info
==24033== Reading syms from /usr/lib/valgrind/stage2 (0xB0000000)
==24033== Reading syms from /lib/ld-2.3.2.so (0xB1000000)
==24033==    object doesn't have a symbol table
==24033== Reading debug info from /lib/ld-2.3.2.so...
==24033== ... CRC mismatch (computed E7117123 wanted 4ECF6D33)
==24033==    object doesn't have any debug info
==24033== Reading syms from /lib/libdl-2.3.2.so (0xB101B000)
==24033==    object doesn't have a symbol table
==24033== Reading debug info from /lib/libdl-2.3.2.so...
==24033== ... CRC mismatch (computed 6F61513E wanted 280D08E5)
==24033==    object doesn't have any debug info
==24033== Reading syms from /lib/libc-2.3.2.so (0xB101E000)
==24033==    object doesn't have a symbol table
==24033== Reading debug info from /lib/libc-2.3.2.so...
==24033== ... CRC mismatch (computed 76EC50B6 wanted 52619D67)
==24033==    object doesn't have any debug info
==24033== Reading syms from /usr/lib/valgrind/vgskin_addrcheck.so 
(0xB1251000)
==24033== Reading suppressions file: /usr/lib/valgrind/default.supp
==24033==
==24033== Reading syms from /usr/lib/valgrind/vg_inject.so (0x34144000)
==24033== Reading syms from /usr/lib/valgrind/vgpreload_addrcheck.so 
(0x34147000)
==24033== Reading syms from 
/usr/local/stow/openldap-2.3.5/lib/liblrewrite-2.3.so.0.1.0 (0x3414F000)
==24033== Reading syms from 
/usr/local/stow/openldap-2.3.5/lib/libldap_r-2.3.so.0.1.0 (0x3415D000)
==24033== Reading syms from 
/usr/local/stow/openldap-2.3.5/lib/liblber-2.3.so.0.1.0 (0x3419A000)
==24033== Reading syms from /usr/local/stow/db4-4.2.52.5/lib/libdb-4.2.so 
(0x341A7000)
==24033== Reading syms from 
/usr/local/stow/cyrus-sasl-2.1.21/lib/libsasl2.so.2.0.21 (0x34267000)
==24033== Reading syms from 
/usr/local/stow/openssl-0.9.7g/lib/libssl.so.0.9.7 (0x3427D000)
==24033== Reading syms from 
/usr/local/stow/openssl-0.9.7g/lib/libcrypto.so.0.9.7 (0x342AC000)
==24033== Reading syms from /lib/libresolv-2.3.2.so (0x343AA000)
==24033==    object doesn't have a symbol table
==24033== Reading debug info from /lib/libresolv-2.3.2.so...
==24033== ... CRC mismatch (computed DEFBF7B3 wanted 9E7873B3)
==24033==    object doesn't have any debug info
==24033== Reading syms from /lib/libpthread-0.10.so (0x343BD000)
==24033== Reading debug info from /lib/libpthread-0.10.so...
==24033== ... CRC mismatch (computed B767E120 wanted 5963E353)
==24033==    object doesn't have any debug info
==24033== Reading syms from /lib/libc-2.3.2.so (0x3440F000)
==24033==    object doesn't have a symbol table
==24033== Reading debug info from /lib/libc-2.3.2.so...
==24033== ... CRC mismatch (computed 76EC50B6 wanted 52619D67)
==24033==    object doesn't have any debug info
==24033== Reading syms from /lib/libdl-2.3.2.so (0x34543000)
==24033==    object doesn't have a symbol table
==24033== Reading debug info from /lib/libdl-2.3.2.so...
==24033== ... CRC mismatch (computed 6F61513E wanted 280D08E5)
==24033==    object doesn't have any debug info
==24033== TRANSLATE: 0x3447FF20 redirected to 0x3414A510
==24033== TRANSLATE: 0x344800E0 redirected to 0x3414AA82
==24033== TRANSLATE: 0x34480710 redirected to 0x3414AEE2
==24033== Reading syms from /lib/libnss_files-2.3.2.so (0x3464A000)
==24033==    object doesn't have a symbol table
==24033== Reading debug info from /lib/libnss_files-2.3.2.so...
==24033== ... CRC mismatch (computed 2B43E97F wanted 866E3713)
==24033==    object doesn't have any debug info
==24033== TRANSLATE: 0x344801A0 redirected to 0x3414AFA1
==24033== Reading syms from 
/usr/local/stow/cyrus-sasl-2.1.21/lib/sasl2/libgssapiv2.so.2.0.21 
(0x34654000)
==24033== Reading syms from 
/usr/local/stow/heimdal-0.7/lib/libgssapi.so.4.0.0 (0x3465C000)
==24033== Reading syms from 
/usr/local/stow/heimdal-0.7/lib/libkrb5.so.17.4.0 (0x34675000)
==24033== Reading syms from 
/usr/local/stow/heimdal-0.7/lib/libasn1.so.6.1.0 (0x346C1000)
==24033== Reading syms from 
/usr/local/stow/heimdal-0.7/lib/libroken.so.16.1.0 (0x346F2000)
==24033== Reading syms from /lib/libcrypt-2.3.2.so (0x34706000)
==24033==    object doesn't have a symbol table
==24033== Reading debug info from /lib/libcrypt-2.3.2.so...
==24033== ... CRC mismatch (computed 280D4911 wanted 981240B0)
==24033==    object doesn't have any debug info
==24033== Reading syms from 
/usr/local/stow/heimdal-0.7/lib/libcom_err.so.1.1.1 (0x34734000)
==24033== Reading syms from 
/usr/local/stow/cyrus-sasl-2.1.21/lib/sasl2/libplain.so.2.0.21 (0x34739000)
==24033== Reading syms from 
/usr/local/stow/cyrus-sasl-2.1.21/lib/sasl2/liblogin.so.2.0.21 (0x3473F000)
==24033== discard syms at 0x3464A000-0x34653000 in 
/lib/libnss_files-2.3.2.so due to munmap()
==24033==
==24033== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==24033== malloc/free: in use at exit: 233063 bytes in 9322 blocks.
==24033== malloc/free: 14749 allocs, 5427 frees, 580895 bytes allocated.
==24033==
==24033== searching for pointers to 9322 not-freed blocks.
==24033== checked 1116592 bytes.
==24033==
==24033== LEAK SUMMARY:
==24033==    definitely lost: 0 bytes in 0 blocks.
==24033==      possibly lost: 0 bytes in 0 blocks.
==24033==    still reachable: 233063 bytes in 9322 blocks.
==24033==         suppressed: 0 bytes in 0 blocks.
==24033== Reachable blocks (those to which a pointer was found) are not 
shown.
==24033== To see them, rerun with: --show-reachable=yes
--24033--     TT/TC: 0 tc sectors discarded.
--24033--            34575 tt_fast misses.
--24033-- translate: new     10684 (162596 -> 1203664; ratio 74:10)
--24033--            discard 159 (2059 -> 16412; ratio 79:10).
--24033-- chainings: 7520 chainings, 0 unchainings.
--24033--  dispatch: 14004777 jumps (bb entries); of them 2561228 (18%) 
unchained.
--24033--            281/53548 major/minor sched events.
--24033-- reg-alloc: 38 t-req-spill, 217843+96 orig+spill uis,
--24033--            25858 total-reg-rank
--24033--    sanity: 282 cheap, 12 expensive checks.
--24033--    ccalls: 38667 C calls, 60% saves+restores avoided (137670 
bytes)
--24033--            38667 args, avg 0.68 setup instrs each (24326 bytes)
--24033--            0% clear the stack (116001 bytes)
--24033--            0 retvals, 100% of reg-reg movs avoided (0 bytes)
==24034== Warning: set address range perms: large range 1073741824, a 0
==24037==
==24037== Process terminating with default action of signal 6 (SIGABRT)
==24037==    at 0x344387C1: kill (in /lib/libc-2.3.2.so)
==24037==    by 0x343C5A7A: raise (in /lib/libpthread-0.10.so)
==24037==    by 0x34438553: raise (in /lib/libc-2.3.2.so)
==24037==    by 0x34439A87: abort (in /lib/libc-2.3.2.so)
==24037==    by 0x34431BBE: __assert_fail (in /lib/libc-2.3.2.so)
==24037==    by 0x807828C: ch_malloc (ch_malloc.c:57)
==24037==    by 0x80E12C8: bdb_idl_cache_put (idl.c:332)
==24037==    by 0x80E1BED: bdb_idl_fetch_key (idl.c:595)
==24037==    by 0x80E3E2B: bdb_key_read (key.c:50)
==24037==    by 0x80DF151: equality_candidates (filterindex.c:694)
==24037==    by 0x80DE61E: bdb_filter_candidates (filterindex.c:139)
==24037==    by 0x80DE770: list_candidates (filterindex.c:506)
==24034== discard syms at 0x3464A000-0x34653000 in 
/lib/libnss_files-2.3.2.so due to munmap()
==24034==
==24034== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==24034== malloc/free: in use at exit: 567203165 bytes in 1521793 blocks.
==24034== malloc/free: 2285149 allocs, 763350 frees, 593065783 bytes 
allocated.
==24034==
==24034== searching for pointers to 1521793 not-freed blocks.
==24034== checked 577884128 bytes.
==24034==
==24034== LEAK SUMMARY:
==24034==    definitely lost: 0 bytes in 0 blocks.
==24034==      possibly lost: 0 bytes in 0 blocks.
==24034==    still reachable: 567203165 bytes in 1521793 blocks.
==24034==         suppressed: 0 bytes in 0 blocks.
==24034== Reachable blocks (those to which a pointer was found) are not 
shown.
==24034== To see them, rerun with: --show-reachable=yes
--24034--     TT/TC: 0 tc sectors discarded.
--24034--            14587299 tt_fast misses.
--24034-- translate: new     19642 (306064 -> 2228793; ratio 72:10)
--24034--            discard 159 (2059 -> 16412; ratio 79:10).
--24034-- chainings: 15154 chainings, 0 unchainings.
--24034--  dispatch: 17640102239 jumps (bb entries); of them 2148247531 
(12%) unchained.
--24034--            372753/20832354 major/minor sched events.
--24034-- reg-alloc: 80 t-req-spill, 402072+198 orig+spill uis,
--24034--            48056 total-reg-rank
--24034--    sanity: 372754 cheap, 14911 expensive checks.
--24034--    ccalls: 71157 C calls, 59% saves+restores avoided (249584 
bytes)
--24034--            71163 args, avg 0.69 setup instrs each (43494 bytes)
--24034--            0% clear the stack (213471 bytes)
--24034--            0 retvals, 100% of reg-reg movs avoided (0 bytes)




--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin