source: mod_gnutls/test/suppressions.valgrind @ 86cd5f6

mod_gnutls/0.11.0
Last change on this file since 86cd5f6 was ee35a9f, checked in by Fiona Klute <fiona.klute@…>, 6 months ago

Adjust Valgrind suppression for first gnutls_rnd use to nonce-less OCSP

If OCSP nonces are disabled the first gnutls_rnd call in the watchdog
thread happens directly in mgs_async_ocsp_update when randomizing the
interval until the next update. Adjust the suppression to allow that.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1# The first call to gnutls_rng in a new thread causes a "possible
2# loss" setting up thread-local storage (TLS). According to search
3# results that seems to be a common issue with glibc.
4{
5   gnutls_rng_init
6   Memcheck:Leak
7   match-leak-kinds: possible
8   fun:malloc
9   ...
10   fun:__tls_get_addr
11   ...
12   fun:gnutls_rnd
13   ...
14   fun:mgs_async_ocsp_update
15   fun:*
16   fun:start_thread
17   fun:clone
18}
19
20# Whatever mod_watchdog does setting up its threads, it involves
21# thread-local storage, too.
22{
23   watchdog_child_thread_init
24   Memcheck:Leak
25   match-leak-kinds: possible
26   fun:calloc
27   fun:allocate_dtv
28   fun:_dl_allocate_tls
29   fun:allocate_stack
30   fun:pthread_create@*
31   obj:/usr/sbin/apache2
32   ...
33   fun:ap_run_child_init
34   obj:/usr/lib/apache2/modules/mod_mpm_*.so
35   ...
36   obj:/usr/lib/apache2/modules/mod_mpm_*.so
37   fun:ap_run_mpm
38   ...
39}
40
41# mod_http2 needs thread-local storage, too.
42{
43   http2_child_thread_init
44   Memcheck:Leak
45   match-leak-kinds: possible
46   fun:calloc
47   fun:allocate_dtv
48   fun:_dl_allocate_tls
49   fun:allocate_stack
50   fun:pthread_create@*
51   obj:/usr/lib/apache2/modules/mod_http2.so
52   ...
53   obj:/usr/lib/apache2/modules/mod_http2.so
54   fun:ap_run_child_init
55   obj:/usr/lib/apache2/modules/mod_mpm_*.so
56   ...
57}
58
59# There's a bunch of reports of leaks from getaddrinfo, but outside
60# the scope of mod_gnutls to fix.
61{
62   apr_getaddrinfo_leak
63   Memcheck:Leak
64   match-leak-kinds: definite
65   fun:malloc
66   ...
67   fun:getaddrinfo
68   obj:/usr/lib/*/libapr-1.so.*
69   ...
70}
71
72# For some reason there's a leak from dlopen called by
73# p11_kit_module_load in the child processes.
74{
75   p11_kit_module_load
76   Memcheck:Leak
77   match-leak-kinds: definite
78   fun:malloc
79   ...
80   fun:dlopen@*
81   obj:/usr/lib/*/libp11-kit.so.*
82   fun:p11_kit_module_load
83}
Note: See TracBrowser for help on using the repository browser.