Skip to content

Commit cb1659f

Browse files
committed
added valgrind.suppress so that we can run tests with TEST_NGINX_USE_VALGRIND=1. openresty#15
1 parent 5490ab1 commit cb1659f

File tree

2 files changed

+170
-0
lines changed

2 files changed

+170
-0
lines changed

t/chash.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ server3: 8182
6565
points number: 2080
6666
--- no_error_log
6767
[error]
68+
--- timeout: 30
6869
6970
7071
@@ -169,6 +170,7 @@ ok
169170
--- error_code: 200
170171
--- no_error_log
171172
[error]
173+
--- timeout: 10
172174
173175
174176
@@ -203,6 +205,7 @@ server1, 434
203205
server2, 534
204206
--- no_error_log
205207
[error]
208+
--- timeout: 10
206209
207210
208211
@@ -282,3 +285,4 @@ same: 90255
282285
diff: 9745
283286
--- no_error_log
284287
[error]
288+
--- timeout: 30

valgrind.suppress

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
{
2+
<insert_a_suppression_name_here>
3+
Memcheck:Addr1
4+
fun:ngx_init_cycle
5+
fun:ngx_master_process_cycle
6+
fun:main
7+
}
8+
{
9+
<insert_a_suppression_name_here>
10+
Memcheck:Addr4
11+
fun:ngx_init_cycle
12+
fun:ngx_master_process_cycle
13+
fun:main
14+
}
15+
{
16+
<insert_a_suppression_name_here>
17+
Memcheck:Cond
18+
fun:ngx_vslprintf
19+
fun:ngx_snprintf
20+
fun:ngx_sock_ntop
21+
fun:ngx_event_accept
22+
fun:ngx_epoll_process_events
23+
fun:ngx_process_events_and_timers
24+
}
25+
{
26+
<insert_a_suppression_name_here>
27+
Memcheck:Cond
28+
fun:ngx_vslprintf
29+
fun:ngx_snprintf
30+
fun:ngx_sock_ntop
31+
fun:ngx_event_accept
32+
fun:ngx_epoll_process_events
33+
fun:ngx_process_events_and_timers
34+
}
35+
{
36+
<insert_a_suppression_name_here>
37+
Memcheck:Addr1
38+
fun:ngx_vslprintf
39+
fun:ngx_snprintf
40+
fun:ngx_sock_ntop
41+
fun:ngx_event_accept
42+
}
43+
{
44+
<insert_a_suppression_name_here>
45+
exp-sgcheck:SorG
46+
fun:ngx_http_lua_ndk_set_var_get
47+
}
48+
{
49+
<insert_a_suppression_name_here>
50+
exp-sgcheck:SorG
51+
fun:ngx_http_variables_init_vars
52+
fun:ngx_http_block
53+
}
54+
{
55+
<insert_a_suppression_name_here>
56+
exp-sgcheck:SorG
57+
fun:ngx_conf_parse
58+
}
59+
{
60+
<insert_a_suppression_name_here>
61+
exp-sgcheck:SorG
62+
fun:ngx_vslprintf
63+
fun:ngx_log_error_core
64+
}
65+
{
66+
<insert_a_suppression_name_here>
67+
Memcheck:Param
68+
epoll_ctl(event)
69+
fun:epoll_ctl
70+
}
71+
{
72+
<insert_a_suppression_name_here>
73+
Memcheck:Cond
74+
fun:ngx_conf_flush_files
75+
fun:ngx_single_process_cycle
76+
}
77+
{
78+
<insert_a_suppression_name_here>
79+
Memcheck:Cond
80+
fun:memcpy
81+
fun:ngx_vslprintf
82+
fun:ngx_log_error_core
83+
fun:ngx_http_charset_header_filter
84+
}
85+
{
86+
<insert_a_suppression_name_here>
87+
Memcheck:Param
88+
socketcall.setsockopt(optval)
89+
fun:setsockopt
90+
fun:drizzle_state_connect
91+
}
92+
{
93+
<insert_a_suppression_name_here>
94+
Memcheck:Cond
95+
fun:ngx_conf_flush_files
96+
fun:ngx_single_process_cycle
97+
fun:main
98+
}
99+
{
100+
<insert_a_suppression_name_here>
101+
Memcheck:Leak
102+
fun:malloc
103+
fun:ngx_alloc
104+
fun:ngx_event_process_init
105+
}
106+
{
107+
<insert_a_suppression_name_here>
108+
Memcheck:Param
109+
sendmsg(mmsg[0].msg_hdr)
110+
fun:sendmmsg
111+
fun:__libc_res_nsend
112+
}
113+
{
114+
<insert_a_suppression_name_here>
115+
Memcheck:Param
116+
sendmsg(msg.msg_iov[0])
117+
fun:__sendmsg_nocancel
118+
fun:ngx_write_channel
119+
fun:ngx_pass_open_channel
120+
fun:ngx_start_cache_manager_processes
121+
}
122+
{
123+
<insert_a_suppression_name_here>
124+
Memcheck:Cond
125+
fun:ngx_init_cycle
126+
fun:ngx_master_process_cycle
127+
fun:main
128+
}
129+
{
130+
<insert_a_suppression_name_here>
131+
Memcheck:Cond
132+
fun:index
133+
fun:expand_dynamic_string_token
134+
fun:_dl_map_object
135+
fun:map_doit
136+
fun:_dl_catch_error
137+
fun:do_preload
138+
fun:dl_main
139+
fun:_dl_sysdep_start
140+
fun:_dl_start
141+
}
142+
{
143+
<insert_a_suppression_name_here>
144+
Memcheck:Param
145+
sendmsg(mmsg[0].msg_hdr)
146+
fun:sendmmsg
147+
fun:__libc_res_nsend
148+
fun:__libc_res_nquery
149+
fun:__libc_res_nquerydomain
150+
fun:__libc_res_nsearch
151+
}
152+
{
153+
<insert_a_suppression_name_here>
154+
Memcheck:Leak
155+
match-leak-kinds: definite
156+
fun:malloc
157+
fun:ngx_alloc
158+
fun:ngx_set_environment
159+
fun:ngx_single_process_cycle
160+
fun:main
161+
}
162+
{
163+
<insert_a_suppression_name_here>
164+
Memcheck:Cond
165+
obj:*
166+
}

0 commit comments

Comments
 (0)