Linux: Difference between revisions

From indicium
Jump to navigation Jump to search
Stefan (talk | contribs)
Stefan (talk | contribs)
Line 10: Line 10:


==== Valgrind ====
==== Valgrind ====
valgrind --trace-children=yes --leak-check=full --show-leak-kinds=all <binary>
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>