.bashrc: -valgrind
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 29 Nov 2020 21:03:36 +0000 (22:03 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 29 Nov 2020 21:04:56 +0000 (22:04 +0100)
.bashrc
.python.valgrind.patch [deleted file]

diff --git a/.bashrc b/.bashrc
index 0ded121..dd88391 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -384,7 +384,6 @@ function rpmsrclist
                        | sort -u
        fi
 }
                        | sort -u
        fi
 }
-function valgrind {(set -e;unset valgrind;s=~/.python.valgrind;rm -f $s;cp -p /usr/share/doc/python-devel-2.*/valgrind-python.supp $s;patch $s <$s.patch;perl -i -e 'undef $/;$_=<>;1 while s/^(?:###)?({\n)(?:###)?( *ADDRESS_IN_RANGE.*\n(?:[^}#].*\n)*)###/$1$2/gm;print;' $s;valgrind --num-callers=50 --suppressions=$s "$@";);}
 function yumupdate {(ulimit -v unlimited;yum makecache;yum -y --skip-broken update "$@";);}
 function gitcommit { git commit -a --allow-empty-message -m '' "$@"; }
 function gpg {(unset gpg; http_proxy= all_proxy= HTTP_PROXY= ALL_PROXY= gpg "$@"; );}
 function yumupdate {(ulimit -v unlimited;yum makecache;yum -y --skip-broken update "$@";);}
 function gitcommit { git commit -a --allow-empty-message -m '' "$@"; }
 function gpg {(unset gpg; http_proxy= all_proxy= HTTP_PROXY= ALL_PROXY= gpg "$@"; );}
diff --git a/.python.valgrind.patch b/.python.valgrind.patch
deleted file mode 100644 (file)
index c40f2a7..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
---- /usr/share/doc/python-devel-2.6/valgrind-python.supp-orig  2008-08-24 07:04:52.000000000 +0200
-+++ /usr/share/doc/python-devel-2.6/valgrind-python.supp-orig  2009-05-11 22:12:53.000000000 +0200
-@@ -131,36 +131,60 @@ 
- ###}
- ###
- ###{
- ###   ADDRESS_IN_RANGE/Invalid read of size 4
- ###   Memcheck:Value4
- ###   fun:PyObject_Free
- ###}
- ###
- ###{
-+###   ADDRESS_IN_RANGE/Invalid read of size 8
-+###   Memcheck:Addr8
-+###   fun:PyObject_Free
-+###}
-+###
-+###{
-+###   ADDRESS_IN_RANGE/Invalid read of size 8
-+###   Memcheck:Value8
-+###   fun:PyObject_Free
-+###}
-+###
-+###{
- ###   ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
- ###   Memcheck:Cond
- ###   fun:PyObject_Free
- ###}
- ###{
- ###   ADDRESS_IN_RANGE/Invalid read of size 4
- ###   Memcheck:Addr4
- ###   fun:PyObject_Realloc
- ###}
- ###
- ###{
- ###   ADDRESS_IN_RANGE/Invalid read of size 4
- ###   Memcheck:Value4
- ###   fun:PyObject_Realloc
- ###}
- ###
- ###{
-+###   ADDRESS_IN_RANGE/Invalid read of size 8
-+###   Memcheck:Addr8
-+###   fun:PyObject_Realloc
-+###}
-+###
-+###{
-+###   ADDRESS_IN_RANGE/Invalid read of size 8
-+###   Memcheck:Value8
-+###   fun:PyObject_Realloc
-+###}
-+###
-+###{
- ###   ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
- ###   Memcheck:Cond
- ###   fun:PyObject_Realloc
- ###}
- ###
- ### All the suppressions below are for errors that occur within libraries
- ### that Python uses.  The problems to not appear to be related to Python's
- ### use of the libraries.