|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Jul 2000
Città: Vignola (MO)
Messaggi: 316
|
[C] Mi date una mano a interpretare i log di Valgrind?
Ciao ragazzi...
Ho qualche problema a interpretare i log di Valgrind... Mi date una mano Non riesco a capire se il problema è nel mio codice o se derivi da glib... Mi spiegate cosa significhi Codice:
... blocks are still reachable in loss ... Codice:
==20653== Memcheck, a memory error detector. ==20653== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==20653== Using LibVEX rev 1367, a library for dynamic binary translation. ==20653== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP. ==20653== Using valgrind-3.0.1, a dynamic binary instrumentation framework. ==20653== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. --20653-- Valgrind library directory: /opt/lib/valgrind --20653-- Command line --20653-- csp --20653-- Startup, with flags: --20653-- --leak-check=full --20653-- -v --20653-- --show-reachable=yes --20653-- Contents of /proc/version: --20653-- Linux version 2.6.8-11-amd64-k8 ([email protected]) (gcc version 3.4.4 20050314 (prerelease) (Debian 3.4.3-13)) #1 Wed Jun 1 01:03:08 CEST 2005 --20653-- Reading syms from /home/projects/csp/src/csp (0x400000) --20653-- Reading syms from /lib/ld-2.3.2.so (0x11900000) --20653-- Reading debug info from /lib/ld-2.3.2.so... --20653-- ... CRC mismatch (computed 85A2307F wanted 1D855AF1) --20653-- object doesn't have a symbol table --20653-- Reading syms from /opt/lib/valgrind/stage2 (0x70000000) --20653-- Reading suppressions file: /opt/lib/valgrind/default.supp ==20653== --20653-- Reading syms from /opt/lib/valgrind/vg_preload_core.so (0x11A17000) --20653-- Reading syms from /opt/lib/valgrind/vgpreload_memcheck.so (0x11B1A000) --20653-- Reading syms from /usr/lib/libglib-2.0.so.0.600.4 (0x11C26000) --20653-- Reading debug info from /usr/lib/libglib-2.0.so.0.600.4... --20653-- ... CRC mismatch (computed 27CAD33F wanted 20CE6DEF) --20653-- object doesn't have a symbol table --20653-- Reading syms from /lib/libc-2.3.2.so (0x11DAC000) --20653-- Reading debug info from /lib/libc-2.3.2.so... --20653-- ... CRC mismatch (computed AD6C8682 wanted B7D9D4A0) --20653-- object doesn't have a symbol table --20653-- Reading syms from /lib/libdl-2.3.2.so (0x11FEC000) --20653-- Reading debug info from /lib/libdl-2.3.2.so... --20653-- ... CRC mismatch (computed 1737D365 wanted 3EBC88EE) --20653-- object doesn't have a symbol table --20653-- REDIR: 0x11E29FA0 (rindex) redirected to 0x11B1DB00 (rindex) --20653-- REDIR: 0x11E236D0 (calloc) redirected to 0x11B1D45A (calloc) --20653-- REDIR: 0x11E29BD0 (strlen) redirected to 0x11B1DDE0 (strlen) --20653-- REDIR: 0x11E22F60 (malloc) redirected to 0x11B1C0FF (malloc) --20653-- REDIR: 0x11E2BF20 (memcpy) redirected to 0x11B1E0F0 (memcpy) --20653-- REDIR: 0x11E231D0 (realloc) redirected to 0x11B1D509 (realloc) --20653-- REDIR: 0x11E29EF0 (strncpy) redirected to 0x11B1DF00 (strncpy) --20653-- REDIR: 0x11E23130 (free) redirected to 0x11B1CC71 (free) --20653-- REDIR: 0x11E28740 (index) redirected to 0x11B1DBA0 (index) --20653-- REDIR: 0x11E288F0 (strcmp) redirected to 0x11B1E060 (strcmp) --20653-- REDIR: 0x11E2BAF0 (stpcpy) redirected to 0x11B1E2E0 (stpcpy) --20653-- REDIR: 0x11E29E40 (strncmp) redirected to 0x11B1E010 (strncmp) --20653-- REDIR: 0x11E28580 (strcat) redirected to 0x11B1DC00 (strcat) --20653-- REDIR: 0x11E2B710 (memset) redirected to 0x11B1E520 (memset) --20653-- REDIR: 0x11E2AF80 (memchr) redirected to 0x11B1E0C0 (memchr) --20653-- REDIR: 0x11E29CC0 (strnlen) redirected to 0x11B1DDB0 (strnlen) (process:20653): GLib-CRITICAL **: g_error_free: assertion `error != NULL' failed ==20653== ==20653== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 7 from 1) --20653-- --20653-- supp: 7 Ugly strchr error in /lib/ld-2.3.2.so ==20653== malloc/free: in use at exit: 45231 bytes in 49 blocks. ==20653== malloc/free: 2133 allocs, 2084 frees, 150258 bytes allocated. ==20653== ==20653== searching for pointers to 49 not-freed blocks. ==20653== checked 945280 bytes. ==20653== ==20653== 16 bytes in 1 blocks are still reachable in loss record 1 of 7 ==20653== at 0x11B1C17B: malloc (vg_replace_malloc.c:149) ==20653== by 0x11B1D54B: realloc (vg_replace_malloc.c:306) ==20653== by 0x11C4F2BE: g_realloc (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C34AB6: (within /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C347B1: g_array_set_size (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C60FDE: g_static_private_set (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C668D6: g_get_charset (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C51C6A: g_log_default_handler (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C512D0: g_logv (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C51482: g_log (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C514DF: g_return_if_fail_warning (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C3D375: g_error_free (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== ==20653== ==20653== 48 bytes in 8 blocks are indirectly lost in loss record 2 of 7 ==20653== at 0x11B1C17B: malloc (vg_replace_malloc.c:149) ==20653== by 0x11C4F20E: g_malloc (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C5CE6D: g_strdup (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C3FF95: g_io_channel_init (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C6B447: g_io_channel_new_file (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x401645: c_new_parser (parser.c:66) ==20653== by 0x400EAB: main (main.c:39) ==20653== ==20653== ==20653== 104 bytes in 3 blocks are still reachable in loss record 3 of 7 ==20653== at 0x11B1D4DC: calloc (vg_replace_malloc.c:279) ==20653== by 0x11C4F266: g_malloc0 (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C50925: g_allocator_new (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C47D2B: (within /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C471A8: g_list_prepend (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C42F8B: (within /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C43055: g_key_file_new (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x4010D0: c_new_properties (properties.c:28) ==20653== by 0x400E9D: main (main.c:38) ==20653== ==20653== ==20653== 128 bytes in 1 blocks are still reachable in loss record 4 of 7 ==20653== at 0x11B1C17B: malloc (vg_replace_malloc.c:149) ==20653== by 0x11DC9CF6: (within /lib/libc-2.3.2.so) ==20653== by 0x11DC9920: iconv_open (in /lib/libc-2.3.2.so) ==20653== by 0x11C36D78: (within /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C36E15: g_iconv_open (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C372FD: (within /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C37575: g_convert (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C37905: g_convert_with_fallback (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C516A1: (within /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C51CD6: g_log_default_handler (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C512D0: g_logv (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C51482: g_log (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== ==20653== ==20653== 1041 (993 direct, 48 indirect) bytes in 10 blocks are definitely lost in loss record 5 of 7 ==20653== at 0x11B1C17B: malloc (vg_replace_malloc.c:149) ==20653== by 0x11C4F20E: g_malloc (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C6B3DE: g_io_channel_new_file (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x401645: c_new_parser (parser.c:66) ==20653== by 0x400EAB: main (main.c:39) ==20653== ==20653== ==20653== 11302 bytes in 25 blocks are still reachable in loss record 6 of 7 ==20653== at 0x11B1C17B: malloc (vg_replace_malloc.c:149) ==20653== by 0x11C4F20E: g_malloc (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C5CE6D: g_strdup (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C50930: g_allocator_new (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C47D2B: (within /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C471A8: g_list_prepend (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C42F8B: (within /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C43055: g_key_file_new (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x4010D0: c_new_properties (properties.c:28) ==20653== by 0x400E9D: main (main.c:38) ==20653== ==20653== ==20653== 32640 bytes in 1 blocks are still reachable in loss record 7 of 7 ==20653== at 0x11B1C17B: malloc (vg_replace_malloc.c:149) ==20653== by 0x11DC9DFE: (within /lib/libc-2.3.2.so) ==20653== by 0x11DC9920: iconv_open (in /lib/libc-2.3.2.so) ==20653== by 0x11C36D78: (within /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C36E15: g_iconv_open (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C372FD: (within /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C37575: g_convert (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C37905: g_convert_with_fallback (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C516A1: (within /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C51CD6: g_log_default_handler (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C512D0: g_logv (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== by 0x11C51482: g_log (in /usr/lib/libglib-2.0.so.0.600.4) ==20653== ==20653== LEAK SUMMARY: ==20653== definitely lost: 993 bytes in 10 blocks. ==20653== indirectly lost: 48 bytes in 8 blocks. ==20653== possibly lost: 0 bytes in 0 blocks. ==20653== still reachable: 44190 bytes in 31 blocks. ==20653== suppressed: 0 bytes in 0 blocks. --20653-- memcheck: sanity checks: 32 cheap, 2 expensive --20653-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use --20653-- memcheck: auxmaps: 0 searches, 0 comparisons --20653-- memcheck: secondaries: 18 issued (1152k, 1M) --20653-- memcheck: secondaries: 117 accessible and distinguished (7488k, 7M) --20653-- tt/tc: 6839 tt lookups requiring 7084 probes --20653-- tt/tc: 6839 fast-cache updates, 2 flushes --20653-- translate: new 3416 (72784 -> 1507458; ratio 207:10) [0 scs] --20653-- translate: dumped 0 (0 -> ??) --20653-- translate: discarded 0 (0 -> ??) --20653-- scheduler: 1642706 jumps (bb entries). --20653-- scheduler: 32/7783 major/minor sched events. --20653-- sanity: 33 cheap, 2 expensive checks. --20653-- exectx: 4999 lists, 1788 contexts (avg 0 per list) --20653-- exectx: 4224 searches, 68708 full compares (16266 per 1000) --20653-- exectx: 66 cmp2, 21 cmp4, 0 cmpAll
__________________
<Asus A8N-E Deluxe> <Amd64 3000+> <Ram 2.5 Gb> <Geffo3> <2 Maxtor 160 Gb RAID 1> <Adsl ZyXEL 645r> <ESS Maestro> <GNU/Linux Debian Etch> Wii 1037 4238 6261 1967 |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 02:12.



















