Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
change the way we display leak types, skipping demangling
authorAugustin Degomme <adegomme@users.noreply.github.com>
Tue, 6 Apr 2021 18:06:47 +0000 (20:06 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Tue, 6 Apr 2021 18:07:17 +0000 (20:07 +0200)
src/smpi/internals/smpi_utils.cpp
teshsuite/smpi/coll-allreduce-with-leaks/coll-allreduce-with-leaks.tesh
teshsuite/smpi/coll-allreduce-with-leaks/mc-coll-allreduce-with-leaks.tesh

index 0f6de95..05cce1b 100644 (file)
@@ -153,7 +153,7 @@ void print_memory_analysis()
         handles.resize(max);
       for (const auto& p : handles) {
         if (xbt_log_no_loc) {
-          XBT_WARN("Leaked handle of type %s", boost::core::demangle(typeid(*p.second).name()).c_str());
+          XBT_WARN("Leaked handle of type %s", p.second->name().c_str());
         } else {
           XBT_WARN("Leaked handle of type %s at %p", p.second->name().c_str(), p.second);
         }
index becf06c..92cc86b 100644 (file)
@@ -24,16 +24,16 @@ $ $VALGRIND_NO_LEAK_CHECK ${bindir:=.}/../../../smpi_script/bin/smpirun -map -ho
 > Running smpirun with -wrapper "valgrind --leak-check=full" can provide more information
 > This can be done automatically by setting --cfg=smpi/auto-shared-malloc-thresh to the minimum size wanted size (this can alter execution if data content is necessary)
 > [0.023768] [smpi_utils/INFO] Probable memory leaks in your code: SMPI detected 32 unfreed MPI handles : display types and addresses (n max) with --cfg=smpi/list-leaks:n.
-> [0.023768] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Group
-> [0.023768] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Comm
-> [0.023768] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Group
-> [0.023768] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Comm
-> [0.023768] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Group
-> [0.023768] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Comm
-> [0.023768] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Group
-> [0.023768] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Comm
-> [0.023768] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Group
-> [0.023768] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Comm
+> [0.023768] [smpi_utils/WARNING] Leaked handle of type MPI_Group
+> [0.023768] [smpi_utils/WARNING] Leaked handle of type MPI_Comm
+> [0.023768] [smpi_utils/WARNING] Leaked handle of type MPI_Group
+> [0.023768] [smpi_utils/WARNING] Leaked handle of type MPI_Comm
+> [0.023768] [smpi_utils/WARNING] Leaked handle of type MPI_Group
+> [0.023768] [smpi_utils/WARNING] Leaked handle of type MPI_Comm
+> [0.023768] [smpi_utils/WARNING] Leaked handle of type MPI_Group
+> [0.023768] [smpi_utils/WARNING] Leaked handle of type MPI_Comm
+> [0.023768] [smpi_utils/WARNING] Leaked handle of type MPI_Group
+> [0.023768] [smpi_utils/WARNING] Leaked handle of type MPI_Comm
 > [0.023768] [smpi_utils/WARNING] (more handle leaks hidden as you wanted to see only 10 of them)
 > [0.023768] [smpi_utils/INFO] Memory Usage: Simulated application allocated 2048 bytes during its lifetime through malloc/calloc calls.
 
index b2d238b..3a93258 100644 (file)
@@ -9,14 +9,14 @@ $ $VALGRIND_NO_LEAK_CHECK ${bindir:=.}/../../../smpi_script/bin/smpirun -wrapper
 > [0.000000] [mc_safety/INFO] Check a safety property. Reduction is: dpor.
 > [0.000000] [smpi_utils/INFO] Probable memory leaks in your code: SMPI detected 8 unfreed MPI handles : display types and addresses (n max) with --cfg=smpi/list-leaks:n.
 > Running smpirun with -wrapper "valgrind --leak-check=full" can provide more information
-> [0.000000] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Comm
-> [0.000000] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Group
-> [0.000000] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Comm
-> [0.000000] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Group
-> [0.000000] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Comm
-> [0.000000] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Group
-> [0.000000] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Comm
-> [0.000000] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Group
+> [0.000000] [smpi_utils/WARNING] Leaked handle of type MPI_Comm
+> [0.000000] [smpi_utils/WARNING] Leaked handle of type MPI_Group
+> [0.000000] [smpi_utils/WARNING] Leaked handle of type MPI_Comm
+> [0.000000] [smpi_utils/WARNING] Leaked handle of type MPI_Group
+> [0.000000] [smpi_utils/WARNING] Leaked handle of type MPI_Comm
+> [0.000000] [smpi_utils/WARNING] Leaked handle of type MPI_Group
+> [0.000000] [smpi_utils/WARNING] Leaked handle of type MPI_Comm
+> [0.000000] [smpi_utils/WARNING] Leaked handle of type MPI_Group
 > [0.000000] [smpi_utils/INFO] Memory Usage: Simulated application allocated 128 bytes during its lifetime through malloc/calloc calls.
 > Largest allocation at once from a single process was 16 bytes, at sysdep.h:59. It was called 8 times during the whole simulation.
 > If this is too much, consider sharing allocations for computation buffers.
@@ -24,14 +24,14 @@ $ $VALGRIND_NO_LEAK_CHECK ${bindir:=.}/../../../smpi_script/bin/smpirun -wrapper
 > 
 > [0.000000] [smpi_utils/INFO] Probable memory leaks in your code: SMPI detected 8 unfreed MPI handles : display types and addresses (n max) with --cfg=smpi/list-leaks:n.
 > Running smpirun with -wrapper "valgrind --leak-check=full" can provide more information
-> [0.000000] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Comm
-> [0.000000] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Group
-> [0.000000] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Comm
-> [0.000000] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Group
-> [0.000000] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Comm
-> [0.000000] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Group
-> [0.000000] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Comm
-> [0.000000] [smpi_utils/WARNING] Leaked handle of type simgrid::smpi::Group
+> [0.000000] [smpi_utils/WARNING] Leaked handle of type MPI_Comm
+> [0.000000] [smpi_utils/WARNING] Leaked handle of type MPI_Group
+> [0.000000] [smpi_utils/WARNING] Leaked handle of type MPI_Comm
+> [0.000000] [smpi_utils/WARNING] Leaked handle of type MPI_Group
+> [0.000000] [smpi_utils/WARNING] Leaked handle of type MPI_Comm
+> [0.000000] [smpi_utils/WARNING] Leaked handle of type MPI_Group
+> [0.000000] [smpi_utils/WARNING] Leaked handle of type MPI_Comm
+> [0.000000] [smpi_utils/WARNING] Leaked handle of type MPI_Group
 > [0.000000] [smpi_utils/INFO] Memory Usage: Simulated application allocated 128 bytes during its lifetime through malloc/calloc calls.
 > Largest allocation at once from a single process was 16 bytes, at sysdep.h:59. It was called 8 times during the whole simulation.
 > If this is too much, consider sharing allocations for computation buffers.