From f638237a6b4f3d3edf9bdd995c15df537f8d7e7c Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Fri, 24 Jan 2025 18:14:52 -0500 Subject: Fix multiple bugs encountered during stress test - Basic server resource cleanup Signed-off-by: Andrew Opalach --- scripts/python_env | 4 ++++ scripts/run.sh | 5 +---- scripts/run_debug.sh | 1 + scripts/run_server.sh | 5 +---- scripts/run_valgrind.sh | 6 ++++-- 5 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 scripts/python_env (limited to 'scripts') diff --git a/scripts/python_env b/scripts/python_env new file mode 100644 index 0000000..2cca301 --- /dev/null +++ b/scripts/python_env @@ -0,0 +1,4 @@ +export CURL_CA_BUNDLE=/etc/ssl/certs/ca-bundle.crt +export PYTHONDONTWRITEBYTECODE=1 +export PYTHONOPTIMIZE=2 +export PYTHONPATH=$HOME/c/camu/src/portal/vendor/vendor diff --git a/scripts/run.sh b/scripts/run.sh index eeebcac..3b47fe4 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -1,6 +1,3 @@ #! /usr/bin/env sh -export CURL_CA_BUNDLE=/etc/ssl/certs/ca-bundle.crt -export PYTHONDONTWRITEBYTECODE=1 -export PYTHONPATH=$HOME/c/camu/src/portal/vendor/vendor -export mesa_glthread=true +source ../scripts/python_env ./src/fruits/cmv/cmv "$@" diff --git a/scripts/run_debug.sh b/scripts/run_debug.sh index bd9a667..a56bf22 100755 --- a/scripts/run_debug.sh +++ b/scripts/run_debug.sh @@ -1,2 +1,3 @@ #! /usr/bin/env sh +source ../scripts/python_env gdb -ex run --args ./src/fruits/cmv/cmv "$@" diff --git a/scripts/run_server.sh b/scripts/run_server.sh index 893f5c1..22945ed 100755 --- a/scripts/run_server.sh +++ b/scripts/run_server.sh @@ -1,8 +1,5 @@ #! /usr/bin/env sh -export CURL_CA_BUNDLE=/etc/ssl/certs/ca-bundle.crt -export PYTHONDONTWRITEBYTECODE=1 -export PYTHONOPTIMIZE=2 -export PYTHONPATH=$HOME/c/camu/src/portal/vendor/vendor +source ../scripts/python_env # screen will use $SHELL. screen -c ../scripts/screenrc #valgrind --leak-check=no --show-error-list=yes --log-file=./server-valgrind.log ./src/fruits/cmsrv/cmsrv $@ diff --git a/scripts/run_valgrind.sh b/scripts/run_valgrind.sh index 033f35a..583327c 100755 --- a/scripts/run_valgrind.sh +++ b/scripts/run_valgrind.sh @@ -1,3 +1,5 @@ #! /usr/bin/env sh -valgrind --leak-check=no --show-error-list=yes ./src/fruits/cmv/cmv "$@" -#valgrind --leak-check=full ./src/fruits/cmv/cmv "$@" +source ../scripts/python_env +valgrind --leak-check=full ./src/fruits/cmv/cmv "$@" +#valgrind --leak-check=full --show-leak-kinds=all ./src/fruits/cmv/cmv "$@" +#valgrind --leak-check=no --show-error-list=yes ./src/fruits/cmv/cmv "$@" -- cgit v1.2.3-101-g0448