|
From: Andrew M. <And...@as...> - 2009-04-08 13:01:08
|
I am trying to use Valgrind to check my Fortran MPI code. I haven't compiled the MPI wrapper as it won't compile (the 'compile with -fPIC' error). I am using Valgrind 3.4.1 (downloaded and compiled it early after trying it with 3.2.1). The code is standard F95/2003 and I am using the Sun compiler. When I try and run my code, using the command line: mpiexec -n 4 valgrind --leak-check=yes -v -v ./seren BBmpiparams.dat or even just valgrind --leak-check=yes -v -v ./seren BBmpiparams.dat (which works as a single process run) I get this output: ==16655== Memcheck, a memory error detector. ==16655== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al. ==16655== Using LibVEX rev 1884, a library for dynamic binary translation. ==16655== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP. ==16655== Using valgrind-3.4.1, a dynamic binary instrumentation framework. ==16655== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al. ==16655== --16655-- Command line --16655-- ./seren --16655-- BBmpiparams.dat --16655-- Startup, with flags: --16655-- --leak-check=yes --16655-- -v --16655-- -v --16655-- Contents of /proc/version: --16655-- Linux version 2.6.18-53.1.14.el5 (bre...@no...) (gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)) #1 SMP Wed Mar 5 10:08:25 EST 200 8 --16655-- Arch and hwcaps: AMD64, amd64-sse2 --16655-- Page sizes: currently 4096, max supported 4096 --16655-- Valgrind library directory: /home/ophiuchus/spxam/valgrind/lib/valgrind --16655-- TT/TC: VG_(init_tt_tc) (startup of code management) --16655-- TT/TC: cache: 8 sectors of 29772288 bytes each = 238178304 total --16655-- TT/TC: table: 524168 total entries, max occupancy 419328 (80%) --16655-- Reading syms from /home/ophiuchus/spxam/codes/seren-mpi/seren (0x400000) --16655-- svma 0x0000403960, avma 0x0000403960 --16655-- DWARF2 CFI reader: unhandled CFI instruction 0:8 (lots and lots and lots of DWARF2 CFI reader errors) --16655-- Reading syms from /home/ophiuchus/spxam/valgrind/lib/valgrind/amd64-linux/memcheck (0x38000000) --16655-- svma 0x00380000f0, avma 0x00380000f0 --16655-- object doesn't have a dynamic symbol table --16655-- Reading syms from /lib64/ld-2.5.so (0x3ebe800000) --16655-- svma 0x3ebe800a60, avma 0x3ebe800a60 --16655-- summarise_context(loc_start = 0xa3): cannot summarise(why=1): 0xc9: 104(r1) u c-32 u u u u u u u u u u u u u u c-8 u u u --16655-- summarise_context(loc_start = 0x21): cannot summarise(why=1): 0x3e: 0(r5) u u u c0 u u c8 r8 u u u u c16 c24 c32 c40 r1 u u u --16655-- Reading suppressions file: /home/ophiuchus/spxam/valgrind/lib/valgrind/default.supp --16655-- TT/TC: initialise sector 0 --16655-- Reading syms from /home/ophiuchus/spxam/valgrind/lib/valgrind/amd64-linux/vgpreload_core.so (0x4802000) --16655-- svma 0x0000000440, avma 0x0004802440 --16655-- Reading syms from /home/ophiuchus/spxam/valgrind/lib/valgrind/amd64-linux/vgpreload_memcheck.so (0x4a03000) --16655-- svma 0x0000001ae0, avma 0x0004a04ae0 --16655-- REDIR: 0x3ebe8142d0 (index) redirected to 0x4a06e10 (index) --16655-- REDIR: 0x3ebe814480 (strcmp) redirected to 0x4a07070 (strcmp) --16655-- REDIR: 0x3ebe8144b0 (strlen) redirected to 0x4a06fa0 (strlen) --16655-- Reading syms from /lib64/libpthread-2.5.so (0x3ec0400000) --16655-- svma 0x3ec0405210, avma 0x3ec0405210 --16655-- Reading syms from /lib64/librt-2.5.so (0x3ec4000000) --16655-- svma 0x3ec4002230, avma 0x3ec4002230 --16655-- Reading syms from /home/ophiuchus/spxam/sunstudio/sunstudio12/prod/lib/amd64/libfui.so.1 (0x4c2f000) --16655-- svma 0x0000003cf0, avma 0x0004c32cf0 --16655-- DWARF2 CFI reader: unhandled CFI instruction 0:8 (lots more of these errors) Occasional other messages: --16655-- Reading syms from /home/ophiuchus/spxam/sunstudio/sunstudio12/prod/lib/amd64/libfai.so.1 (0x4d3e000) --16655-- svma 0x0000002940, avma 0x0004d40940 --16655-- Reading syms from /home/ophiuchus/spxam/sunstudio/sunstudio12/prod/lib/amd64/libfsu.so.1 (0x5b80000) --16655-- svma 0x0000010ef0, avma 0x0005b90ef0 --16655-- Reading syms from /home/ophiuchus/spxam/sunstudio/sunstudio12/rtlibs/amd64/libmtsk.so.1 (0x5fc4000) --16655-- svma 0x00000042a0, avma 0x0005fc82a0 then finally: --16655-- Reading syms from /lib64/libm-2.5.so (0x3ebfc00000) --16655-- svma 0x3ebfc03e80, avma 0x3ebfc03e80 --16655-- Reading syms from /lib64/libc-2.5.so (0x3ebf800000) --16655-- svma 0x3ebf81d690, avma 0x3ebf81d690 --16655-- summarise_context(loc_start = 0x27): cannot summarise(why=1): 0x44: 0(r5) u u u c0 u u c8 r8 u u u u c16 c24 c32 c40 r1 u u u --16655-- summarise_context(loc_start = 0x35): cannot summarise(why=1): 0x7d: 0(r5) u u u c128 u u c120 c160 u u u u c72 c80 c88 c96 c168 u u u --16655-- Reading syms from /lib64/libdl-2.5.so (0x3ec0000000) --16655-- svma 0x3ec0000e20, avma 0x3ec0000e20 --16655-- REDIR: 0x3ebf877320 (memset) redirected to 0x4a07210 (memset) --16655-- REDIR: 0x3ebf877a40 (memcpy) redirected to 0x4a08210 (memcpy) --16655-- REDIR: 0x3ebf876470 (rindex) redirected to 0x4a06cc0 (rindex) --16655-- REDIR: 0x3ebf8708b0 (calloc) redirected to 0x4a05060 (calloc) --16655-- REDIR: 0x3ebe814b00 (stpcpy) redirected to 0x4a07b50 (stpcpy) --16655-- REDIR: 0x3ebf870c20 (malloc) redirected to 0x4a05f50 (malloc) --16655-- REDIR: 0x3ebf8729e0 (free) redirected to 0x4a05ad0 (free) --16655-- REDIR: 0x3ebf876080 (strlen) redirected to 0x4a06f60 (strlen) --16655-- REDIR: 0x3ebf876300 (strncmp) redirected to 0x4a06fc0 (strncmp) Finally it just quit out with a SEGFAULT. Mostly just the DWARF2 CFI reader error (hundreds of this error). Does anyone have any ideas why this is happening? I've never used Valgrind before; just to check Valgrind ran at all I tested: valgrind --leak-check=yes echo "some text" and that worked. Many thanks, Andrew McLeod |