diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-07-05 21:47:28 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-07-05 22:13:26 +0200 |
commit | 2555bd5ac6c975b8809d36ef90daaa8f71a8e0ba (patch) | |
tree | 5fb16545a2c4fe20e54b9581c52eafd86de94e37 /doc/nxproxy | |
parent | 381706aa279799201d5750bb971cac91e05db995 (diff) | |
download | nx-libs-2555bd5ac6c975b8809d36ef90daaa8f71a8e0ba.tar.gz nx-libs-2555bd5ac6c975b8809d36ef90daaa8f71a8e0ba.tar.bz2 nx-libs-2555bd5ac6c975b8809d36ef90daaa8f71a8e0ba.zip |
documentation: Move README-VALGRIND out of doc/_attic_/ folder to doc/nxproxy/.
Diffstat (limited to 'doc/nxproxy')
-rw-r--r-- | doc/nxproxy/README-VALGRIND | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/doc/nxproxy/README-VALGRIND b/doc/nxproxy/README-VALGRIND new file mode 100644 index 000000000..ce4d513a4 --- /dev/null +++ b/doc/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. |