From 5e4d9643105ac1ab5eac3696f8a6e120fc70684e Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Tue, 29 May 2012 06:05:43 +0000 Subject: Fix PyObject reference counting bugs causing memory violations in the Python component implementation. Build Python runtime from source with pydebug to diagnose memory issues. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1343550 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/etc/memgrind | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sca-cpp/trunk/etc/memgrind') diff --git a/sca-cpp/trunk/etc/memgrind b/sca-cpp/trunk/etc/memgrind index 079adca595..312058cc85 100755 --- a/sca-cpp/trunk/etc/memgrind +++ b/sca-cpp/trunk/etc/memgrind @@ -18,6 +18,7 @@ # under the License. # Run valgrind to analyze memory usage and track memory leaks +here=`echo "import os; print os.path.realpath('$0')" | python`; here=`dirname $here` -valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=40 --track-fds=yes --trace-children=yes $* 2>&1 | tee memgrind.log +valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=50 --track-fds=yes --trace-children=yes --suppressions=$here/../../Python-2.6.6/Misc/valgrind-python.supp --suppressions=$here/valgrind-apr.supp $* 2>&1 | tee memgrind.log -- cgit v1.2.3