update valgrind suppressions for Fedora 41

This commit is contained in:
Axel Kohlmeyer
2025-04-04 03:40:25 -04:00
parent fdf5f8dd22
commit a3de234873
3 changed files with 199 additions and 2 deletions

140
tools/valgrind/LLVM.supp Normal file
View File

@ -0,0 +1,140 @@
{
LLVM_addOption1
Memcheck:Leak
match-leak-kinds: reachable
fun:*
fun:*
fun:Allocate
...
fun:insert
...
fun:forEachSubCommand
fun:addOption
...
fun:call_init
fun:call_init
fun:_dl_init
obj:*
obj:*
obj:*
obj:*
}
{
LLVM_addOption2
Memcheck:Leak
match-leak-kinds: reachable
fun:*
fun:*
fun:Allocate
...
fun:insert
...
fun:call_init
fun:call_init
fun:_dl_init
fun:forEachSubCommand
fun:addOption
...
fun:call_init
fun:call_init
fun:_dl_init
obj:*
obj:*
obj:*
obj:*
obj:*
}
{
LLVM_addOption3
Memcheck:Leak
match-leak-kinds: reachable
fun:calloc
fun:safe_calloc
fun:insert
...
fun:forEachSubCommand
fun:addOption
...
fun:call_init
fun:call_init
fun:_dl_init
obj:*
obj:*
obj:*
}
{
LLVM_addOption4
Memcheck:Leak
match-leak-kinds: reachable
fun:calloc
fun:safe_calloc
...
fun:insert
...
fun:forEachSubCommand
fun:addOption
...
fun:call_init
fun:call_init
fun:_dl_init
obj:*
obj:*
obj:*
}
{
LLVM_insert1
Memcheck:Leak
match-leak-kinds: reachable
fun:*
fun:*
fun:Allocate
...
fun:insert
...
fun:call_init
fun:call_init
fun:_dl_init
obj:*
obj:*
obj:*
obj:*
obj:*
}
{
LLVM_init1
Memcheck:Leak
match-leak-kinds: reachable
fun:*
fun:call
...
fun:call_init
fun:call_init
fun:_dl_init
obj:*
obj:*
obj:*
obj:*
obj:*
}
{
LLVM_register1
Memcheck:Leak
match-leak-kinds: reachable
fun:*
fun:*
fun:*
fun:*
fun:*
fun:registerCategory
...
fun:Option
...
fun:call_init
fun:call_init
fun:_dl_init
obj:*
obj:*
obj:*
obj:*
obj:*
}

View File

@ -81,3 +81,43 @@
fun:PMPI_Init
fun:main
}
{
MPICH_MPI_init7
Memcheck:Param
socketcall.sendto(msg)
fun:__libc_send
fun:send
...
fun:psmx3_sep_open
...
fun:PMPI_Init
fun:main
}
{
MPICH_MPI_init8
Memcheck:Param
socketcall.sendto(msg)
fun:__libc_send
fun:send
...
fun:psmx3_sep_close
...
fun:MPID_Finalize
fun:MPII_Finalize
fun:*
fun:*
fun:PMPI_Finalize
fun:main
}
{
MPICH_MPI_init9
Memcheck:Leak
match-leak-kinds: definite
fun:calloc
fun:psmx3_recv_generic
...
fun:MPIDI_OFI_init_local
...
fun:PMPI_Init
fun:main
}

View File

@ -5,15 +5,32 @@ and fixing real issues. When using CMake, these are automatically included
when running "ctest -T memcheck". To manually add them to do a memory check
on running LAMMPS, use a command line like following:
valgrind --show-leak-kinds=all --track-origins=yes \
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes \
--suppressions=/path/to/lammps/tools/valgrind/OpenMP.supp \
--suppressions=/path/to/lammps/tools/valgrind/OpenMPI.supp \
--suppressions=/path/to/lammps/tools/valgrind/MPICH.supp \
--suppressions=/path/to/lammps/tools/valgrind/LLVM.supp \
--suppressions=/path/to/lammps/tools/valgrind/Python3.supp \
--suppressions=/path/to/lammps/tools/valgrind/GTest.supp \
--suppressions=/path/to/lammps/tools/valgrind/FlexiBLAS.supp \
--suppressions=/path/to/lammps/tools/valgrind/readline.supp \
lmp -in in.melt
Last update: 2022-08-11
Or you can create a file $HOME/.valgrindrc with one option per line:
--leak-check=full
--show-leak-kinds=all
--track-origins=yes
--suppressions=/path/to/lammps/tools/valgrind/OpenMP.supp
--suppressions=/path/to/lammps/tools/valgrind/OpenMPI.supp
--suppressions=/path/to/lammps/tools/valgrind/MPICH.supp
--suppressions=/path/to/lammps/tools/valgrind/LLVM.supp
--suppressions=/path/to/lammps/tools/valgrind/GTest.supp
--suppressions=/path/to/lammps/tools/valgrind/FlexiBLAS.supp
--suppressions=/path/to/lammps/tools/valgrind/readline.supp
--suppressions=/path/to/lammps/tools/valgrind/Python3.supp
These options will be automatically added to the valgrind
command line, so it becomes: valgrind lmp -in in.melt
Last update: 2025-04-04