==3164== Memcheck, a memory error detector ==3164== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==3164== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info ==3164== Command: php -dzend_extension=xdebug.so bin/phpunit --configuration build/phpunit-with-coverage.xml ==3164== --3164-- Valgrind options: --3164-- -v --3164-- Contents of /proc/version: --3164-- Linux version 3.19.0-25-generic (buildd@lgw01-20) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 --3164-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-rdtscp-sse3-avx --3164-- Page sizes: currently 4096, max supported 4096 --3164-- Valgrind library directory: /usr/lib/valgrind --3164-- Reading syms from /usr/bin/php7.0 --3164-- object doesn't have a symbol table --3164-- Reading syms from /lib/x86_64-linux-gnu/ld-2.19.so --3164-- Considering /lib/x86_64-linux-gnu/ld-2.19.so .. --3164-- .. CRC mismatch (computed ef2bc4a1 wanted 12987a55) --3164-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.19.so .. --3164-- .. CRC is valid --3164-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux --3164-- Considering /usr/lib/valgrind/memcheck-amd64-linux .. --3164-- .. CRC mismatch (computed 4f1eed43 wanted a323a3ab) --3164-- object doesn't have a symbol table --3164-- object doesn't have a dynamic symbol table --3164-- Scheduler: using generic scheduler lock implementation. --3164-- Reading suppressions file: /usr/lib/valgrind/default.supp ==3164== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-3164-by-tony-on-??? ==3164== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-3164-by-tony-on-??? ==3164== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-3164-by-tony-on-??? ==3164== ==3164== TO CONTROL THIS PROCESS USING vgdb (which you probably ==3164== don't want to do, unless you know exactly what you're doing, ==3164== or are doing some strange experiment): ==3164== /usr/lib/valgrind/../../bin/vgdb --pid=3164 ...command... ==3164== ==3164== TO DEBUG THIS PROCESS USING GDB: start GDB like this ==3164== /path/to/gdb php ==3164== and then give GDB the following command ==3164== target remote | /usr/lib/valgrind/../../bin/vgdb --pid=3164 ==3164== --pid is optional if only one valgrind process is running ==3164== --3164-- REDIR: 0x4019ca0 (ld-linux-x86-64.so.2:strlen) redirected to 0x380764b1 (???) --3164-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so --3164-- Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so .. --3164-- .. CRC mismatch (computed fc68135e wanted 45f5e986) --3164-- object doesn't have a symbol table --3164-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so --3164-- Considering /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so .. --3164-- .. CRC mismatch (computed ae683f7e wanted 08c06df2) --3164-- object doesn't have a symbol table ==3164== WARNING: new redirection conflicts with existing -- ignoring it --3164-- old: 0x04019ca0 (strlen ) R-> (0000.0) 0x380764b1 ??? --3164-- new: 0x04019ca0 (strlen ) R-> (2007.0) 0x04c2e1a0 strlen --3164-- REDIR: 0x4019a50 (ld-linux-x86-64.so.2:index) redirected to 0x4c2dd50 (index) --3164-- REDIR: 0x4019c70 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c2f2f0 (strcmp) --3164-- REDIR: 0x401a9c0 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c31da0 (mempcpy) --3164-- Reading syms from /lib/x86_64-linux-gnu/libz.so.1.2.8 --3164-- object doesn't have a symbol table --3164-- Reading syms from /lib/x86_64-linux-gnu/libresolv-2.19.so --3164-- Considering /lib/x86_64-linux-gnu/libresolv-2.19.so .. --3164-- .. CRC mismatch (computed 9bc9ca4a wanted bc99cfa5) --3164-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libresolv-2.19.so .. --3164-- .. CRC is valid --3164-- Reading syms from /usr/lib/x86_64-linux-gnu/libdb-5.3.so --3164-- object doesn't have a symbol table --3164-- Reading syms from /usr/lib/libqdbm.so.14.14.0 --3164-- object doesn't have a symbol table --3164-- Reading syms from /lib/x86_64-linux-gnu/libpcre.so.3.13.1 --3164-- Considering /lib/x86_64-linux-gnu/libpcre.so.3.13.1 .. --3164-- .. CRC mismatch (computed de394777 wanted 5a95ab6d) --3164-- object doesn't have a symbol table --3164-- Reading syms from /lib/x86_64-linux-gnu/libm-2.19.so --3164-- Considering /lib/x86_64-linux-gnu/libm-2.19.so .. --3164-- .. CRC mismatch (computed 0fbb5cf0 wanted cac31e3b) --3164-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libm-2.19.so .. --3164-- .. CRC is valid --3164-- Reading syms from /lib/x86_64-linux-gnu/libdl-2.19.so --3164-- Considering /lib/x86_64-linux-gnu/libdl-2.19.so .. --3164-- .. CRC mismatch (computed f1ad1153 wanted 4c149e5f) --3164-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libdl-2.19.so .. --3164-- .. CRC is valid --3164-- Reading syms from /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.1 --3164-- object doesn't have a symbol table --3164-- Reading syms from /usr/lib/x86_64-linux-gnu/libssl.so.1.0.2 --3164-- object doesn't have a symbol table --3164-- Reading syms from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2 --3164-- object doesn't have a symbol table --3164-- Reading syms from /lib/x86_64-linux-gnu/libc-2.19.so --3164-- Considering /lib/x86_64-linux-gnu/libc-2.19.so .. --3164-- .. CRC mismatch (computed 600bae51 wanted b4d0580d) --3164-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.19.so .. --3164-- .. CRC is valid --3164-- Reading syms from /lib/x86_64-linux-gnu/libpthread-2.19.so --3164-- Considering /lib/x86_64-linux-gnu/libpthread-2.19.so .. --3164-- .. CRC mismatch (computed 4841b2fb wanted eec353ab) --3164-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libpthread-2.19.so .. --3164-- .. CRC is valid --3164-- Reading syms from /lib/x86_64-linux-gnu/liblzma.so.5.0.0 --3164-- object doesn't have a symbol table --3164-- REDIR: 0x6a45d60 (libc.so.6:strcasecmp) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --3164-- REDIR: 0x6a48050 (libc.so.6:strncasecmp) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --3164-- REDIR: 0x6a45530 (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --3164-- REDIR: 0x6a43780 (libc.so.6:strncpy) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --3164-- REDIR: 0x6a41ee0 (libc.so.6:strncmp) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --3164-- REDIR: 0x6a41500 (libc.so.6:strcpy) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --3164-- REDIR: 0x6a45bb0 (libc.so.6:stpcpy) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --3164-- REDIR: 0x6a3fe20 (libc.so.6:index) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --3164-- REDIR: 0x6a44f60 (libc.so.6:bcmp) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --3164-- REDIR: 0x6a40070 (libc.so.6:strcmp) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --3164-- REDIR: 0x6ac1ab0 (libc.so.6:__memmove_chk) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --3164-- REDIR: 0x6ac1a60 (libc.so.6:__memcpy_chk) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --3164-- REDIR: 0x6a4a730 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --3164-- REDIR: 0x6a3fc20 (libc.so.6:strcat) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --3164-- REDIR: 0x6a437c0 (libc.so.6:rindex) redirected to 0x4c2da30 (rindex) --3164-- REDIR: 0x6a41ac0 (libc.so.6:strlen) redirected to 0x4c2e0e0 (strlen) --3164-- REDIR: 0x6a3b750 (libc.so.6:malloc) redirected to 0x4c2ab10 (malloc) --3164-- REDIR: 0x6a4a780 (libc.so.6:__GI_memcpy) redirected to 0x4c2fc90 (__GI_memcpy) --3164-- REDIR: 0x6a50fd0 (libc.so.6:__memcpy_sse2_unaligned) redirected to 0x4c2f6b0 (memcpy@@GLIBC_2.14) --3164-- REDIR: 0x6a3fe50 (libc.so.6:__GI_strchr) redirected to 0x4c2db90 (__GI_strchr) --3164-- REDIR: 0x6a3bef0 (libc.so.6:realloc) redirected to 0x4c2ce10 (realloc) --3164-- REDIR: 0x6b09090 (libc.so.6:__memmove_ssse3_back) redirected to 0x4c2f450 (memcpy@GLIBC_2.2.5) --3164-- REDIR: 0x6a41f30 (libc.so.6:__GI_strncmp) redirected to 0x4c2e930 (__GI_strncmp) --3164-- REDIR: 0x6a455c0 (libc.so.6:memset) redirected to 0x4c31350 (memset) --3164-- REDIR: 0x6b19060 (libc.so.6:__memcmp_sse4_1) redirected to 0x4c30c00 (__memcmp_sse4_1) --3164-- REDIR: 0x6a3bdf0 (libc.so.6:free) redirected to 0x4c2bd80 (free) --3164-- REDIR: 0x6a400b0 (libc.so.6:__GI_strcmp) redirected to 0x4c2f200 (__GI_strcmp) --3164-- REDIR: 0x6a44c10 (libc.so.6:memchr) redirected to 0x4c2f390 (memchr) --3164-- REDIR: 0x6a4cac0 (libc.so.6:strchrnul) redirected to 0x4c319b0 (strchrnul) --3164-- REDIR: 0x6a45bf0 (libc.so.6:__GI_stpcpy) redirected to 0x4c30da0 (__GI_stpcpy) --3164-- REDIR: 0x6a44410 (libc.so.6:__GI_strstr) redirected to 0x4c32030 (__strstr_sse2) --3164-- REDIR: 0x6a44fa0 (libc.so.6:__GI_memcmp) redirected to 0x4c30b80 (__GI_memcmp) --3164-- REDIR: 0x6a41540 (libc.so.6:__GI_strcpy) redirected to 0x4c2e2a0 (__GI_strcpy) --3164-- REDIR: 0x6b03ae0 (libc.so.6:__memcpy_chk_ssse3_back) redirected to 0x4c31e90 (__memcpy_chk) --3164-- REDIR: 0x6af7850 (libc.so.6:__strncasecmp_avx) redirected to 0x4c2eb60 (strncasecmp) --3164-- REDIR: 0x6af61e0 (libc.so.6:__strcasecmp_avx) redirected to 0x4c2ea80 (strcasecmp) --3164-- REDIR: 0x6a453a0 (libc.so.6:__GI_memmove) redirected to 0x4c31660 (__GI_memmove) --3164-- REDIR: 0x6a3c220 (libc.so.6:calloc) redirected to 0x4c2cbf0 (calloc) --3164-- Reading syms from /usr/lib/php/20151012/opcache.so --3164-- object doesn't have a symbol table --3164-- Reading syms from /usr/lib/php/20151012/xdebug.so --3164-- REDIR: 0x6af9200 (libc.so.6:__strcmp_ssse3) redirected to 0x4c2f1b0 (strcmp) --3164-- Reading syms from /usr/lib/php/20151012/json.so --3164-- object doesn't have a symbol table --3164-- Reading syms from /usr/lib/php/20151012/readline.so --3164-- object doesn't have a symbol table --3164-- Reading syms from /usr/lib/x86_64-linux-gnu/libedit.so.2.0.47 --3164-- object doesn't have a symbol table --3164-- Reading syms from /lib/x86_64-linux-gnu/libtinfo.so.5.9 --3164-- Considering /lib/x86_64-linux-gnu/libtinfo.so.5.9 .. --3164-- .. CRC mismatch (computed a766b3f6 wanted 5ffaddcc) --3164-- object doesn't have a symbol table --3164-- REDIR: 0xffffffffff600400 (???:???) redirected to 0x3807649d (???) --3164-- REDIR: 0x6a561c0 (libc.so.6:__strncpy_sse2_unaligned) redirected to 0x4c2e770 (__strncpy_sse2_unaligned) --3164-- REDIR: 0xffffffffff600000 (???:???) redirected to 0x38076493 (???) --3164-- REDIR: 0x6a41ea0 (libc.so.6:strncat) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --3164-- REDIR: 0x6a592a0 (libc.so.6:__strncat_sse2_unaligned) redirected to 0x4c2df70 (strncat) --3164-- REDIR: 0x6a449d0 (libc.so.6:strstr) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --3164-- REDIR: 0x6a5a230 (libc.so.6:__strstr_sse2_unaligned) redirected to 0x4c31fa0 (strstr) --3164-- REDIR: 0x6a4c8b0 (libc.so.6:rawmemchr) redirected to 0x4c319f0 (rawmemchr) --3164-- REDIR: 0x6a43e40 (libc.so.6:strspn) redirected to 0x4a25720 (_vgnU_ifunc_wrapper) --3164-- REDIR: 0x6af60c0 (libc.so.6:__strspn_sse42) redirected to 0x4c32220 (strspn) --3164-- REDIR: 0x6afa460 (libc.so.6:__strncmp_ssse3) redirected to 0x4c2e8c0 (strncmp) PHPUnit 5.2.4 by Sebastian Bergmann and contributors. Runtime: PHP 7.0.3-5+deb.sury.org~trusty+1 with Xdebug 2.4.0RC4 Configuration: /home/tony/xdebug_test/build/phpunit-with-coverage.xml ==3164== Invalid read of size 1 ==3164== at 0x7E92BBE: xdebug_set_in_ex (xdebug_set.c:72) ==3164== by 0x7E858C2: xdebug_analyse_branch (xdebug_code_coverage.c:705) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== Address 0xceb4c34 is 2,548 bytes inside an unallocated block of size 2,510,240 in arena "client" ==3164== ==3164== Invalid read of size 1 ==3164== at 0x7E92B85: xdebug_set_add (xdebug_set.c:50) ==3164== by 0x7E858E9: xdebug_analyse_branch (xdebug_code_coverage.c:711) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== Address 0xceb4c34 is 2,548 bytes inside an unallocated block of size 2,510,240 in arena "client" ==3164== ==3164== ==3164== Process terminating with default action of signal 11 (SIGSEGV) ==3164== Access not within mapped region at address 0x2D084840 ==3164== at 0x7E92BBE: xdebug_set_in_ex (xdebug_set.c:72) ==3164== by 0x7E858C2: xdebug_analyse_branch (xdebug_code_coverage.c:705) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E85E82: xdebug_analyse_oparray (xdebug_code_coverage.c:787) ==3164== by 0x7E85E82: prefill_from_oparray (xdebug_code_coverage.c:872) ==3164== by 0x7E86055: prefill_from_function_table (xdebug_code_coverage.c:914) ==3164== by 0x7E860BD: prefill_from_class_table (xdebug_code_coverage.c:942) ==3164== by 0x72D47D: zend_hash_apply_with_arguments (in /usr/bin/php7.0) ==3164== by 0x7E8732A: xdebug_code_coverage_start_of_function (xdebug_code_coverage.c:968) ==3164== by 0x7E81EF5: xdebug_execute_ex (xdebug.c:1849) ==3164== by 0x70E84B: zend_call_function (in /usr/bin/php7.0) ==3164== If you believe this happened as a result of a stack ==3164== overflow in your program's main thread (unlikely but ==3164== possible), you can try to increase the size of the ==3164== main thread stack using the --main-stacksize= flag. ==3164== The main thread stack size used in this run was 8388608. ==3164== ==3164== HEAP SUMMARY: ==3164== in use at exit: 2,754,945 bytes in 42,171 blocks ==3164== total heap usage: 75,980 allocs, 33,809 frees, 6,827,144 bytes allocated ==3164== ==3164== Searching for pointers to 42,171 not-freed blocks ==3164== Checked 71,823,208 bytes ==3164== ==3164== LEAK SUMMARY: ==3164== definitely lost: 0 bytes in 0 blocks ==3164== indirectly lost: 0 bytes in 0 blocks ==3164== possibly lost: 1,378,683 bytes in 12,788 blocks ==3164== still reachable: 1,376,262 bytes in 29,383 blocks ==3164== suppressed: 0 bytes in 0 blocks ==3164== Rerun with --leak-check=full to see details of leaked memory ==3164== ==3164== ERROR SUMMARY: 25 errors from 2 contexts (suppressed: 0 from 0) ==3164== ==3164== 9 errors in context 1 of 2: ==3164== Invalid read of size 1 ==3164== at 0x7E92BBE: xdebug_set_in_ex (xdebug_set.c:72) ==3164== by 0x7E858C2: xdebug_analyse_branch (xdebug_code_coverage.c:705) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== Address 0xceb4c34 is 2,548 bytes inside an unallocated block of size 2,510,240 in arena "client" ==3164== ==3164== ==3164== 16 errors in context 2 of 2: ==3164== Invalid read of size 1 ==3164== at 0x7E92B85: xdebug_set_add (xdebug_set.c:50) ==3164== by 0x7E858E9: xdebug_analyse_branch (xdebug_code_coverage.c:711) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== by 0x7E859F2: xdebug_analyse_branch (xdebug_code_coverage.c:729) ==3164== Address 0xceb4c34 is 2,548 bytes inside an unallocated block of size 2,510,240 in arena "client" ==3164== ==3164== ERROR SUMMARY: 25 errors from 2 contexts (suppressed: 0 from 0)