Skip to content

Commit 5423fca

Browse files
committed
Amended valgrind suppressions
1 parent 5bce346 commit 5423fca

File tree

3 files changed

+130
-4
lines changed

3 files changed

+130
-4
lines changed

unit-tests/ci/zephir_parser.3.7.0.sup

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@
2424
fun:_object_and_properties_init
2525
fun:ZEND_NEW_SPEC_VAR_HANDLER
2626
}
27+
{
28+
ZEND_NEW_SPEC_VAR_HANDLER_2
29+
Memcheck:Leak
30+
fun:malloc
31+
...
32+
fun:_object_and_properties_init
33+
fun:_object_init_ex
34+
fun:ZEND_NEW_SPEC_VAR_HANDLER
35+
}
2736
{
2837
ZEND_NEW_SPEC_CONST_HANDLER
2938
Memcheck:Leak
@@ -33,6 +42,16 @@
3342
fun:_object_and_properties_init
3443
fun:ZEND_NEW_SPEC_CONST_HANDLER
3544
}
45+
{
46+
ZEND_NEW_SPEC_CONST_HANDLER_2
47+
Memcheck:Leak
48+
fun:malloc
49+
...
50+
fun:zend_objects_new
51+
fun:_object_and_properties_init
52+
fun:_object_init_ex
53+
fun:ZEND_NEW_SPEC_CONST_HANDLER
54+
}
3655
{
3756
ZEND_ASSIGN_SPEC_CV_TMP_HANDLER
3857
Memcheck:Leak
@@ -45,12 +64,23 @@
4564
fun:php_execute_script
4665
}
4766
{
48-
ZEND_ASSIGN_SPEC_CV_TMP_HANDLER
67+
ZEND_ASSIGN_SPEC_CV_TMP_HANDLER_2
68+
Memcheck:Leak
69+
fun:malloc
70+
...
71+
fun:ZEND_ASSIGN_SPEC_CV_TMP_HANDLER
72+
fun:execute_ex
73+
fun:zend_execute_scripts
74+
fun:php_execute_script
75+
}
76+
{
77+
ZEND_ASSIGN_SPEC_CV_TMP_HANDLER_3
4978
Memcheck:Leak
5079
fun:malloc
5180
...
5281
fun:ZEND_ASSIGN_SPEC_CV_TMP_HANDLER
5382
fun:execute_ex
83+
fun:zend_execute
5484
fun:zend_execute_scripts
5585
fun:php_execute_script
5686
}
@@ -64,6 +94,16 @@
6494
fun:zend_execute_scripts
6595
fun:php_execute_script
6696
}
97+
{
98+
ZEND_NEW_SPEC_HANDLER_2
99+
Memcheck:Leak
100+
fun:malloc
101+
...
102+
fun:ZEND_NEW_SPEC_HANDLER
103+
fun:execute_ex
104+
fun:zend_execute
105+
fun:zend_execute_scripts
106+
}
67107
{
68108
ZEND_NEW_SPEC_UNUSED_HANDLER
69109
Memcheck:Leak
@@ -84,6 +124,18 @@
84124
fun:zend_execute_scripts
85125
fun:php_execute_script
86126
}
127+
{
128+
ZEND_ASSIGN_SPEC_CV_CONST_HANDLER_2
129+
Memcheck:Leak
130+
fun:malloc
131+
...
132+
fun:zend_assign_const_to_variable
133+
fun:ZEND_ASSIGN_SPEC_CV_CONST_HANDLER
134+
fun:execute_ex
135+
fun:zend_execute
136+
fun:zend_execute_scripts
137+
fun:php_execute_script
138+
}
87139
{
88140
persistent_compile_file
89141
Memcheck:Leak
@@ -92,3 +144,14 @@
92144
fun:zend_accel_load_script
93145
fun:persistent_compile_file
94146
}
147+
{
148+
ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER
149+
Memcheck:Leak
150+
fun:malloc
151+
...
152+
fun:compile_file
153+
...
154+
fun:ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER
155+
fun:execute_ex
156+
fun:zend_execute
157+
}

unit-tests/ci/zephir_parser.sup

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@
2424
fun:_object_and_properties_init
2525
fun:ZEND_NEW_SPEC_VAR_HANDLER
2626
}
27+
{
28+
ZEND_NEW_SPEC_VAR_HANDLER_2
29+
Memcheck:Leak
30+
fun:malloc
31+
...
32+
fun:_object_and_properties_init
33+
fun:_object_init_ex
34+
fun:ZEND_NEW_SPEC_VAR_HANDLER
35+
}
2736
{
2837
ZEND_NEW_SPEC_CONST_HANDLER
2938
Memcheck:Leak
@@ -33,6 +42,16 @@
3342
fun:_object_and_properties_init
3443
fun:ZEND_NEW_SPEC_CONST_HANDLER
3544
}
45+
{
46+
ZEND_NEW_SPEC_CONST_HANDLER_2
47+
Memcheck:Leak
48+
fun:malloc
49+
...
50+
fun:zend_objects_new
51+
fun:_object_and_properties_init
52+
fun:_object_init_ex
53+
fun:ZEND_NEW_SPEC_CONST_HANDLER
54+
}
3655
{
3756
ZEND_ASSIGN_SPEC_CV_TMP_HANDLER
3857
Memcheck:Leak
@@ -45,12 +64,23 @@
4564
fun:php_execute_script
4665
}
4766
{
48-
ZEND_ASSIGN_SPEC_CV_TMP_HANDLER
67+
ZEND_ASSIGN_SPEC_CV_TMP_HANDLER_2
68+
Memcheck:Leak
69+
fun:malloc
70+
...
71+
fun:ZEND_ASSIGN_SPEC_CV_TMP_HANDLER
72+
fun:execute_ex
73+
fun:zend_execute_scripts
74+
fun:php_execute_script
75+
}
76+
{
77+
ZEND_ASSIGN_SPEC_CV_TMP_HANDLER_3
4978
Memcheck:Leak
5079
fun:malloc
5180
...
5281
fun:ZEND_ASSIGN_SPEC_CV_TMP_HANDLER
5382
fun:execute_ex
83+
fun:zend_execute
5484
fun:zend_execute_scripts
5585
fun:php_execute_script
5686
}
@@ -64,6 +94,16 @@
6494
fun:zend_execute_scripts
6595
fun:php_execute_script
6696
}
97+
{
98+
ZEND_NEW_SPEC_HANDLER_2
99+
Memcheck:Leak
100+
fun:malloc
101+
...
102+
fun:ZEND_NEW_SPEC_HANDLER
103+
fun:execute_ex
104+
fun:zend_execute
105+
fun:zend_execute_scripts
106+
}
67107
{
68108
ZEND_NEW_SPEC_UNUSED_HANDLER
69109
Memcheck:Leak
@@ -84,6 +124,18 @@
84124
fun:zend_execute_scripts
85125
fun:php_execute_script
86126
}
127+
{
128+
ZEND_ASSIGN_SPEC_CV_CONST_HANDLER_2
129+
Memcheck:Leak
130+
fun:malloc
131+
...
132+
fun:zend_assign_const_to_variable
133+
fun:ZEND_ASSIGN_SPEC_CV_CONST_HANDLER
134+
fun:execute_ex
135+
fun:zend_execute
136+
fun:zend_execute_scripts
137+
fun:php_execute_script
138+
}
87139
{
88140
persistent_compile_file
89141
Memcheck:Leak
@@ -92,3 +144,14 @@
92144
fun:zend_accel_load_script
93145
fun:persistent_compile_file
94146
}
147+
{
148+
ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER
149+
Memcheck:Leak
150+
fun:malloc
151+
...
152+
fun:compile_file
153+
...
154+
fun:ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER
155+
fun:execute_ex
156+
fun:zend_execute
157+
}

unit-tests/functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function dd()
2929
array_map(function ($x) {
3030
var_dump($x);
3131
}, func_get_args());
32-
}
3332

34-
die(1);
33+
die(1);
34+
}
3535
}

0 commit comments

Comments
 (0)