LQ Newbie
Registered: Nov 2010
Posts: 1
Rep:
|
Valgrind interpretation
Hi, I have a code that i'm trying to develop but some problems occur.
When I run valgrind this is what I'd got and don't know how I have to interpretate this.
Thanks in advanced.
==7912== Memcheck, a memory error detector.
==7912== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
==7912== Using LibVEX rev 1884, a library for dynamic binary translation.
==7912== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
==7912== Using valgrind-3.4.1-Debian, a dynamic binary instrumentation framework.
==7912== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.
==7912==
--7912-- Command line
--7912-- ./stc
--7912-- Startup, with flags:
--7912-- --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp
--7912-- -v
--7912-- Contents of /proc/version:
--7912-- Linux version 2.6.28.9-noipv6 (root@ctag) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #1 SMP Thu Aug 19 12:37:58 CEST 2010
--7912-- Arch and hwcaps: X86, x86-sse1-sse2
--7912-- Page sizes: currently 4096, max supported 4096
--7912-- Valgrind library directory: /usr/lib/valgrind
--7912-- Reading syms from /lib/ld-2.9.so (0x4000000)
--7912-- Reading debug info from /lib/ld-2.9.so ..
--7912-- .. CRC mismatch (computed 049232cc wanted 022486d8)
--7912-- object doesn't have a symbol table
--7912-- Reading syms from /home/vadmin/workspace/test/src/stc (0x8048000)
--7912-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000)
--7912-- object doesn't have a dynamic symbol table
--7912-- Reading suppressions file: /usr/lib/valgrind/debian-libc6-dbg.supp
--7912-- Reading suppressions file: /usr/lib/valgrind/default.supp
--7912-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x4020000)
--7912-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4023000)
--7912-- Reading syms from /lib/tls/i686/cmov/libdl-2.9.so (0x403a000)
--7912-- Reading debug info from /lib/tls/i686/cmov/libdl-2.9.so ..
--7912-- .. CRC mismatch (computed 868ff7e2 wanted 2c0770ec)
--7912-- object doesn't have a symbol table
--7912-- Reading syms from /lib/tls/i686/cmov/libpthread-2.9.so (0x403e000)
--7912-- Reading debug info from /lib/tls/i686/cmov/libpthread-2.9.so ..
--7912-- .. CRC mismatch (computed 967fd765 wanted e10448e4)
--7912-- Reading syms from /usr/lib/debug/libstdc++.so.6.0.8 (0x4058000)
--7912-- Reading syms from /lib/tls/i686/cmov/libm-2.9.so (0x4153000)
--7912-- Reading debug info from /lib/tls/i686/cmov/libm-2.9.so ..
--7912-- .. CRC mismatch (computed 9d3c94d0 wanted 85a674c7)
--7912-- object doesn't have a symbol table
--7912-- Reading syms from /lib/libgcc_s.so.1 (0x4179000)
--7912-- Reading debug info from /lib/libgcc_s.so.1 ..
--7912-- .. CRC mismatch (computed 224ab3f8 wanted 89276151)
--7912-- object doesn't have a symbol table
--7912-- Reading syms from /lib/tls/i686/cmov/libc-2.9.so (0x4188000)
--7912-- Reading debug info from /lib/tls/i686/cmov/libc-2.9.so ..
--7912-- .. CRC mismatch (computed 7ee64c88 wanted 8d898f0d)
--7912-- object doesn't have a symbol table
--7912-- REDIR: 0x41fef00 (index) redirected to 0x4027420 (index)
--7912-- REDIR: 0x4200e40 (memchr) redirected to 0x4027b00 (memchr)
--7912-- REDIR: 0x41ffa60 (rindex) redirected to 0x4027330 (rindex)
--7912-- REDIR: 0x4201340 (memset) redirected to 0x40285f0 (memset)
--7912-- REDIR: 0x41ff5e0 (strlen) redirected to 0x40276e0 (strlen)
--7912-- REDIR: 0x41187d0 (operator new(unsigned int)) redirected to 0x4026930 (operator new(unsigned int))
==7912== Jump to the invalid address stated on the next line
==7912== at 0x0: ???
==7912== by 0x419E774: (below main) (in /lib/tls/i686/cmov/libc-2.9.so)
==7912== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7912==
==7912== Process terminating with default action of signal 11 (SIGSEGV)
==7912== Bad permissions for mapped region at address 0x0
==7912== at 0x0: ???
==7912== by 0x419E774: (below main) (in /lib/tls/i686/cmov/libc-2.9.so)
--7912-- REDIR: 0x41f9520 (free) redirected to 0x4025d40 (free)
==7912==
==7912== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 21 from 1)
==7912==
==7912== 1 errors in context 1 of 1:
==7912== Jump to the invalid address stated on the next line
==7912== at 0x0: ???
==7912== by 0x419E774: (below main) (in /lib/tls/i686/cmov/libc-2.9.so)
==7912== Address 0x0 is not stack'd, malloc'd or (recently) free'd
--7912--
--7912-- supp: 21 Debian libc6 (2.9.x) stripped dynamic linker
==7912==
==7912== IN SUMMARY: 1 errors from 1 contexts (suppressed: 21 from 1)
==7912==
==7912== malloc/free: in use at exit: 26 bytes in 1 blocks.
==7912== malloc/free: 1 allocs, 0 frees, 26 bytes allocated.
==7912==
==7912== searching for pointers to 1 not-freed blocks.
==7912== checked 114,024 bytes.
==7912==
==7912== LEAK SUMMARY:
==7912== definitely lost: 0 bytes in 0 blocks.
==7912== possibly lost: 26 bytes in 1 blocks.
==7912== still reachable: 0 bytes in 0 blocks.
==7912== suppressed: 0 bytes in 0 blocks.
==7912== Rerun with --leak-check=full to see details of leaked memory.
--7912-- memcheck: sanity checks: 2 cheap, 2 expensive
--7912-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--7912-- memcheck: auxmaps_L1: 0 searches, 0 cmps, ratio 0:10
--7912-- memcheck: auxmaps_L2: 0 searches, 0 nodes
--7912-- memcheck: SMs: n_issued = 12 (192k, 0M)
--7912-- memcheck: SMs: n_deissued = 0 (0k, 0M)
--7912-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M)
--7912-- memcheck: SMs: max_undefined = 0 (0k, 0M)
--7912-- memcheck: SMs: max_defined = 39 (624k, 0M)
--7912-- memcheck: SMs: max_non_DSM = 12 (192k, 0M)
--7912-- memcheck: max sec V bit nodes: 0 (0k, 0M)
--7912-- memcheck: set_sec_vbits8 calls: 0 (new: 0, updates: 0)
--7912-- memcheck: max shadow mem size: 496k, 0M
--7912-- translate: fast SP updates identified: 4,122 ( 89.5%)
--7912-- translate: generic_known SP updates identified: 363 ( 7.8%)
--7912-- translate: generic_unknown SP updates identified: 119 ( 2.5%)
--7912-- tt/tc: 6,093 tt lookups requiring 6,221 probes
--7912-- tt/tc: 6,092 fast-cache updates, 2 flushes
--7912-- transtab: new 3,032 (70,571 -> 1,015,032; ratio 143:10) [0 scs]
--7912-- transtab: dumped 0 (0 -> ??)
--7912-- transtab: discarded 0 (0 -> ??)
--7912-- scheduler: 278,109 jumps (bb entries).
--7912-- scheduler: 2/3,197 major/minor sched events.
--7912-- sanity: 3 cheap, 2 expensive checks.
--7912-- exectx: 769 lists, 456 contexts (avg 0 per list)
--7912-- exectx: 507 searches, 188 full compares (370 per 1000)
--7912-- exectx: 0 cmp2, 46 cmp4, 0 cmpAll
--7912-- errormgr: 7 supplist searches, 172 comparisons during search
--7912-- errormgr: 22 errlist searches, 52 comparisons during search
Segmentation fault
|