[mpich-discuss] MPIDI_CH3U_Receive_data_unexpected: memory leak ?

VandeVondele Joost joost.vandevondele at mat.ethz.ch
Thu Aug 11 01:29:24 CDT 2016


Hi,

using mpich 3.2 with our code (CP2K) we see the following memory leak with lsan:

Direct leak of 12544 byte(s) in 1 object(s) allocated from:
    #0 0x7f64851477e6 in __interceptor_malloc /data/vjoost/toolchain-r17215/build/gcc-5.4.0/libsanitizer/lsan/lsan_interceptors.cc:51
    #1 0x7f6484dd556f in MPIDI_CH3U_Receive_data_unexpected src/mpid/ch3/src/ch3u_handle_recv_pkt.c:251
    #2 0x7f6484e0dbb3 in MPIDI_CH3_PktHandler_EagerSend src/mpid/ch3/src/ch3u_eager.c:661
    #3 0x7f6484e218bf in MPIDI_CH3I_Progress src/mpid/ch3/channels/nemesis/src/ch3_progress.c:541
    #4 0x7f6484d76dde in PMPI_Recv src/mpi/pt2pt/recv.c:157
    #5 0x264730a in BI_Srecv /data/vjoost/toolchain-r17215/build/scalapack-2.0.2/BLACS/SRC/BI_Srecv.c:8
    #6 0x264b6c2 in Cdgerv2d /data/vjoost/toolchain-r17215/build/scalapack-2.0.2/BLACS/SRC/dgerv2d_.c:79
    #7 0x26cfd4d in PB_CpaxpbyDN /data/vjoost/toolchain-r17215/build/scalapack-2.0.2/PBLAS/SRC/PTOOLS/PB_CpaxpbyDN.c:661
    #8 0x2651ba2 in PB_Cpaxpby /data/vjoost/toolchain-r17215/build/scalapack-2.0.2/PBLAS/SRC/PTOOLS/PB_Cpaxpby.c:754
    #9 0x2663060 in PB_Cptran /data/vjoost/toolchain-r17215/build/scalapack-2.0.2/PBLAS/SRC/PTOOLS/PB_Cptran.c:414
    #10 0x2617973 in pdtran_ /data/vjoost/toolchain-r17215/build/scalapack-2.0.2/PBLAS/SRC/pdtran_.c:240
    #11 0x1de4388 in __cp_fm_basic_linalg_MOD_cp_fm_transpose /data/vjoost/clean/cp2k/cp2k/src/fm/cp_fm_basic_linalg.F:925
[...]

In the code at the line indicate there is indeed a FIXME, but I'm wondering if this location could indeed leak memory unbounded, which would be problematic.

Best regards,

Joost VandeVondele

________________________________
Prof. Dr. Joost VandeVondele
Nanoscale Simulations

ETH Zurich
HIT G 41.4
Wolfgang-Pauli-Strasse 27
8093 Zurich, Switzerland

Joost.VandeVondele at mat.ethz.ch
http://www.nanosim.mat.ethz.ch/
Tel.: +41 (0)44 6338451
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20160811/52bd0350/attachment.html>
-------------- next part --------------
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list