Linux: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 11: | Line 11: | ||
==== 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> | ||
==== Disable Nvidia drivers and instead enable Intel embedded HD graphics driver ==== | |||
sudo apt-get purge nvidia-* | |||
sudo apt-get install --reinstall xserver-xorg-video-intel libgl1-mesa-glx libgl1-mesa-dri mesa-utils xserver-xorg-core | |||
sudo dpkg-reconfigure xserver-xorg | |||
sudo update-alternatives --remove gl_conf /usr/lib/nvidia-current/ld.so.conf | |||
reboot |
Revision as of 13:44, 22 August 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>
Disable Nvidia drivers and instead enable Intel embedded HD graphics driver
sudo apt-get purge nvidia-* sudo apt-get install --reinstall xserver-xorg-video-intel libgl1-mesa-glx libgl1-mesa-dri mesa-utils xserver-xorg-core sudo dpkg-reconfigure xserver-xorg sudo update-alternatives --remove gl_conf /usr/lib/nvidia-current/ld.so.conf reboot