I have a run.sh with: ./opt/exm/bin/exm_daemon
exm_daemon
spawns many process.
I run valgrind with options:
<code>sudo valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --trace-children=yes --trace-children-skip=process1,process2 --fair-sched=yes ./run.sh
</code>
<code>sudo valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --trace-children=yes --trace-children-skip=process1,process2 --fair-sched=yes ./run.sh
</code>
sudo valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --trace-children=yes --trace-children-skip=process1,process2 --fair-sched=yes ./run.sh
I see valgrind profiles for all the processes including process1 and process2
I have checked the name of the process that are given to the skip list and there is no typo error.
Environment:
I am running run.sh via CTest
<code>enable_testing()
add_test(NAME TestExmCOMMAND valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --trace-children=yes --trace-children-skip=process1,process2 --fair-sched=yes ./run.sh WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/install/")
include(CTest)
set(CTEST_MEMORYCHECK_COMMAND_OPTIONS "--leak-check=full --show-leak-kinds=all --track-origins=yes --trace-children=yes --fair-sched=yes --error-exitcode=1")
set(CTEST_MEMORYCHECK_TYPE "Valgrind")
</code>
<code>enable_testing()
add_test(NAME TestExmCOMMAND valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --trace-children=yes --trace-children-skip=process1,process2 --fair-sched=yes ./run.sh WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/install/")
include(CTest)
set(CTEST_MEMORYCHECK_COMMAND_OPTIONS "--leak-check=full --show-leak-kinds=all --track-origins=yes --trace-children=yes --fair-sched=yes --error-exitcode=1")
set(CTEST_MEMORYCHECK_TYPE "Valgrind")
</code>
enable_testing()
add_test(NAME TestExmCOMMAND valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --trace-children=yes --trace-children-skip=process1,process2 --fair-sched=yes ./run.sh WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/install/")
include(CTest)
set(CTEST_MEMORYCHECK_COMMAND_OPTIONS "--leak-check=full --show-leak-kinds=all --track-origins=yes --trace-children=yes --fair-sched=yes --error-exitcode=1")
set(CTEST_MEMORYCHECK_TYPE "Valgrind")
I tried adding all the process that are spawned by exm_daemon to the skip list. But it didnt work too.
New contributor
noob-sys-dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.