fuite memoire

Pàgina inicial

Reply to this message
Autor: Patrick Dupre
Data:  
A: Guilde
Assumpte: fuite memoire
Bonsoir,

J'ai attache un fichier genere par valgrind car je suis certain d'avoir
des fuites memoire, mais je ne comprends rien a ce fichier.
Si quelqu'un a des idees !

Merci

-- 
---
==========================================================================
  Patrick DUPRÉ                      |   |
  Department of Chemistry            |   |    Phone: (44)-(0)-1904-434384
  The University of York             |   |    Fax:   (44)-(0)-1904-432516
  Heslington                         |   |
  York YO10 5DD  United Kingdom      |   |    email: pd520@???
==========================================================================
==10016== Memcheck, a memory error detector.
==10016== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==10016== Using LibVEX rev 1804, a library for dynamic binary translation.
==10016== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==10016== Using valgrind-3.3.0, a dynamic binary instrumentation framework.
==10016== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==10016== 
==10016== My PID = 10016, parent PID = 3795.  Prog and args are:
==10016==    Sterra
==10016==    -d
==10016==    /tmp
==10016==    -f
==10016==    120
==10016== 
--10016-- 
--10016-- Command line
--10016--    Sterra
--10016--    -d
--10016--    /tmp
--10016--    -f
--10016--    120
--10016-- Startup, with flags:
--10016--    --tool=memcheck
--10016--    --leak-check=full
--10016--    -v
--10016--    --log-file=Sterra.dbg
--10016--    --num-callers=8
--10016-- Contents of /proc/version:
--10016--   Linux version 2.6.27.30-170.2.82.fc10.i686 (mockbuild@???) (gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC) ) #1 SMP Mon Aug 17 08:38:59 EDT 2009
--10016-- Arch and hwcaps: X86, x86-sse1-sse2
--10016-- Page sizes: currently 4096, max supported 4096
--10016-- Valgrind library directory: /usr/lib/valgrind
--10016-- Reading syms from /lib/ld-2.9.so (0x16D000)
--10016-- Reading syms from /bin/bash (0x8047000)
--10016--    object doesn't have a symbol table
--10016-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000)
--10016--    object doesn't have a dynamic symbol table
--10016-- Reading suppressions file: /usr/lib/valgrind/default.supp
--10016-- REDIR: 0x186440 (index) redirected to 0x3802cf43 (vgPlain_x86_linux_REDIR_FOR_index)
--10016-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x4001000)
--10016-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4003000)
==10016== WARNING: new redirection conflicts with existing -- ignoring it
--10016--     new: 0x00186440 (index               ) R-> 0x04006f60 index
--10016-- REDIR: 0x186610 (strlen) redirected to 0x4007210 (strlen)
--10016-- Reading syms from /lib/libtinfo.so.5.6 (0x7CE5000)
--10016--    object doesn't have a symbol table
--10016-- Reading syms from /lib/libdl-2.9.so (0x333000)
--10016-- Reading syms from /lib/libc-2.9.so (0x4031000)
--10016-- REDIR: 0x40a8800 (rindex) redirected to 0x4006e40 (rindex)
--10016-- REDIR: 0x40a7e10 (strcmp) redirected to 0x40074f0 (strcmp)
--10016-- REDIR: 0x40a8380 (strlen) redirected to 0x40071f0 (strlen)
--10016-- REDIR: 0x40a85a0 (strncmp) redirected to 0x4007460 (strncmp)
--10016-- REDIR: 0x40a7ca0 (index) redirected to 0x4006f30 (index)
--10016-- REDIR: 0x40ad130 (strchrnul) redirected to 0x4008000 (strchrnul)
--10016-- REDIR: 0x40a46d0 (malloc) redirected to 0x4006a30 (malloc)
--10016-- REDIR: 0x40aa140 (mempcpy) redirected to 0x4008060 (mempcpy)
--10016-- REDIR: 0x40aa5f0 (memcpy) redirected to 0x4007660 (memcpy)
--10016-- REDIR: 0x40a22c0 (free) redirected to 0x4005850 (free)
--10016-- REDIR: 0x40a7e80 (strcpy) redirected to 0x4007250 (strcpy)
--10016-- REDIR: 0x40a9be0 (memchr) redirected to 0x4007610 (memchr)
--10016-- REDIR: 0x40ad060 (rawmemchr) redirected to 0x4008040 (rawmemchr)
--10016-- REDIR: 0x40a8430 (strnlen) redirected to 0x40071b0 (strnlen)
--10016-- REDIR: 0x412bcb0 (__strcpy_chk) redirected to 0x40085e0 (__strcpy_chk)
--10016-- REDIR: 0x40a86b0 (strncpy) redirected to 0x4007320 (strncpy)
--10016-- REDIR: 0x40aa0e0 (memset) redirected to 0x4007f30 (memset)
==10016== 
==10016== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 16 from 1)
--10016-- 
--10016-- supp:     16 dl-hack3-1
==10016== malloc/free: in use at exit: 18,927 bytes in 573 blocks.
==10016== malloc/free: 693 allocs, 120 frees, 24,907 bytes allocated.
==10016== 
==10016== searching for pointers to 573 not-freed blocks.
==10016== checked 123,336 bytes.
==10016== 
==10016== LEAK SUMMARY:
==10016==    definitely lost: 0 bytes in 0 blocks.
==10016==      possibly lost: 0 bytes in 0 blocks.
==10016==    still reachable: 18,927 bytes in 573 blocks.
==10016==         suppressed: 0 bytes in 0 blocks.
==10016== Reachable blocks (those to which a pointer was found) are not shown.
==10016== To see them, rerun with: --leak-check=full --show-reachable=yes
--10016--  memcheck: sanity checks: 3 cheap, 2 expensive
--10016--  memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--10016--  memcheck: auxmaps_L1: 0 searches, 0 cmps, ratio 0:10
--10016--  memcheck: auxmaps_L2: 0 searches, 0 nodes
--10016--  memcheck: SMs: n_issued      = 17 (272k, 0M)
--10016--  memcheck: SMs: n_deissued    = 0 (0k, 0M)
--10016--  memcheck: SMs: max_noaccess  = 65535 (1048560k, 1023M)
--10016--  memcheck: SMs: max_undefined = 0 (0k, 0M)
--10016--  memcheck: SMs: max_defined   = 64 (1024k, 1M)
--10016--  memcheck: SMs: max_non_DSM   = 17 (272k, 0M)
--10016--  memcheck: max sec V bit nodes:    0 (0k, 0M)
--10016--  memcheck: set_sec_vbits8 calls: 0 (new: 0, updates: 0)
--10016--  memcheck: max shadow mem size:   576k, 0M
--10016-- translate:            fast SP updates identified: 5,649 ( 87.5%)
--10016-- translate:   generic_known SP updates identified: 565 (  8.7%)
--10016-- translate: generic_unknown SP updates identified: 236 (  3.6%)
--10016--     tt/tc: 10,725 tt lookups requiring 11,170 probes
--10016--     tt/tc: 10,725 fast-cache updates, 3 flushes
--10016--  transtab: new        5,125 (109,272 -> 1,530,011; ratio 140:10) [0 scs]
--10016--  transtab: dumped     0 (0 -> ??)
--10016--  transtab: discarded  8 (194 -> ??)
--10016-- scheduler: 367,523 jumps (bb entries).
--10016-- scheduler: 3/6,608 major/minor sched events.
--10016--    sanity: 4 cheap, 2 expensive checks.
--10016--    exectx: 769 lists, 350 contexts (avg 0 per list)
--10016--    exectx: 829 searches, 552 full compares (665 per 1000)
--10016--    exectx: 676 cmp2, 49 cmp4, 0 cmpAll
--10016--  errormgr: 11 supplist searches, 65 comparisons during search
--10016--  errormgr: 16 errlist searches, 49 comparisons during search