Title: valgrind testing Subject: Howto use valgrind on full screen kiosk app. I had to test a full screen application with valgrind. #---------------------------------------- SSH into remote host as regular user. #---------------------------------------- Since we don't start fluxbox with the command startfluxbox, we can't start the app with a line in ~/.fluxbox/startup: ~/.fluxbox/autostart.sh & #---------------------------------------- Insted add the following line to ~/.fluxbox/init: session.screen0.rootCommand: ~/.fluxbox/autostart.sh #---------------------------------------- Add the follwing to ~/.fluxbox/autostart.sh: #!/bin/bash cd /sim3/; ~/bin/my_app.sh & #---------------------------------------- My ~/bin/my_app.sh file looks liek this: #!/bin/bash cd /app_directory/ export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH export PATH=./$PATH:/usr/sbin:/sbin Debug="1" if [ $Debug == "1" ]; then # Debug with Valgrind valgrind -v --tool=memcheck --leak-check=yes --num-callers=10 --gen-suppressions=yes --suppressions=/sim3_valgrind_suppression.supp --db-attach=yes ./my_app elif [ $Debug == "2" ]; then # Debug with strace /usr/bin/strace -f -s100 -q -o /tmp/strace.txt ./my_app else # No Debug ./my_app fi #---------------------------------------- SSH to the remote host, and type: xinit /usr/bin/fluxbox #---------------------------------------- http://valgrind.org/downloads/guis.html http://valgrind.org/docs/manual/manual-core.html#manual-core.suppress