diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2011-11-19 15:59:43 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2011-11-19 15:59:43 +0100 |
commit | 65f882e05bcd8a1a273e5c0fb237d215666c946e (patch) | |
tree | 188596b43e0f132496637384564e5d991380144e /nxproxy/README-VALGRIND | |
parent | 9bfca1c2da8a72613ebf7406ef40f74ebe9799cb (diff) | |
parent | 6dc46faed83596d64bb86d9a4b35543f5122e1dd (diff) | |
download | nx-libs-65f882e05bcd8a1a273e5c0fb237d215666c946e.tar.gz nx-libs-65f882e05bcd8a1a273e5c0fb237d215666c946e.tar.bz2 nx-libs-65f882e05bcd8a1a273e5c0fb237d215666c946e.zip |
Merge branch 'nxproxy'
Diffstat (limited to 'nxproxy/README-VALGRIND')
-rw-r--r-- | nxproxy/README-VALGRIND | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/nxproxy/README-VALGRIND b/nxproxy/README-VALGRIND new file mode 100644 index 000000000..ce4d513a4 --- /dev/null +++ b/nxproxy/README-VALGRIND @@ -0,0 +1,39 @@ +README-VALGRIND +--------------- + +You can run nxproxy (and nxcomp) under the supervision of valgrind +(a very good memory debugger) by wrapping nxproxy in the following +script: + +<snip> +#!/bin/bash + +# Enable core dumps. + +ulimit -c unlimited + +# Set this to directory where nxproxy is located. + +NXPROXY_DIR=~/NX/nxproxy + +# Set this to directory where valgrind is located. + +VALGRIND_DIR=/usr/local/bin + +exec ${VALGRIND_DIR}/valgrind -v --leak-check=yes --leak-resolution=high \ + --show-reachable=yes --show-reachable=yes \ + --suppressions=${NXPROXY_DIR}/nxproxy.supp \ + --num-callers=16 --logfile-fd=2 \ +\ +${NXPROXY_DIR}/nxproxy $1 $2 $3 $4 $5 $6 $7 $8 $9 +<snip> + +Run the following commands on your shell, right in the place where +the nxproxy executable is to be placed in your setup: + +$ cat >nxproxy +<copy paste the previous lines here> +$ chmod a+x nxproxy + +Output of valgrind will go on stderr, that is in session file, if +run in NX environment. |