merovingien@MEROVINGIEN:~/IPI/trunk/src/outils$ valgrind -v --leak-check=full ./test_messages
==7003== Memcheck, a memory error detector.
==7003== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==7003== Using LibVEX rev 1804, a library for dynamic binary translation.
==7003== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==7003== Using valgrind-3.3.0-Debian, a dynamic binary instrumentation framework.
==7003== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==7003==
--7003-- Command line
--7003-- ./test_messages
--7003-- Startup, with flags:
--7003-- --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp
--7003-- -v
--7003-- --leak-check=full
--7003-- Contents of /proc/version:
--7003-- Linux version 2.6.24-16-generic (buildd@palmer) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Thu Apr 10 13:23:42 UTC 2008
--7003-- Arch and hwcaps: X86, x86-sse1-sse2
--7003-- Page sizes: currently 4096, max supported 4096
--7003-- Valgrind library directory: /usr/lib/valgrind
--7003-- Reading syms from /lib/ld-2.7.so (0x4000000)
--7003-- Reading debug info from /lib/ld-2.7.so...
--7003-- ... CRC mismatch (computed b93a03d2 wanted 46e85b4d)
--7003-- object doesn't have a symbol table
--7003-- Reading syms from /home/merovingien/IPI/trunk/src/outils/test_messages (0x8048000)
--7003-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000)
--7003-- object doesn't have a dynamic symbol table
--7003-- Reading suppressions file: /usr/lib/valgrind/debian-libc6-dbg.supp
--7003-- Reading suppressions file: /usr/lib/valgrind/default.supp
--7003-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x401E000)
--7003-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4020000)
--7003-- Reading syms from /usr/lib/libglib-2.0.so.0.1600.3 (0x403C000)
--7003-- Reading debug info from /usr/lib/libglib-2.0.so.0.1600.3...
--7003-- ... CRC mismatch (computed d3af26a6 wanted 4d2fc052)
--7003-- object doesn't have a symbol table
--7003-- Reading syms from /lib/tls/i686/cmov/libc-2.7.so (0x40ED000)
--7003-- Reading debug info from /lib/tls/i686/cmov/libc-2.7.so...
--7003-- ... CRC mismatch (computed 5861e7f6 wanted 741a7509)
--7003-- object doesn't have a symbol table
--7003-- Reading syms from /usr/lib/libpcre.so.3.12.1 (0x423D000)
--7003-- Reading debug info from /usr/lib/libpcre.so.3.12.1...
--7003-- ... CRC mismatch (computed 49bb7508 wanted 137ea89b)
--7003-- object doesn't have a symbol table
--7003-- Reading syms from /lib/libselinux.so.1 (0x4264000)
--7003-- Reading debug info from /lib/libselinux.so.1...
--7003-- ... CRC mismatch (computed 14e9a82e wanted 7881f7e5)
--7003-- object doesn't have a symbol table
--7003-- Reading syms from /lib/tls/i686/cmov/libdl-2.7.so (0x427D000)
--7003-- Reading debug info from /lib/tls/i686/cmov/libdl-2.7.so...
--7003-- ... CRC mismatch (computed fac4a183 wanted 83d3211b)
--7003-- object doesn't have a symbol table
--7003-- REDIR: 0x415f620 (rindex) redirected to 0x4023710 (rindex)
--7003-- REDIR: 0x415ac20 (malloc) redirected to 0x4022a50 (malloc)
--7003-- REDIR: 0x415c460 (free) redirected to 0x40225f0 (free)
--7003-- REDIR: 0x41613a0 (strchrnul) redirected to 0x4023df0 (strchrnul)
--7003-- REDIR: 0x415f250 (strlen) redirected to 0x40239d0 (strlen)
--7003-- REDIR: 0x41609a0 (memcpy) redirected to 0x4024aa0 (memcpy)
--7003-- REDIR: 0x4160510 (mempcpy) redirected to 0x4024490 (mempcpy)
--7003-- REDIR: 0x415c650 (realloc) redirected to 0x4022b10 (realloc)
--7003-- REDIR: 0x415ffb0 (memchr) redirected to 0x4023bf0 (memchr)
--7003-- REDIR: 0x415ebb0 (index) redirected to 0x4023800 (index)
--7003-- REDIR: 0x415ed90 (strcpy) redirected to 0x4024d10 (strcpy)
--7003-- REDIR: 0x415ed20 (strcmp) redirected to 0x4023aa0 (strcmp)
--7003-- REDIR: 0x41604b0 (memset) redirected to 0x4023d50 (memset)
--7003-- REDIR: 0x41612d0 (rawmemchr) redirected to 0x4023e20 (rawmemchr)
--7003-- REDIR: 0x415f450 (strncmp) redirected to 0x4023a30 (strncmp)
--7003-- REDIR: 0x415f300 (strnlen) redirected to 0x40239a0 (strnlen)
--7003-- REDIR: 0x41606a0 (stpcpy) redirected to 0x4024730 (stpcpy)
--7003-- REDIR: 0x415a930 (calloc) redirected to 0x4021b70 (calloc)
--7003-- REDIR: 0x415af60 (posix_memalign) redirected to 0x4021b10 (posix_memalign)
--7003-- Reading syms from /usr/lib/gconv/ISO8859-1.so (0x4038000)
--7003-- Reading debug info from /usr/lib/gconv/ISO8859-1.so...
--7003-- ... CRC mismatch (computed 9c15f3ec wanted 8869bb49)
--7003-- object doesn't have a symbol table
[21/05/08 - 23:38:42] Erreur : Le message d'erreur numéro 1 !
[21/05/08 - 23:38:42] Attention : Attention, ça bouge !
[21/05/08 - 23:38:42] Note : Notez que ça marche...
--7003-- Discarding syms at 0x4038000-0x403B000 in /usr/lib/gconv/ISO8859-1.so due to munmap()
==7003==
==7003== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 21 from 1)
--7003--
--7003-- supp: 21 dl-hack3-1
==7003== malloc/free: in use at exit: 5,128 bytes in 15 blocks.
==7003== malloc/free: 1,564 allocs, 1,549 frees, 176,599 bytes allocated.
==7003==
==7003== searching for pointers to 15 not-freed blocks.
==7003== checked 93,284 bytes.
==7003==
==7003== 744 bytes in 3 blocks are possibly lost in loss record 3 of 5
==7003== at 0x4021A92: memalign (vg_replace_malloc.c:460)
==7003== by 0x4021B3F: posix_memalign (vg_replace_malloc.c:569)
==7003== by 0x4090103: (within /usr/lib/libglib-2.0.so.0.1600.3)
==7003== by 0x4091330: g_slice_alloc (in /usr/lib/libglib-2.0.so.0.1600.3)
==7003== by 0x404E50E: g_array_sized_new (in /usr/lib/libglib-2.0.so.0.1600.3)
==7003== by 0x404E616: g_array_new (in /usr/lib/libglib-2.0.so.0.1600.3)
==7003== by 0x409C39F: g_static_private_set (in /usr/lib/libglib-2.0.so.0.1600.3)
==7003== by 0x40A2DC0: g_get_charset (in /usr/lib/libglib-2.0.so.0.1600.3)
==7003== by 0x8048A88: prepare_chaine (outils_messages.c:158)
==7003== by 0x8048780: outils_messages_printErreur (outils_messages.c:65)
==7003== by 0x8048B1C: main (test_outils_messages.c:7)
==7003==
==7003== LEAK SUMMARY:
==7003== definitely lost: 0 bytes in 0 blocks.
==7003== possibly lost: 744 bytes in 3 blocks.
==7003== still reachable: 4,384 bytes in 12 blocks.
==7003== suppressed: 0 bytes in 0 blocks.
==7003== Reachable blocks (those to which a pointer was found) are not shown.
==7003== To see them, rerun with: --leak-check=full --show-reachable=yes
--7003-- memcheck: sanity checks: 6 cheap, 2 expensive
--7003-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--7003-- memcheck: auxmaps_L1: 0 searches, 0 cmps, ratio 0:10
--7003-- memcheck: auxmaps_L2: 0 searches, 0 nodes
--7003-- memcheck: SMs: n_issued = 19 (304k, 0M)
--7003-- memcheck: SMs: n_deissued = 0 (0k, 0M)
--7003-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M)
--7003-- memcheck: SMs: max_undefined = 0 (0k, 0M)
--7003-- memcheck: SMs: max_defined = 49 (784k, 0M)
--7003-- memcheck: SMs: max_non_DSM = 19 (304k, 0M)
--7003-- memcheck: max sec V bit nodes: 2 (0k, 0M)
--7003-- memcheck: set_sec_vbits8 calls: 2 (new: 2, updates: 0)
--7003-- memcheck: max shadow mem size: 608k, 0M
--7003-- translate: fast SP updates identified: 4,736 ( 90.0%)
--7003-- translate: generic_known SP updates identified: 311 ( 5.9%)
--7003-- translate: generic_unknown SP updates identified: 215 ( 4.0%)
--7003-- tt/tc: 9,052 tt lookups requiring 9,400 probes
--7003-- tt/tc: 9,052 fast-cache updates, 3 flushes
--7003-- transtab: new 4,381 (92,071 -> 1,351,372; ratio 146:10) [0 scs]
--7003-- transtab: dumped 0 (0 -> ??)
--7003-- transtab: discarded 54 (1,067 -> ??)
--7003-- scheduler: 644,642 jumps (bb entries).
--7003-- scheduler: 6/8,013 major/minor sched events.
--7003-- sanity: 7 cheap, 2 expensive checks.
--7003-- exectx: 769 lists, 182 contexts (avg 0 per list)
--7003-- exectx: 3,128 searches, 2,967 full compares (948 per 1000)
--7003-- exectx: 19 cmp2, 55 cmp4, 0 cmpAll
--7003-- errormgr: 13 supplist searches, 447 comparisons during search
--7003-- errormgr: 21 errlist searches, 55 comparisons during search
Partager