Skip to content

Commit fdb79fd

Browse files
authored
suppress Invalid read error in test_redis (#707)
A call to `zend_map_ptr_reset` in `zend_deactivate` triggers `Invalid read of size 8` valgrind error in test_redis during `tlib_php_request_eval_expr` and `nr_php_zval_free` in the last php request lifecycle when Observer API is used to hook into Zend engine. This error is triggered on all PHPs with this patch: php/php-src@ff62d11
1 parent 447daab commit fdb79fd

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

agent/tests/valgrind-suppressions

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,25 @@
128128
...
129129
fun:zend_string_equal_val
130130
}
131+
132+
{
133+
<invalid-read-see-gh-10783>
134+
Memcheck:Addr8
135+
fun:_zend_observe_fcall_begin
136+
...
137+
fun:tlib_php_request_eval_expr
138+
fun:test_*_datastore_instance
139+
fun:test_main
140+
...
141+
}
142+
143+
{
144+
<invalid-read-see-gh-10783>
145+
Memcheck:Addr8
146+
fun:_zend_observe_fcall_begin
147+
...
148+
fun:nr_php_zval_free
149+
fun:test_*_datastore_instance
150+
fun:test_main
151+
...
152+
}

0 commit comments

Comments
 (0)