|
From: Stefano B. <ste...@an...> - 2008-05-22 09:54:08
|
Dear all, I've run the Valgrind program in order to test a C++ program which is causing some problems (Segmentation Fault). I need some help in understanding correctly the results of the test, is there anybody who can help me? Here comes the log file I got: ==22733== Memcheck, a memory error detector. ==22733== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==22733== Using LibVEX rev 1575, a library for dynamic binary translation. ==22733== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP. ==22733== Using valgrind-3.1.1, a dynamic binary instrumentation framework. ==22733== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. ==22733== ==22733== My PID = 22733, parent PID = 21920. Prog and args are: ==22733== ../../crEDC_5 ==22733== -p ==22733== ../../EDC.mttype.08parz ==22733== --22733-- --22733-- Command line --22733-- ../../crEDC_5 --22733-- -p --22733-- ../../EDC.mttype.08parz --22733-- Startup, with flags: --22733-- -v --22733-- --log-file=val1.log --22733-- --num-callers=yes --22733-- Contents of /proc/version: --22733-- Linux version 2.6.9-42.0.3.ELsmp (bre...@hs...) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)) #1 SMP Mon Sep 25 17:24:31 EDT 2006 --22733-- Arch and subarch: AMD64, NONE --22733-- Valgrind library directory: /usr/lib64/valgrind --22733-- Reading syms from /ricerca/indici/EDC08/crEDC_5 (0x400000) --22733-- Reading syms from /usr/lib64/valgrind/amd64-linux/memcheck (0x70000000) --22733-- object doesn't have a dynamic symbol table --22733-- Reading syms from /lib64/ld-2.3.4.so (0x3F2D400000) --22733-- Reading suppressions file: /usr/lib64/valgrind/default.supp --22733-- Reading syms from /usr/lib64/valgrind/amd64-linux/vgpreload_core.so (0x4801000) --22733-- Reading syms from /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so (0x4903000) --22733-- REDIR: 0x3F2D40FAE0 (index) redirected to 0x49062F0 (index) --22733-- REDIR: 0x3F2D40FC90 (strcmp) redirected to 0x49067A0 (strcmp) --22733-- REDIR: 0x3F2D40FCC0 (strlen) redirected to 0x4906530 (strlen) --22733-- Reading syms from /lib64/tls/libm-2.3.4.so (0x3F2DB00000) --22733-- Reading syms from /lib64/tls/libc-2.3.4.so (0x3F2D600000) --22733-- REDIR: 0x3F2D670920 (rindex) redirected to 0x49061F0 (rindex) --22733-- REDIR: 0x3F2D66B1E0 (malloc) redirected to 0x490498D (malloc) ==22733== Warning: set address range perms: large range 2000000000, a 0, v 1 --22733-- REDIR: 0x3F2D670880 (strncpy) redirected to 0x4906610 (strncpy) --22733-- REDIR: 0x3F2D670530 (strlen) redirected to 0x49064F0 (strlen) --22733-- REDIR: 0xFFFFFFFFFF600400 (???) redirected to 0x70021359 (???) --22733-- REDIR: 0x3F2D66FDC0 (index) redirected to 0x49062B0 (index) --22733-- REDIR: 0x3F2D66FFB0 (strcpy) redirected to 0x4906550 (strcpy) --22733-- REDIR: 0x3F2D671010 (memchr) redirected to 0x49067D0 (memchr) --22733-- REDIR: 0x3F2D671ED0 (memcpy) redirected to 0x4906800 (memcpy) --22733-- REDIR: 0x3F2D66AEB0 (calloc) redirected to 0x4905CAA (calloc) --22733-- REDIR: 0x3F2D66FF70 (strcmp) redirected to 0x4906770 (strcmp) --22733-- REDIR: 0x3F2D6726B0 (rawmemchr) redirected to 0x4906D00 (rawmemchr) --22733-- REDIR: 0x3F2D669180 (free) redirected to 0x49054DF (free) ==22733== Invalid read of size 4 ==22733== at 0x3F2D65CAD6: setbuffer (in /lib64/tls/libc-2.3.4.so) ==22733== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==22733== ==22733== Process terminating with default action of signal 11 (SIGSEGV) ==22733== Access not within mapped region at address 0x0 ==22733== at 0x3F2D65CAD6: setbuffer (in /lib64/tls/libc-2.3.4.so) --22733-- REDIR: 0x3F2D671790 (memset) redirected to 0x4906C60 (memset) ==22733== ==22733== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 4 from 1) ==22733== ==22733== 1 errors in context 1 of 1: ==22733== Invalid read of size 4 ==22733== at 0x3F2D65CAD6: setbuffer (in /lib64/tls/libc-2.3.4.so) ==22733== Address 0x0 is not stack'd, malloc'd or (recently) free'd --22733-- --22733-- supp: 4 dl_relocate_object ==22733== ==22733== IN SUMMARY: 1 errors from 1 contexts (suppressed: 4 from 1) ==22733== ==22733== malloc/free: in use at exit: 2,805,466,648 bytes in 524,381 blocks. ==22733== malloc/free: 524,382 allocs, 1 frees, 2,805,467,216 bytes allocated. ==22733== ==22733== searching for pointers to 524,381 not-freed blocks. ==22733== checked 801,984,032 bytes. ==22733== ==22733== LEAK SUMMARY: ==22733== definitely lost: 0 bytes in 0 blocks. ==22733== possibly lost: 0 bytes in 0 blocks. ==22733== still reachable: 2,805,466,648 bytes in 524,381 blocks. ==22733== suppressed: 0 bytes in 0 blocks. ==22733== Reachable blocks (those to which a pointer was found) are not shown. ==22733== To see them, rerun with: --show-reachable=yes --22733-- memcheck: sanity checks: 107 cheap, 5 expensive --22733-- memcheck: auxmaps: 64 auxmap entries (4096k, 4M) in use --22733-- memcheck: auxmaps: 188104 searches, 241012 comparisons --22733-- memcheck: secondaries: 12647 issued (809408k, 790M) --22733-- memcheck: secondaries: 30674 accessible and distinguished (1963136k, 1917M) --22733-- tt/tc: 4,919 tt lookups requiring 4,995 probes --22733-- tt/tc: 4,919 fast-cache updates, 5 flushes --22733-- translate: new 2,332 (58,042 -> 1,068,515; ratio 184:10) [0 scs] --22733-- translate: dumped 0 (0 -> ??) --22733-- translate: discarded 11 (212 -> ??) --22733-- scheduler: 5,385,762 jumps (bb entries). --22733-- scheduler: 107/527,138 major/minor sched events. --22733-- sanity: 108 cheap, 5 expensive checks. --22733-- exectx: 30,011 lists, 7 contexts (avg 0 per list) --22733-- exectx: 524,388 searches, 524,381 full compares (999 per 1000) --22733-- exectx: 0 cmp2, 5 cmp4, 0 cmpAll Stefano Biffani, Research and Development ANAFI (Italian Holstein Association) www.anafi.it Via Bergamo, 292 26100, Cremona, Italy tel: +39.0372.474235 AVVERTENZE AI SENSI DEL D.Lgs. 196/2003 Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003. This e-mail contains confidential information and is intended solely for use by the individual named or entity to whom it is addressed. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the named addressee, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited (D.Lgs. 196/2003). |