Linux: Difference between revisions
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
==== Valgrind ==== | ==== Valgrind ==== | ||
valgrind --trace-children=yes --leak-check=full | valgrind --trace-children=yes --leak-check=full --show-leak-kinds=all <binary> |
Revision as of 15:41, 23 May 2016
Debugging Linux applications
LDD
Linux LDD is just a wrapper for:
LD_TRACE_LOADED_OBJECTS=1 <cmd>
Core dumps
To check core dump handler:
cat /proc/sys/kernel/core_pattern |/usr/sbin/coredump-handler %h_%t_%p.core
Valgrind
valgrind --trace-children=yes --leak-check=full --show-leak-kinds=all <binary>