Bug #76446 [Com]: zend_variables.c:73: zend_string_destroy: Assertion `!(zval_gc_flags((str)->gc.
| From: | spam2 at rhsoft dot net | Date: | Mon, 11 Jun 2018 11:07:01 +0000 |
| Subject: | Bug #76446 [Com]: zend_variables.c:73: zend_string_destroy: Assertion `!(zval_gc_flags((str)->gc. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-215616@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76446&edit=1
ID: 76446
Comment by: spam2 at rhsoft dot net
Reported by: spam2 at rhsoft dot net
Summary: zend_variables.c:73: zend_string_destroy: Assertion
`!(zval_gc_flags((str)->gc.
Status: Feedback
Type: Bug
Package: Reproducible crash
PHP Version: master-Git-2018-06-11 (Git)
Block user comment: N
Private report: N
New Comment:
yeah, that works after set "kernel.yama.ptrace_scope = 2" to
"kernel.yama.ptrace_scope = 1" in sysctl.conf :-)
php: /home/builduser/rpmbuild/BUILD/php-7.3.0/Zend/zend_variables.c:73: zend_string_destroy:
Assertion `!(zval_gc_flags((str)->gc.u.type_info) & (1<<6))' failed.
Program received signal SIGABRT, Aborted.
0x00007ffff68e2660 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: dnf debuginfo-install bzip2-libs-1.0.6-24.fc27.x86_64
cyrus-sasl-lib-2.1.26-34.fc27.x86_64 expat-2.2.5-1.fc27.x86_64 fontconfig-2.12.6-4.fc27.x86_64
freetype-2.8-8.fc27.x86_64 gd-2.2.5-3.fc27.x86_64 jbigkit-libs-2.1-8.fc27.x86_64
keyutils-libs-1.5.10-3.fc27.x86_64 krb5-libs-1.15.2-9.fc27.x86_64 libX11-1.6.5-4.fc27.x86_64
libXau-1.0.8-9.fc27.x86_64 libXpm-3.5.12-4.fc27.x86_64 libcom_err-1.43.5-2.fc27.x86_64
libcrypt-nss-2.26-28.fc27.x86_64 libcurl-7.55.1-12.fc27.x86_64 libgcc-7.3.1-5.fc27.x86_64
libgomp-7.3.1-5.fc27.x86_64 libicu-57.1-9.fc27.x86_64 libidn2-2.0.5-1.fc27.x86_64
libjpeg-turbo-1.5.3-1.fc27.x86_64 libnghttp2-1.31.1-1.fc27.x86_64 libpng-1.6.31-1.fc27.x86_64
libpsl-0.18.0-3.fc27.x86_64 libselinux-2.7-3.fc27.x86_64 libssh2-1.8.0-5.fc27.x86_64
libstdc++-7.3.1-5.fc27.x86_64 libtidy-5.4.0-3.fc27.x86_64 libtiff-4.0.9-10.fc27.x86_64
libunistring-0.9.10-1.fc27.x86_64 libwebp-1.0.0-1.fc27.x86_64 libxcb-1.12-5.fc27.x86_64
libxml2-2.9.7-1.fc2!
7.x86_64 libzip-1.3.2-1.fc27.x86_64 nspr-4.19.0-1.fc27.x86_64 nss-3.37.3-1.0.fc27.x86_64
nss-softokn-freebl-3.37.3-1.0.fc27.x86_64 nss-util-3.37.3-1.0.fc27.x86_64
openldap-2.4.45-4.fc27.x86_64 openssl-libs-1.1.0h-3.fc27.x86_64 pcre2-10.31-4.fc27.x86_64
systemd-libs-234-11.git5f8984e.fc27.x86_64 xz-libs-5.2.3-4.fc27.x86_64
(gdb) bt
#0 0x00007ffff68e2660 in raise () from /lib64/libc.so.6
#1 0x00007ffff68e3c41 in abort () from /lib64/libc.so.6
#2 0x00007ffff68daf7a in __assert_fail_base () from /lib64/libc.so.6
#3 0x00007ffff68daff2 in __assert_fail () from /lib64/libc.so.6
#4 0x000055555588a52e in zend_string_destroy (str=0x7fffe3d08b18, __zend_filename=0x5555559ce468
"/home/builduser/rpmbuild/BUILD/php-7.3.0/Zend/zend_vm_execute.h",
__zend_lineno=12424) at /home/builduser/rpmbuild/BUILD/php-7.3.0/Zend/zend_variables.c:73
#5 0x000055555588a4a4 in _zval_dtor_func (p=0x7fffe3d08b18, __zend_filename=0x5555559ce468
"/home/builduser/rpmbuild/BUILD/php-7.3.0/Zend/zend_vm_execute.h",
__zend_lineno=12424) at /home/builduser/rpmbuild/BUILD/php-7.3.0/Zend/zend_variables.c:67
#6 0x00005555558e8ec5 in _zval_ptr_dtor_nogc (zval_ptr=0x7ffff60206b0,
__zend_filename=0x5555559ce468
"/home/builduser/rpmbuild/BUILD/php-7.3.0/Zend/zend_vm_execute.h",
__zend_lineno=12424) at /home/builduser/rpmbuild/BUILD/php-7.3.0/Zend/zend_variables.h:40
#7 0x000055555590a8a5 in ZEND_FREE_SPEC_TMPVAR_HANDLER () at
/home/builduser/rpmbuild/BUILD/php-7.3.0/Zend/zend_vm_execute.h:12424
#8 0x00005555559605c9 in execute_ex (ex=0x7ffff6020030) at
/home/builduser/rpmbuild/BUILD/php-7.3.0/Zend/zend_vm_execute.h:55857
#9 0x00005555559646d1 in zend_execute (op_array=0x7ffff607d700, return_value=0x0) at
/home/builduser/rpmbuild/BUILD/php-7.3.0/Zend/zend_vm_execute.h:59895
#10 0x000055555588e3c8 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at
/home/builduser/rpmbuild/BUILD/php-7.3.0/Zend/zend.c:1564
#11 0x00005555557fc9b0 in php_execute_script (primary_file=0x7fffffffdf10) at
/home/builduser/rpmbuild/BUILD/php-7.3.0/main/main.c:2467
#12 0x0000555555967082 in do_cli (argc=4, argv=0x555555d1a100) at
/home/builduser/rpmbuild/BUILD/php-7.3.0/sapi/cli/php_cli.c:1011
#13 0x000055555596803d in main (argc=4, argv=0x555555d1a100) at
/home/builduser/rpmbuild/BUILD/php-7.3.0/sapi/cli/php_cli.c:1404
Previous Comments:
------------------------------------------------------------------------
[2018-06-11 11:02:40] nikic@php.net
Right, sorry. You first need to execute "run" and once it hits the assertion
"bt".
------------------------------------------------------------------------
[2018-06-11 10:57:16] spam2 at rhsoft dot net
gdb starts with a shell instead running the stuff - sorry, but debugging C/C++ programs is not my
daily business - but at least i am at a build with the debug binary and a clear reproducer without
"gdb --args" in front
[builduser@testserver:/rpmbuild/SPECS]$ gdb --args
/home/builduser/rpmbuild/BUILD/php-7.3.0/sapi/cli/php -c /rpmbuild/PHP-PGO/php.ini
/php-pgo-docroot/cms/autotest.php
GNU gdb (GDB) Fedora 8.0.1-36.fc27
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/builduser/rpmbuild/BUILD/php-7.3.0/sapi/cli/php...done.
(gdb)
------------------------------------------------------------------------
[2018-06-11 10:41:28] nikic@php.net
Can you please generate a backtrace for the assertion failure? E.g. by running "gdb --args
$CLI_BINARY ..." and then "bt" when the assertion occurs.
------------------------------------------------------------------------
[2018-06-11 10:29:25] spam2 at rhsoft dot net
Description:
------------
our cms auto-test-suite with "make prof.gen"
* OK: cl_api->navigation_base_internal->test(0.026)
zend_mm_heap corrupted
--------------
our cms auto-test-suite with a debug build at the same place
* OK: cl_api->navigation_base_internal->test(0.183)
php: /home/builduser/rpmbuild/BUILD/php-7.3.0/Zend/zend_variables.c:73: zend_string_destroy:
Assertion `!(zval_gc_flags((str)->gc.u.type_info) & (1<<6))' failed.
/rpmbuild/PHP-PGO/profile.sh: line 127: 308554 Aborted (core dumped)
/usr/bin/valgrind --tool=memcheck --leak-check=yes --leak-check=full
--log-file=$PROFILE_ROOT/logs/valgrind-cli.log $CLI_BINARY -c "$PROFILE_ROOT/php.ini"
"$PROFILE_DOCROOT/cms/autotest.php"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76446&edit=1