Thanks for the last reply!
I was checking the simplest glib program continually. Now, I found the
leak-check could not give a summary of used suppression specifically. In my
default.supp file, there is a rule named "glib type registry", which is used
to suppress 20 blocks leak report. As I commented this rule, the 20 blocks
suppressed report will turn into 20 blocks possibly lost report. At the end
of execution, Valgrind only prints out one line for a rule named dl-hack3-1,
which is also used to suppress some errors, but Valgrind does not prints any
more information about "glib type registry" used by leak checking as manual
says.
I wander that if I missed any trick to get exact information about
suppression used by leak-check?
There is another thing I wander to know. While I commented the "glib type
registry" rule in the suppression file, Valgrind described the error
beginning with "800 bytes in 20 blocks are possibly lost in loss record 1 of
5". In my opinion, "1 of 5" means there were five leak errors, and this is
one of these, but Valgrind did not give out other four error further. where
are these four errors?
- Below is the "glib type registry" suppression rule.
# Glib stores pointers in an integral type. Bug#231989
{
glib type registry
Memcheck:Leak
fun:calloc
fun:g_malloc0
fun:type_node_any_new_W
}
- Below is the report used the "glib type registry" suppression rule.
==10440== Memcheck, a memory error detector.
==10440== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==10440== Using LibVEX rev 1804, a library for dynamic binary translation.
==10440== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==10440== Using valgrind-3.3.0-Debian, a dynamic binary instrumentation
framework.
==10440== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==10440==
--10440-- Command line
--10440-- ./empty_glib
--10440-- Startup, with flags:
--10440-- --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp
--10440-- --tool=memcheck
--10440-- --leak-check=full
--10440-- -v
--10440-- Contents of /proc/version:
--10440-- Linux version 2.6.24-24-generic (bui...@palmer) (gcc version
4.2.4 (Ubuntu 4.2.4-1ubuntu3)) #1 SMP Thu Feb 19 08:00:07 UTC 2009
--10440-- Arch and hwcaps: X86, x86-sse1-sse2
--10440-- Page sizes: currently 4096, max supported 4096
--10440-- Valgrind library directory: /usr/lib/valgrind
--10440-- Reading syms from /lib/ld-2.7.so (0x4000000)
--10440-- Reading debug info from /lib/ld-2.7.so...
--10440-- ... CRC mismatch (computed aa5c1346 wanted 05177b25)
--10440-- Reading debug info from /usr/lib/debug/lib/ld-2.7.so...
--10440-- Reading syms from
/home/abacan/workspace/projects/samples/gtk_valgrind/empty_glib (0x8048000)
--10440-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck
(0x38000000)
--10440-- object doesn't have a dynamic symbol table
--10440-- Reading suppressions file: /usr/lib/valgrind/debian-libc6-dbg.supp
--10440-- Reading suppressions file: /usr/lib/valgrind/default.supp
--10440-- REDIR: 0x4014fe0 (index) redirected to 0x3802a393
(vgPlain_x86_linux_REDIR_FOR_index)
--10440-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so
(0x401E000)
--10440-- Reading syms from
/usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4020000)
==10440== WARNING: new redirection conflicts with existing -- ignoring it
--10440-- new: 0x04014fe0 (index ) R-> 0x04023830 index
--10440-- REDIR: 0x40151b0 (strlen) redirected to 0x40239f0 (strlen)
--10440-- Reading syms from /usr/lib/libgobject-2.0.so.0.1600.6 (0x403F000)
--10440-- Reading debug info from /usr/lib/libgobject-2.0.so.0.1600.6...
--10440-- ... CRC mismatch (computed 76a00b4e wanted ea4c2d2b)
--10440-- Reading debug info from
/usr/lib/debug/usr/lib/libgobject-2.0.so.0.1600.6...
--10440-- Reading syms from /usr/lib/libglib-2.0.so.0.1600.6 (0x407B000)
--10440-- Reading debug info from /usr/lib/libglib-2.0.so.0.1600.6...
--10440-- ... CRC mismatch (computed 692724de wanted 5a93e4e0)
--10440-- Reading debug info from
/usr/lib/debug/usr/lib/libglib-2.0.so.0.1600.6...
--10440-- Reading syms from /usr/lib/debug/libc-2.7.so (0x412D000)
--10440-- Reading syms from /usr/lib/libpcre.so.3.12.1 (0x4266000)
--10440-- Reading debug info from /usr/lib/libpcre.so.3.12.1...
--10440-- ... CRC mismatch (computed 730fa5c2 wanted e5be5499)
--10440-- object doesn't have a symbol table
--10440-- REDIR: 0x419bb50 (rindex) redirected to 0x4023710 (rindex)
--10440-- REDIR: 0x419b780 (strlen) redirected to 0x40239d0 (strlen)
--10440-- REDIR: 0x419b980 (strncmp) redirected to 0x4023a30 (strncmp)
--10440-- REDIR: 0x419ba80 (strncpy) redirected to 0x4024bf0 (strncpy)
--10440-- REDIR: 0x4198820 (realloc) redirected to 0x4022b10 (realloc)
--10440-- REDIR: 0x41980e0 (calloc) redirected to 0x4021b70 (calloc)
--10440-- REDIR: 0x41983f0 (malloc) redirected to 0x4022a50 (malloc)
--10440-- REDIR: 0x419b210 (strcmp) redirected to 0x4023aa0 (strcmp)
--10440-- REDIR: 0x419cc90 (memcpy) redirected to 0x4024aa0 (memcpy)
--10440-- REDIR: 0x419c700 (memmove) redirected to 0x4023da0 (memmove)
--10440-- REDIR: 0x419b0a0 (index) redirected to 0x4023800 (index)
--10440-- REDIR: 0x419aef0 (strcat) redirected to 0x4024190 (strcat)
--10440-- REDIR: 0x4196870 (free) redirected to 0x40225f0 (free)
--10440-- REDIR: 0x419c7a0 (memset) redirected to 0x4023d50 (memset)
==10440==
==10440== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1)
--10440--
--10440-- supp: 17 dl-hack3-1
==10440== malloc/free: in use at exit: 12,868 bytes in 309 blocks.
==10440== malloc/free: 503 allocs, 194 frees, 187,652 bytes allocated.
==10440==
==10440== searching for pointers to 309 not-freed blocks.
==10440== checked 82,596 bytes.
==10440==
==10440== LEAK SUMMARY:
==10440== definitely lost: 0 bytes in 0 blocks.
==10440== possibly lost: 0 bytes in 0 blocks.
==10440== still reachable: 12,068 bytes in 289 blocks.
==10440== suppressed: 800 bytes in 20 blocks.
==10440== Reachable blocks (those to which a pointer was found) are not
shown.
==10440== To see them, rerun with: --leak-check=full --show-reachable=yes
--10440-- memcheck: sanity checks: 0 cheap, 1 expensive
--10440-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--10440-- memcheck: auxmaps_L1: 0 searches, 0 cmps, ratio 0:10
--10440-- memcheck: auxmaps_L2: 0 searches, 0 nodes
--10440-- memcheck: SMs: n_issued = 15 (240k, 0M)
--10440-- memcheck: SMs: n_deissued = 0 (0k, 0M)
--10440-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M)
--10440-- memcheck: SMs: max_undefined = 0 (0k, 0M)
--10440-- memcheck: SMs: max_defined = 34 (544k, 0M)
--10440-- memcheck: SMs: max_non_DSM = 15 (240k, 0M)
--10440-- memcheck: max sec V bit nodes: 0 (0k, 0M)
--10440-- memcheck: set_sec_vbits8 calls: 0 (new: 0, updates: 0)
--10440-- memcheck: max shadow mem size: 544k, 0M
--10440-- translate: fast SP updates identified: 4,070 ( 88.7%)
--10440-- translate: generic_known SP updates identified: 395 ( 8.6%)
--10440-- translate: generic_unknown SP updates identified: 122 ( 2.6%)
--10440-- tt/tc: 5,938 tt lookups requiring 6,038 probes
--10440-- tt/tc: 5,938 fast-cache updates, 3 flushes
--10440-- transtab: new 2,786 (62,287 -> 923,025; ratio 148:10) [0
scs]
--10440-- transtab: dumped 0 (0 -> ??)
--10440-- transtab: discarded 8 (206 -> ??)
--10440-- scheduler: 98,474 jumps (bb entries).
--10440-- scheduler: 0/3,750 major/minor sched events.
--10440-- sanity: 1 cheap, 1 expensive checks.
--10440-- exectx: 769 lists, 511 contexts (avg 0 per list)
--10440-- exectx: 712 searches, 385 full compares (540 per 1000)
--10440-- exectx: 712 cmp2, 38 cmp4, 0 cmpAll
--10440-- errormgr: 11 supplist searches, 404 comparisons during search
--10440-- errormgr: 17 errlist searches, 38 comparisons during search
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users