[pkg-fetchmail-maint] Bug#688015: Bug#688015: memory leak

Dominik dominiks.mail at gmx.net
Wed Dec 12 20:17:04 UTC 2012


Hi,

I used the latest fetchmail release for around 3 days. Now I start the 
stable release of fetchmail with Valgrind for a longer time.
Hope this will help.

This are the Valgrind results:

==11032== Memcheck, a memory error detector
==11032== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==11032== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for 
copyright info
==11032== Command: /usr/local/fetchmail-6.3.22/bin/fetchmail --nodetach 
-d 90 -f /var/mail/dominik/.fetchmailrc
==11032== Parent PID: 8458
==11032==
--11032--
--11032-- Valgrind options:
--11032--    --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp
--11032--    --tool=memcheck
--11032--    -v
--11032--    --leak-check=full
--11032--    --log-file=/var/mail/dominik/.valgrind.log
--11032-- Contents of /proc/version:
--11032--   Linux version 2.6.32-5-amd64 (Debian 2.6.32-46) 
(dannf at debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Sun Sep 
23 10:07:46 UTC 2012
--11032-- Arch and hwcaps: AMD64, amd64-sse3-cx16-lzcnt
--11032-- Page sizes: currently 4096, max supported 4096
--11032-- Valgrind library directory: /usr/lib/valgrind
--11032-- Reading syms from /usr/local/fetchmail-6.3.22/bin/fetchmail 
(0x400000)
--11032-- Reading syms from /lib/ld-2.11.3.so (0x4000000)
--11032--   Considering /lib/ld-2.11.3.so ..
--11032--   .. CRC mismatch (computed e1ef7574 wanted d51f0f40)
--11032--   Considering /usr/lib/debug/lib/ld-2.11.3.so ..
--11032--   .. CRC is valid
--11032-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux 
(0x38000000)
--11032--    object doesn't have a dynamic symbol table
--11032-- Reading suppressions file: /usr/lib/valgrind/debian-libc6-dbg.supp
--11032-- Reading suppressions file: /usr/lib/valgrind/default.supp
--11032-- REDIR: 0x4016660 (strlen) redirected to 0x380408a7 
(vgPlain_amd64_linux_REDIR_FOR_strlen)
--11032-- Reading syms from 
/usr/lib/valgrind/vgpreload_core-amd64-linux.so (0x4a20000)
--11032-- Reading syms from 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so (0x4c21000)
==11032== WARNING: new redirection conflicts with existing -- ignoring it
--11032--     new: 0x04016660 (strlen              ) R-> 0x04c25850 strlen
--11032-- REDIR: 0x40164d0 (index) redirected to 0x4c25460 (index)
--11032-- REDIR: 0x4016550 (strcmp) redirected to 0x4c25e30 (strcmp)
--11032-- Reading syms from /lib/libcrypt-2.11.3.so (0x4e29000)
--11032--   Considering /lib/libcrypt-2.11.3.so ..
--11032--   .. CRC mismatch (computed 5b9891dc wanted c18dc05b)
--11032--   Considering /usr/lib/debug/lib/libcrypt-2.11.3.so ..
--11032--   .. CRC is valid
--11032-- Reading syms from /lib/libresolv-2.11.3.so (0x5060000)
--11032--   Considering /lib/libresolv-2.11.3.so ..
--11032--   .. CRC mismatch (computed d983d8c5 wanted 92bd6d14)
--11032--   Considering /usr/lib/debug/lib/libresolv-2.11.3.so ..
--11032--   .. CRC is valid
--11032-- Reading syms from /usr/lib/libssl.so.0.9.8 (0x5276000)
--11032--   Considering /usr/lib/libssl.so.0.9.8 ..
--11032--   .. CRC mismatch (computed be061654 wanted 6135bd07)
--11032--    object doesn't have a symbol table
--11032-- Reading syms from /usr/lib/libcrypto.so.0.9.8 (0x54cb000)
--11032--   Considering /usr/lib/libcrypto.so.0.9.8 ..
--11032--   .. CRC mismatch (computed aa37b350 wanted 221e543c)
--11032--    object doesn't have a symbol table
--11032-- Reading syms from /lib/libc-2.11.3.so (0x586c000)
--11032--   Considering /lib/libc-2.11.3.so ..
--11032--   .. CRC mismatch (computed 2137ef5d wanted 0a691870)
--11032--   Considering /usr/lib/debug/lib/libc-2.11.3.so ..
--11032--   .. CRC is valid
--11032-- Reading syms from /lib/libdl-2.11.3.so (0x5bce000)
--11032--   Considering /lib/libdl-2.11.3.so ..
--11032--   .. CRC mismatch (computed abc91181 wanted fe19b8f3)
--11032--   Considering /usr/lib/debug/lib/libdl-2.11.3.so ..
--11032--   .. CRC is valid
--11032-- Reading syms from /usr/lib/libz.so.1.2.3.4 (0x5dd2000)
--11032--   Considering /usr/lib/libz.so.1.2.3.4 ..
--11032--   .. CRC mismatch (computed 0a075546 wanted f0d5aa81)
--11032--    object doesn't have a symbol table
--11032-- REDIR: 0x58e64b0 (strcmp) redirected to 0x4a205ac 
(_vgnU_ifunc_wrapper)
==11032== WARNING: new redirection conflicts with existing -- ignoring it
--11032--     new: 0x058e64f0 (__GI_strcmp         ) R-> 0x04c25d90 strcmp
--11032-- REDIR: 0x58e99e0 (__GI_strrchr) redirected to 0x4c25280 
(__GI_strrchr)
--11032-- REDIR: 0x58e7f20 (__GI_strlen) redirected to 0x4c25810 
(__GI_strlen)
--11032-- REDIR: 0x58e8130 (__GI_strncmp) redirected to 0x4c25d20 
(__GI_strncmp)
--11032-- REDIR: 0x58e99b0 (rindex) redirected to 0x4a205ac 
(_vgnU_ifunc_wrapper)
==11032== WARNING: new redirection conflicts with existing -- ignoring it
--11032--     new: 0x058e99e0 (__GI_strrchr        ) R-> 0x04c25250 rindex
--11032-- REDIR: 0x58e2c00 (malloc) redirected to 0x4c24466 (malloc)
--11032-- REDIR: 0x58ebb30 (memcpy) redirected to 0x4c25f00 (memcpy)
--11032-- REDIR: 0x58ea720 (memset) redirected to 0x4c26a70 (memset)
--11032-- REDIR: 0x58e64f0 (__GI_strcmp) redirected to 0x4c25de0 
(__GI_strcmp)
--11032-- REDIR: 0x58e7ef0 (strlen) redirected to 0x4a205ac 
(_vgnU_ifunc_wrapper)
==11032== WARNING: new redirection conflicts with existing -- ignoring it
--11032--     new: 0x058e7f20 (__GI_strlen         ) R-> 0x04c257f0 strlen
--11032-- REDIR: 0x58e7940 (strcpy) redirected to 0x4a205ac 
(_vgnU_ifunc_wrapper)
==11032== WARNING: new redirection conflicts with existing -- ignoring it
--11032--     new: 0x058e7970 (__GI_strcpy         ) R-> 0x04c25870 strcpy
--11032-- REDIR: 0x58e7970 (__GI_strcpy) redirected to 0x4c25940 
(__GI_strcpy)
--11032-- REDIR: 0x58e6430 (__GI_strchr) redirected to 0x4c25360 
(__GI_strchr)
--11032-- REDIR: 0x58e2b20 (free) redirected to 0x4c24076 (free)
--11032-- REDIR: 0x58ecf10 (strchrnul) redirected to 0x4c26b50 (strchrnul)
--11032-- REDIR: 0x58e6400 (index) redirected to 0x4a205ac 
(_vgnU_ifunc_wrapper)
==11032== WARNING: new redirection conflicts with existing -- ignoring it
--11032--     new: 0x058e6430 (__GI_strchr         ) R-> 0x04c25320 index
--11032-- REDIR: 0xffffffffff600400 (???) redirected to 0x3804089d 
(vgPlain_amd64_linux_REDIR_FOR_vtime)
--11032-- REDIR: 0x58eb890 (__GI_stpcpy) redirected to 0x4c26800 
(__GI_stpcpy)
--11032-- REDIR: 0x58eb250 (mempcpy) redirected to 0x4c26bc0 (mempcpy)
--11032-- REDIR: 0x58ecec0 (__GI___rawmemchr) redirected to 0x4c26ba0 
(__GI___rawmemchr)
--11032-- REDIR: 0x58ea0e0 (memchr) redirected to 0x4c25ed0 (memchr)
--11032-- REDIR: 0x58ea160 (bcmp) redirected to 0x4c26690 (bcmp)
--11032-- REDIR: 0x58e3c50 (realloc) redirected to 0x4c24517 (realloc)
--11032-- REDIR: 0x58e9980 (strncpy) redirected to 0x4a205ac 
(_vgnU_ifunc_wrapper)
==11032== WARNING: new redirection conflicts with existing -- ignoring it
--11032--     new: 0x058f0110 (__GI_strncpy        ) R-> 0x04c25a10 strncpy
--11032-- REDIR: 0x58f0110 (__GI_strncpy) redirected to 0x4c25b60 
(__GI_strncpy)
==11032== WARNING: new redirection conflicts with existing -- ignoring it
--11032--     new: 0x058e64f0 (__GI_strcmp         ) R-> 0x04c25d90 strcmp
--11032-- REDIR: 0x58e80f0 (strncmp) redirected to 0x4a205ac 
(_vgnU_ifunc_wrapper)
==11032== WARNING: new redirection conflicts with existing -- ignoring it
--11032--     new: 0x058e8130 (__GI_strncmp        ) R-> 0x04c25cb0 strncmp
==11032== WARNING: new redirection conflicts with existing -- ignoring it
--11032--     new: 0x058e7f20 (__GI_strlen         ) R-> 0x04c257f0 strlen
--11032-- REDIR: 0x58ea560 (memmove) redirected to 0x4c26ae0 (memmove)
==11032== WARNING: new redirection conflicts with existing -- ignoring it
--11032--     new: 0x058e8130 (__GI_strncmp        ) R-> 0x04c25cb0 strncmp
==11032== WARNING: new redirection conflicts with existing -- ignoring it
--11032--     new: 0x058f0110 (__GI_strncpy        ) R-> 0x04c25a10 strncpy
==11032==
==11032== HEAP SUMMARY:
==11032==     in use at exit: 8,461,458 bytes in 214,654 blocks
==11032==   total heap usage: 15,225,187 allocs, 15,010,533 frees, 
2,144,508,780 bytes allocated
==11032==
==11032== Searching for pointers to 214,654 not-freed blocks
==11032== Checked 6,145,504 bytes
==11032==
==11032== 14 bytes in 1 blocks are possibly lost in loss record 6 of 506
==11032==    at 0x4C244E8: malloc (vg_replace_malloc.c:236)
==11032==    by 0x55469E1: CRYPTO_malloc (in /usr/lib/libcrypto.so.0.9.8)
==11032==    by 0x55CC456: ASN1_STRING_set (in /usr/lib/libcrypto.so.0.9.8)
==11032==    by 0x55C3A32: asn1_ex_c2i (in /usr/lib/libcrypto.so.0.9.8)
==11032==    by 0x55C440A: ??? (in /usr/lib/libcrypto.so.0.9.8)
==11032==    by 0x55C4BC9: ASN1_item_ex_d2i (in /usr/lib/libcrypto.so.0.9.8)
==11032==    by 0x55C531A: ??? (in /usr/lib/libcrypto.so.0.9.8)
==11032==    by 0x55C568B: ??? (in /usr/lib/libcrypto.so.0.9.8)
==11032==    by 0x55C4981: ASN1_item_ex_d2i (in /usr/lib/libcrypto.so.0.9.8)
==11032==    by 0x55C546E: ??? (in /usr/lib/libcrypto.so.0.9.8)
==11032==    by 0x55C568B: ??? (in /usr/lib/libcrypto.so.0.9.8)
==11032==    by 0x55C4C98: ASN1_item_ex_d2i (in /usr/lib/libcrypto.so.0.9.8)
==11032==
==11032== 755,998 (212,256 direct, 543,742 indirect) bytes in 13,266 
blocks are definitely lost in loss record 505 of 506
==11032==    at 0x4C244E8: malloc (vg_replace_malloc.c:236)
==11032==    by 0x55469E1: CRYPTO_malloc (in /usr/lib/libcrypto.so.0.9.8)
==11032==    by 0x55C21B4: ??? (in /usr/lib/libcrypto.so.0.9.8)
==11032==    by 0x55C5007: ASN1_item_ex_d2i (in /usr/lib/libcrypto.so.0.9.8)
==11032==    by 0x55C546E: ??? (in /usr/lib/libcrypto.so.0.9.8)
==11032==    by 0x55C568B: ??? (in /usr/lib/libcrypto.so.0.9.8)
==11032==    by 0x55C4C98: ASN1_item_ex_d2i (in /usr/lib/libcrypto.so.0.9.8)
==11032==    by 0x55C5803: ASN1_item_d2i (in /usr/lib/libcrypto.so.0.9.8)
==11032==    by 0x55DDE2B: X509V3_EXT_d2i (in /usr/lib/libcrypto.so.0.9.8)
==11032==    by 0x40483A: SSL_verify_callback (socket.c:668)
==11032==    by 0x55D600F: ??? (in /usr/lib/libcrypto.so.0.9.8)
==11032==    by 0x55D6881: X509_verify_cert (in /usr/lib/libcrypto.so.0.9.8)
==11032==
==11032== LEAK SUMMARY:
==11032==    definitely lost: 212,256 bytes in 13,266 blocks
==11032==    indirectly lost: 543,742 bytes in 26,524 blocks
==11032==      possibly lost: 14 bytes in 1 blocks
==11032==    still reachable: 7,705,446 bytes in 174,863 blocks
==11032==         suppressed: 0 bytes in 0 blocks
==11032== Reachable blocks (those to which a pointer was found) are not 
shown.
==11032== To see them, rerun with: --leak-check=full --show-reachable=yes
==11032==
==11032== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 4 from 4)
--11032--
--11032-- used_suppression:      2 dl-hack3-cond-1
--11032-- used_suppression:      2 glibc-2.5.x-on-SUSE-10.2-(PPC)-2a
==11032==
==11032== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 4 from 4)


cheers
     ~Dominik



More information about the pkg-fetchmail-maint mailing list