[Dune] [#1006] valgrind and dune-grid
Dune
flyspray at dune-project.org
Wed Feb 15 19:11:06 CET 2012
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#1006 - valgrind and dune-grid
User who did this - Elias Pipping (pipping)
----------
With clang:
% rm -rf .libs
% libtool --mode link g++ foo.o ~/dune-git-svn/dune-grid/build_clang/lib/libdunegrid.la -o foo
libtool: link: g++ foo.o -o .libs/foo /home/cocktail/pipping/dune-git-svn/dune-grid/build_clang/lib/.libs/libdunegrid.so -pthread
% libtool --mode=execute valgrind ./foo
==9359== Memcheck, a memory error detector
==9359== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==9359== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
==9359== Command: /home/cocktail/pipping/.libs/lt-foo
==9359==
==9359== Invalid free() / delete / delete[]
==9359== at 0x4C240FD: free (vg_replace_malloc.c:366)
==9359== by 0x5FC033A: free_mem (in /lib/libc-2.11.3.so)
==9359== by 0x5FBFED1: __libc_freeres (in /lib/libc-2.11.3.so)
==9359== by 0x4A2067B: _vgnU_freeres (vg_preloaded.c:62)
==9359== by 0x5EE55BD: __run_exit_handlers (exit.c:93)
==9359== by 0x5EE5664: exit (exit.c:100)
==9359== by 0x5ECDC93: (below main) (libc-start.c:260)
==9359== Address 0x40495e8 is not stack'd, malloc'd or (recently) free'd
==9359==
==9359==
==9359== HEAP SUMMARY:
==9359== in use at exit: 0 bytes in 0 blocks
==9359== total heap usage: 48 allocs, 51 frees, 10,693 bytes allocated
==9359==
==9359== All heap blocks were freed -- no leaks are possible
==9359==
==9359== For counts of detected and suppressed errors, rerun with: -v
==9359== ERROR SUMMARY: 3 errors from 1 contexts (suppressed: 4 from 4)
%
With gcc:
% rm -rf .libs
% libtool --mode link g++ foo.o ~/dune-git-svn/dune-grid/build_gcc46/lib/libdunegrid.la -o foo
libtool: link: g++ foo.o -o .libs/foo /home/cocktail/pipping/dune-git-svn/dune-grid/build_gcc46/lib/.libs/libdunegrid.so -pthread
% libtool --mode=execute valgrind ./foo
==9238== Memcheck, a memory error detector
==9238== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==9238== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
==9238== Command: /home/cocktail/pipping/.libs/lt-foo
==9238==
==9238== Invalid free() / delete / delete[]
==9238== at 0x4C240FD: free (vg_replace_malloc.c:366)
==9238== by 0x5FBC33A: free_mem (in /lib/libc-2.11.3.so)
==9238== by 0x5FBBED1: __libc_freeres (in /lib/libc-2.11.3.so)
==9238== by 0x4A2067B: _vgnU_freeres (vg_preloaded.c:62)
==9238== by 0x5EE15BD: __run_exit_handlers (exit.c:93)
==9238== by 0x5EE1664: exit (exit.c:100)
==9238== by 0x5EC9C93: (below main) (libc-start.c:260)
==9238== Address 0x40496f8 is not stack'd, malloc'd or (recently) free'd
==9238==
==9238==
==9238== HEAP SUMMARY:
==9238== in use at exit: 0 bytes in 0 blocks
==9238== total heap usage: 48 allocs, 52 frees, 10,693 bytes allocated
==9238==
==9238== All heap blocks were freed -- no leaks are possible
==9238==
==9238== For counts of detected and suppressed errors, rerun with: -v
==9238== ERROR SUMMARY: 4 errors from 1 contexts (suppressed: 4 from 4)
%
----------
More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=1006#comment3185
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
More information about the Dune
mailing list