Skip to content

Commit f068a85

Browse files
authored
tests: valgrind.suppress: added SSL-related valgrind.suppress entries. (openresty#478)
Currently each upstream block leaks once. Temporarily ignore these leaks. TODO: Consider adding deallocation logic in nginx core later.
1 parent b5e1933 commit f068a85

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

valgrind.suppress

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,51 @@
131131
fun:ssl_session_dup
132132
fun:tls_process_new_session_ticket
133133
}
134+
{
135+
<insert_a_suppression_name_here>
136+
Memcheck:Leak
137+
match-leak-kinds: definite
138+
fun:malloc
139+
fun:CRYPTO_malloc
140+
fun:ssl_session_dup
141+
fun:tls_process_new_session_ticket
142+
fun:ossl_statem_client_process_message
143+
fun:read_state_machine
144+
fun:state_machine
145+
fun:ossl_statem_connect
146+
fun:ssl3_read_bytes
147+
fun:ssl3_read_internal
148+
fun:ssl3_read
149+
fun:ssl_read_internal
150+
fun:SSL_read
151+
fun:ngx_ssl_recv
152+
fun:ngx_http_upstream_process_header
153+
fun:ngx_http_upstream_handler
154+
fun:ngx_epoll_process_events
155+
fun:ngx_process_events_and_timers
156+
fun:ngx_single_process_cycle
157+
fun:main
158+
}
159+
{
160+
<insert_a_suppression_name_here>
161+
Memcheck:Leak
162+
match-leak-kinds: definite
163+
fun:malloc
164+
fun:CRYPTO_malloc
165+
fun:CRYPTO_zalloc
166+
fun:SSL_SESSION_new
167+
fun:ssl_get_new_session
168+
fun:tls_construct_client_hello
169+
fun:write_state_machine
170+
fun:state_machine
171+
fun:ossl_statem_connect
172+
fun:SSL_do_handshake
173+
fun:ngx_ssl_handshake
174+
fun:ngx_http_upstream_ssl_init_connection
175+
fun:ngx_http_upstream_send_request_handler
176+
fun:ngx_http_upstream_handler
177+
fun:ngx_epoll_process_events
178+
fun:ngx_process_events_and_timers
179+
fun:ngx_single_process_cycle
180+
fun:main
181+
}

0 commit comments

Comments
 (0)