Skip to content

Commit

Permalink
Add new valgrind suppression items.
Browse files Browse the repository at this point in the history
  • Loading branch information
pooryorick committed Mar 6, 2023
1 parent f6e972a commit f738e7c
Showing 1 changed file with 137 additions and 0 deletions.
137 changes: 137 additions & 0 deletions tools/valgrind_suppress
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -8,6 +22,16 @@
fun:TclCreateSocketAddress
}

{
TclCreatesocketAddress/getaddrinfo/malloc
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
...
fun:getaddrinfo
fun:TclCreateSocketAddress
}

{
TclCreatesocketAddress/getaddrinfo/malloc
Memcheck:Leak
Expand All @@ -18,6 +42,18 @@
fun:TclCreateSocketAddress
}

{
TclpDlopen/decompose_rpath
Memcheck:Leak
match-leak-kinds: reachable
fun:malloc
fun:decompose_rpath
...
fun:dlopen_doit
...
fun:TclpDlopen
}

{
TclpDlopen/load
Memcheck:Leak
Expand Down Expand Up @@ -71,6 +107,46 @@
fun:TclpGetGrNam
}

{
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
Expand Down Expand Up @@ -104,6 +180,57 @@
fun:TclpGetPwNam
}

{
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
Expand All @@ -124,3 +251,13 @@
fun:TclpThreadExit
}

{
TclpThreadExit/pthread_exit/malloc
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
...
fun:pthread_exit
fun:TclpThreadExit
}

0 comments on commit f738e7c

Please sign in to comment.