LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-04-2010, 10:27 AM   #1
ancou
LQ Newbie
 
Registered: Nov 2010
Posts: 1

Rep: Reputation: 0
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
 
Old 11-15-2010, 09:52 PM   #2
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,615
Blog Entries: 29

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
See if the following is of any help to you:
 
Old 11-17-2010, 05:15 PM   #3
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 116Reputation: 116
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
netstat interpretation twlilinux Linux - Server 6 06-17-2008 04:59 PM
Interpretation of KDE Crash ? orbit Slackware 0 04-02-2008 09:32 PM
c: output interpretation kpachopoulos Programming 3 08-17-2006 09:34 AM
tcpdump interpretation unixbrain Linux - Networking 7 04-28-2004 04:37 AM
sendmail logwatch interpretation jimi_j Red Hat 2 03-07-2004 07:19 PM


All times are GMT -5. The time now is 11:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration