Skip to content

Instantly share code, notes, and snippets.

Created May 8, 2014 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/f4dbcddbbc9fee0f508e to your computer and use it in GitHub Desktop.
Save anonymous/f4dbcddbbc9fee0f508e to your computer and use it in GitHub Desktop.
spenser@scotch:src$ mpirun -np 2 valgrind ./transpose 8
==457== Memcheck, a memory error detector
==457== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==457== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==457== Command: ./transpose 8
==457==
==458== Memcheck, a memory error detector
==458== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==458== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==458== Command: ./transpose 8
==458==
==458== Syscall param writev(vector[...]) points to uninitialised byte(s)
==458== at 0x34414E0C1B: writev (in /lib64/libc-2.12.so)
==458== by 0x6066D66: ??? (in /usr/lib64/openmpi/lib/openmpi/mca_oob_tcp.so)
==458== by 0x606833C: ??? (in /usr/lib64/openmpi/lib/openmpi/mca_oob_tcp.so)
==458== by 0x606A94C: ??? (in /usr/lib64/openmpi/lib/openmpi/mca_oob_tcp.so)
==458== by 0x5E5E3D5: ??? (in /usr/lib64/openmpi/lib/openmpi/mca_rml_oob.so)
==458== by 0x5E5E61F: ??? (in /usr/lib64/openmpi/lib/openmpi/mca_rml_oob.so)
==458== by 0x6475E97: ??? (in /usr/lib64/openmpi/lib/openmpi/mca_grpcomm_bad.so)
==458== by 0x344244BB69: ??? (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==458== by 0x3442463C6F: PMPI_Init (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==458== by 0x400CEE: main (transpose.c:43)
==458== Address 0x4fd3e41 is 161 bytes inside a block of size 256 alloc'd
==458== at 0x4A06BE0: realloc (vg_replace_malloc.c:662)
==458== by 0x34424D3562: ??? (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==458== by 0x34424D3FD4: ??? (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==458== by 0x34424AF2D6: orte_grpcomm_base_pack_modex_entries (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==458== by 0x6475E4C: ??? (in /usr/lib64/openmpi/lib/openmpi/mca_grpcomm_bad.so)
==458== by 0x344244BB69: ??? (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==458== by 0x3442463C6F: PMPI_Init (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==458== by 0x400CEE: main (transpose.c:43)
==458==
==457== Syscall param writev(vector[...]) points to uninitialised byte(s)
==457== at 0x34414E0C1B: writev (in /lib64/libc-2.12.so)
==457== by 0x6066D66: ??? (in /usr/lib64/openmpi/lib/openmpi/mca_oob_tcp.so)
==457== by 0x606833C: ??? (in /usr/lib64/openmpi/lib/openmpi/mca_oob_tcp.so)
==457== by 0x606A94C: ??? (in /usr/lib64/openmpi/lib/openmpi/mca_oob_tcp.so)
==457== by 0x5E5E3D5: ??? (in /usr/lib64/openmpi/lib/openmpi/mca_rml_oob.so)
==457== by 0x5E5E61F: ??? (in /usr/lib64/openmpi/lib/openmpi/mca_rml_oob.so)
==457== by 0x6475E97: ??? (in /usr/lib64/openmpi/lib/openmpi/mca_grpcomm_bad.so)
==457== by 0x344244BB69: ??? (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==457== by 0x3442463C6F: PMPI_Init (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==457== by 0x400CEE: main (transpose.c:43)
==457== Address 0x4fd3a21 is 161 bytes inside a block of size 256 alloc'd
==457== at 0x4A06BE0: realloc (vg_replace_malloc.c:662)
==457== by 0x34424D3562: ??? (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==457== by 0x34424D3FD4: ??? (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==457== by 0x34424AF2D6: orte_grpcomm_base_pack_modex_entries (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==457== by 0x6475E4C: ??? (in /usr/lib64/openmpi/lib/openmpi/mca_grpcomm_bad.so)
==457== by 0x344244BB69: ??? (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==457== by 0x3442463C6F: PMPI_Init (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==457== by 0x400CEE: main (transpose.c:43)
==457==
Matrix =
0: 0 1 2 3 4 5 6 7
0: 8 9 10 11 12 13 14 15
0: 16 17 18 19 20 21 22 23
0: 24 25 26 27 28 29 30 31
1: 32 33 34 35 36 37 38 39
1: 40 41 42 43 44 45 46 47
1: 48 49 50 51 52 53 54 55
1: 56 57 58 59 60 61 62 63
Matrix =
0: 0 8 16 24 4 12 20 28
0: 1 9 17 25 5 13 21 29
0: 2 10 18 26 6 14 22 30
0: 3 11 19 27 7 15 23 31
1: 32 40 48 56 36 44 52 60
1: 33 41 49 57 37 45 53 61
1: 34 42 50 58 38 46 54 62
1: 35 43 51 59 39 47 55 63
==457== Source and destination overlap in memcpy(0x601ae0, 0x601ae0, 16)
==457== at 0x4A08B8E: memcpy (mc_replace_strmem.c:882)
==457== by 0x34424DB26A: ??? (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==457== by 0x344245528E: ompi_datatype_sndrcv (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==457== by 0x344245752C: PMPI_Alltoall (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==457== by 0x400F6F: main (transpose.c:81)
==457==
==458== Source and destination overlap in memcpy(0x601b70, 0x601b70, 16)
==458== at 0x4A08B8E: memcpy (mc_replace_strmem.c:882)
==458== by 0x34424DB26A: ??? (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==458== by 0x344245528E: ompi_datatype_sndrcv (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==458== by 0x344245752C: PMPI_Alltoall (in /usr/lib64/openmpi/lib/libmpi.so.1.0.2)
==458== by 0x400F6F: main (transpose.c:81)
==458==
Matrix =
0: 0 8 16 24 32 40 48 56
0: 1 9 17 25 33 41 49 57
0: 2 10 18 26 34 42 50 58
0: 3 11 19 27 35 43 51 59
1: 4 12 20 28 36 44 52 60
1: 5 13 21 29 37 45 53 61
1: 6 14 22 30 38 46 54 62
1: 7 15 23 31 39 47 55 63
0: Finalize(0)
0: Finalize(0)
==457==
==457== HEAP SUMMARY:
==457== in use at exit: 160,374 bytes in 178 blocks
==457== total heap usage: 6,754 allocs, 6,576 frees, 13,164,354 bytes allocated
==457==
==457== LEAK SUMMARY:
==457== definitely lost: 51,915 bytes in 69 blocks
==457== indirectly lost: 16,278 bytes in 46 blocks
==457== possibly lost: 0 bytes in 0 blocks
==457== still reachable: 92,181 bytes in 63 blocks
==457== suppressed: 0 bytes in 0 blocks
==457== Rerun with --leak-check=full to see details of leaked memory
==457==
==457== For counts of detected and suppressed errors, rerun with: -v
==457== Use --track-origins=yes to see where uninitialised values come from
==457== ERROR SUMMARY: 10 errors from 2 contexts (suppressed: 6 from 6)
--------------------------------------------------------------------------
mpirun noticed that process rank 0 with PID 457 on node scotch.ecasp.org exited on signal 27 (Profiling timer expired).
--------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment