Skip to content

Commit 258c55b

Browse files
committed
Added valgrind suppression files
1 parent 9af18c6 commit 258c55b

File tree

3 files changed

+189
-1
lines changed

3 files changed

+189
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ before_install:
5656

5757
script:
5858
- php --ri "Zephir Parser"
59-
- valgrind --read-var-info=yes --error-exitcode=1 --fullpath-after= --track-origins=yes --leak-check=full --num-callers=20 $(phpenv which php) ./unit-tests/phpunit -c phpunit.xml.dist --debug unit-tests/
59+
- valgrind --read-var-info=yes --error-exitcode=1 --fullpath-after= --track-origins=yes --leak-check=full --num-callers=20 --suppressions=unit-tests/ci/zephir_parser.3.7.0.sup $(phpenv which php) ./unit-tests/phpunit -c phpunit.xml.dist --debug unit-tests/
6060

6161
notifications:
6262
email:
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
{
2+
phar_compile_file
3+
Memcheck:Leak
4+
fun:malloc
5+
...
6+
fun:phar_compile_file
7+
fun:zend_execute_scripts
8+
}
9+
{
10+
php_build_argv
11+
Memcheck:Leak
12+
fun:malloc
13+
...
14+
fun:php_build_argv
15+
fun:php_hash_environment
16+
fun:php_request_startup
17+
}
18+
{
19+
ZEND_NEW_SPEC_VAR_HANDLER
20+
Memcheck:Leak
21+
fun:malloc
22+
...
23+
fun:zend_objects_new
24+
fun:_object_and_properties_init
25+
fun:ZEND_NEW_SPEC_VAR_HANDLER
26+
}
27+
{
28+
ZEND_NEW_SPEC_CONST_HANDLER
29+
Memcheck:Leak
30+
fun:malloc
31+
...
32+
fun:zend_objects_new
33+
fun:_object_and_properties_init
34+
fun:ZEND_NEW_SPEC_CONST_HANDLER
35+
}
36+
{
37+
ZEND_ASSIGN_SPEC_CV_TMP_HANDLER
38+
Memcheck:Leak
39+
fun:malloc
40+
...
41+
fun:zend_assign_tmp_to_variable
42+
fun:ZEND_ASSIGN_SPEC_CV_TMP_HANDLER
43+
fun:execute_ex
44+
fun:zend_execute_scripts
45+
fun:php_execute_script
46+
}
47+
{
48+
ZEND_ASSIGN_SPEC_CV_TMP_HANDLER
49+
Memcheck:Leak
50+
fun:malloc
51+
...
52+
fun:ZEND_ASSIGN_SPEC_CV_TMP_HANDLER
53+
fun:execute_ex
54+
fun:zend_execute_scripts
55+
fun:php_execute_script
56+
}
57+
{
58+
ZEND_NEW_SPEC_HANDLER
59+
Memcheck:Leak
60+
fun:malloc
61+
...
62+
fun:ZEND_NEW_SPEC_HANDLER
63+
fun:execute_ex
64+
fun:zend_execute_scripts
65+
fun:php_execute_script
66+
}
67+
{
68+
ZEND_NEW_SPEC_UNUSED_HANDLER
69+
Memcheck:Leak
70+
fun:malloc
71+
...
72+
fun:zend_objects_new
73+
fun:_object_and_properties_init
74+
fun:ZEND_NEW_SPEC_UNUSED_HANDLER
75+
}
76+
{
77+
ZEND_ASSIGN_SPEC_CV_CONST_HANDLER
78+
Memcheck:Leak
79+
fun:malloc
80+
...
81+
fun:zend_assign_const_to_variable
82+
fun:ZEND_ASSIGN_SPEC_CV_CONST_HANDLER
83+
fun:execute_ex
84+
fun:zend_execute_scripts
85+
fun:php_execute_script
86+
}
87+
{
88+
persistent_compile_file
89+
Memcheck:Leak
90+
fun:malloc
91+
...
92+
fun:zend_accel_load_script
93+
fun:persistent_compile_file
94+
}

unit-tests/ci/zephir_parser.sup

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
{
2+
phar_compile_file
3+
Memcheck:Leak
4+
fun:malloc
5+
...
6+
fun:phar_compile_file
7+
fun:zend_execute_scripts
8+
}
9+
{
10+
php_build_argv
11+
Memcheck:Leak
12+
fun:malloc
13+
...
14+
fun:php_build_argv
15+
fun:php_hash_environment
16+
fun:php_request_startup
17+
}
18+
{
19+
ZEND_NEW_SPEC_VAR_HANDLER
20+
Memcheck:Leak
21+
fun:malloc
22+
...
23+
fun:zend_objects_new
24+
fun:_object_and_properties_init
25+
fun:ZEND_NEW_SPEC_VAR_HANDLER
26+
}
27+
{
28+
ZEND_NEW_SPEC_CONST_HANDLER
29+
Memcheck:Leak
30+
fun:malloc
31+
...
32+
fun:zend_objects_new
33+
fun:_object_and_properties_init
34+
fun:ZEND_NEW_SPEC_CONST_HANDLER
35+
}
36+
{
37+
ZEND_ASSIGN_SPEC_CV_TMP_HANDLER
38+
Memcheck:Leak
39+
fun:malloc
40+
...
41+
fun:zend_assign_tmp_to_variable
42+
fun:ZEND_ASSIGN_SPEC_CV_TMP_HANDLER
43+
fun:execute_ex
44+
fun:zend_execute_scripts
45+
fun:php_execute_script
46+
}
47+
{
48+
ZEND_ASSIGN_SPEC_CV_TMP_HANDLER
49+
Memcheck:Leak
50+
fun:malloc
51+
...
52+
fun:ZEND_ASSIGN_SPEC_CV_TMP_HANDLER
53+
fun:execute_ex
54+
fun:zend_execute_scripts
55+
fun:php_execute_script
56+
}
57+
{
58+
ZEND_NEW_SPEC_HANDLER
59+
Memcheck:Leak
60+
fun:malloc
61+
...
62+
fun:ZEND_NEW_SPEC_HANDLER
63+
fun:execute_ex
64+
fun:zend_execute_scripts
65+
fun:php_execute_script
66+
}
67+
{
68+
ZEND_NEW_SPEC_UNUSED_HANDLER
69+
Memcheck:Leak
70+
fun:malloc
71+
...
72+
fun:zend_objects_new
73+
fun:_object_and_properties_init
74+
fun:ZEND_NEW_SPEC_UNUSED_HANDLER
75+
}
76+
{
77+
ZEND_ASSIGN_SPEC_CV_CONST_HANDLER
78+
Memcheck:Leak
79+
fun:malloc
80+
...
81+
fun:zend_assign_const_to_variable
82+
fun:ZEND_ASSIGN_SPEC_CV_CONST_HANDLER
83+
fun:execute_ex
84+
fun:zend_execute_scripts
85+
fun:php_execute_script
86+
}
87+
{
88+
persistent_compile_file
89+
Memcheck:Leak
90+
fun:malloc
91+
...
92+
fun:zend_accel_load_script
93+
fun:persistent_compile_file
94+
}

0 commit comments

Comments
 (0)