summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorpooryorick <com.digitalsmarties@pooryorick.com>2023-03-06 06:58:13 (GMT)
committerpooryorick <com.digitalsmarties@pooryorick.com>2023-03-06 06:58:13 (GMT)
commit40e214cd76ab0f9fe274bb7a27b56a40194254f7 (patch)
tree91695334ddd16c1fc8fdfb657f82c3036a341474 /tools
parent9e0cc9d6308f5bb5a55914cd31d265d3e6dda4a3 (diff)
downloadtcl-40e214cd76ab0f9fe274bb7a27b56a40194254f7.zip
tcl-40e214cd76ab0f9fe274bb7a27b56a40194254f7.tar.gz
tcl-40e214cd76ab0f9fe274bb7a27b56a40194254f7.tar.bz2
Add new valgrind suppression items.
Diffstat (limited to 'tools')
-rw-r--r--tools/valgrind_suppress137
1 files changed, 137 insertions, 0 deletions
diff --git a/tools/valgrind_suppress b/tools/valgrind_suppress
index fb7f173..11ca880 100644
--- a/tools/valgrind_suppress
+++ b/tools/valgrind_suppress
@@ -1,3 +1,17 @@
+#{
+# Tcl_GetChannelOption/TcpGetOptionProc/TcphostPortList/getnameinfo/gethostbyaddr_r
+# Memcheck:Leak
+# match-leak-kinds: reachable
+# fun:malloc
+# fun:strdup
+# ...
+# fun:module_load
+# ...
+# fun:getnameinfo
+# ...
+# fun:Tcl_GetChannelOption
+#}
+
{
TclCreatesocketAddress/getaddrinfo/calloc
Memcheck:Leak
@@ -11,6 +25,16 @@
{
TclCreatesocketAddress/getaddrinfo/malloc
Memcheck:Leak
+ match-leak-kinds: definite
+ fun:malloc
+ ...
+ fun:getaddrinfo
+ fun:TclCreateSocketAddress
+}
+
+{
+ TclCreatesocketAddress/getaddrinfo/malloc
+ Memcheck:Leak
match-leak-kinds: reachable
fun:malloc
...
@@ -19,6 +43,18 @@
}
{
+ TclpDlopen/decompose_rpath
+ Memcheck:Leak
+ match-leak-kinds: reachable
+ fun:malloc
+ fun:decompose_rpath
+ ...
+ fun:dlopen_doit
+ ...
+ fun:TclpDlopen
+}
+
+{
TclpDlopen/load
Memcheck:Leak
match-leak-kinds: reachable
@@ -72,6 +108,46 @@
}
{
+ TclpGeHostByName/gethostbyname_r/strdup/malloc
+ Memcheck:Leak
+ match-leak-kinds: reachable
+ fun:malloc
+ fun:strdup
+ ...
+ fun:dl_open_worker
+ ...
+ fun:do_dlopen
+ ...
+ fun:TclpGetHostByName
+}
+
+{
+ TclpGeHostByName/gethostbyname_r/calloc
+ Memcheck:Leak
+ match-leak-kinds: reachable
+ fun:calloc
+ ...
+ fun:dl_open_worker
+ ...
+ fun:do_dlopen
+ ...
+ fun:TclpGetHostByName
+}
+
+{
+ TclpGeHostByName/gethostbyname_r/malloc
+ Memcheck:Leak
+ match-leak-kinds: reachable
+ fun:malloc
+ ...
+ fun:dl_open_worker
+ ...
+ fun:do_dlopen
+ ...
+ fun:TclpGetHostByName
+}
+
+{
TclpGetPwNam/getpwname_r/__nss_next2/calloc
Memcheck:Leak
match-leak-kinds: reachable
@@ -105,6 +181,57 @@
}
{
+ TclpGetGrGid/getgrgid_r/module_load
+ Memcheck:Leak
+ match-leak-kinds: reachable
+ fun:calloc
+ ...
+ fun:module_load
+ ...
+ fun:TclpGetGrGid
+}
+
+{
+ TclpGetGrGid/getgrgid_r/module_load
+ Memcheck:Leak
+ match-leak-kinds: reachable
+ fun:malloc
+ ...
+ fun:module_load
+ ...
+ fun:TclpGetGrGid
+}
+
+{
+ TcphostPortList/getnameinfo/module_load/calloc
+ Memcheck:Leak
+ match-leak-kinds: definite,reachable
+ fun:calloc
+ ...
+ fun:dl_open_worker_begin
+ ...
+ fun:module_load
+ ...
+ fun:getnameinfo
+ fun:TcpHostPortList
+}
+
+{
+ # see sourceware glibc Bug 14984 - getnameinfo() might be leaking memory
+ TcphostPortList/getnameinfo/module_load/mallco
+ Memcheck:Leak
+ match-leak-kinds: definite,reachable
+ fun:malloc
+ ...
+ fun:dl_open_worker_begin
+ ...
+ fun:module_load
+ ...
+ fun:getnameinfo
+ fun:TcpHostPortList
+}
+
+{
TclpThreadExit/pthread_exit/calloc
Memcheck:Leak
match-leak-kinds: reachable
@@ -124,3 +251,13 @@
fun:TclpThreadExit
}
+{
+ TclpThreadExit/pthread_exit/malloc
+ Memcheck:Leak
+ match-leak-kinds: definite
+ fun:malloc
+ ...
+ fun:pthread_exit
+ fun:TclpThreadExit
+}
+