Bug #73030 [Opn->Dup]: segfault in zval_delref_p while running symfony integration tests

From: Date: Thu, 22 Sep 2016 12:25:32 +0000
Subject: Bug #73030 [Opn->Dup]: segfault in zval_delref_p while running symfony integration tests
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204188@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73030&edit=1 ID: 73030 Updated by: nikic@php.net Reported by: jean-tiare dot le-bigot at corp dot ovh dot com Summary: segfault in zval_delref_p while running symfony integration tests -Status: Open +Status: Duplicate Type: Bug Package: Reproducible crash Operating System: Debian Wheezy PHP Version: 7.1.0RC1 Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2016-09-22 12:03:14] Sjon at hortensius dot net This is a duplicate of #73113 which has already been fixed ------------------------------------------------------------------------ [2016-09-22 11:57:14] sjon at hortensius dot net I have reduced this segfault to the following testcase: https://3v4l.org/nAFVh ------------------------------------------------------------------------ [2016-09-06 10:16:36] jean-tiare dot le-bigot at corp dot ovh dot com Description: ------------ ## Configure line ./buildconf --force ./configure \ --with-openssl \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --prefix=$HOME/usr \ --enable-fpm \ --enable-opcache \ --enable-debug \ --with-gd \ --enable-intl \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --enable-gd-native-ttf=/usr \ --with-png-dir=/usr \ --enable-wddx \ --with-config-file-path=$HOME/usr/etc \ --enable-sigchild \ --enable-short-tags \ --disable-rpath \ --enable-libgcc \ --with-zlib=/usr \ --enable-bcmath \ --enable-calendar \ --with-curl=/usr \ --with-gdbm=/usr \ --enable-ftp \ --with-gettext=/usr \ --with-imap \ --with-kerberos \ --with-imap-ssl \ --with-mcrypt=/usr \ --with-mhash=/usr \ --with-jpeg-dir=/usr \ --enable-exif \ --enable-sysvsem \ --enable-sysvshm \ --enable-sysvmsg \ --enable-zip \ --enable-inline-optimization \ --enable-soap \ --enable-mbstring \ --enable-mbregex \ --with-gnu-ld \ --with-libxml-dir \ --enable-shared=yes \ --enable-static=yes \ --with-xsl=/usr \ --enable-sockets \ --with-xmlrpc \ --with-iconv \ --with-imagick \ --enable-pdo \ --with-pdo-pgsql=/usr \ --with-xpm-dir=/usr \ --with-pcre-regex \ --with-freetype-dir=/usr \ --with-pspell \ --with-pgsql=/usr \ --with-bz2 \ --with-gmp \ EXTENSION_DIR=$HOME/usr/lib/php-extensions ## GDB backtrace: Program received signal SIGSEGV, Segmentation fault. 0x0000000000b41631 in zval_delref_p (pz=0x7faeeb81a050) at /home/jlebigot/dev/php-7.1.0RC1/Zend/zend_types.h:834 834 return --GC_REFCOUNT(Z_COUNTED_P(pz)); (gdb) bt #0 0x0000000000b41631 in zval_delref_p (pz=0x7faeeb81a050) at /home/jlebigot/dev/php-7.1.0RC1/Zend/zend_types.h:834 #1 0x0000000000b41cae in i_zval_ptr_dtor (zval_ptr=0x7faeeb81a050, __zend_filename=0x11b0bf0 "/home/jlebigot/dev/php-7.1.0RC1/Zend/zend_vm_execute.h", __zend_lineno=899) at /home/jlebigot/dev/php-7.1.0RC1/Zend/zend_variables.h:47 #2 0x0000000000b4bb34 in ZEND_DO_FCALL_BY_NAME_SPEC_RETVAL_USED_HANDLER (execute_data=0x7faeeb819f90) at /home/jlebigot/dev/php-7.1.0RC1/Zend/zend_vm_execute.h:899 #3 0x0000000000b4a832 in execute_ex (ex=0x7faeeb819d30) at /home/jlebigot/dev/php-7.1.0RC1/Zend/zend_vm_execute.h:432 #4 0x0000000000ad4c46 in zend_call_function (fci=0x7ffdb8b38b50, fci_cache=0x7ffdb8b38b20) at /home/jlebigot/dev/php-7.1.0RC1/Zend/zend_execute_API.c:825 #5 0x0000000000867fb3 in reflection_method_invoke (execute_data=0x7faeeb819cc0, return_value=0x7faeeb819990, variadic=0) at /home/jlebigot/dev/php-7.1.0RC1/ext/reflection/php_reflection.c:3326 #6 0x0000000000868119 in zim_reflection_method_invokeArgs (execute_data=0x7faeeb819cc0, return_value=0x7faeeb819990) at /home/jlebigot/dev/php-7.1.0RC1/ext/reflection/php_reflection.c:3359 #7 0x0000000000b4c387 in ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (execute_data=0x7faeeb819790) at /home/jlebigot/dev/php-7.1.0RC1/Zend/zend_vm_execute.h:1097 #8 0x0000000000b4a832 in execute_ex (ex=0x7faeeb815030) at /home/jlebigot/dev/php-7.1.0RC1/Zend/zend_vm_execute.h:432 #9 0x0000000000b4a983 in zend_execute (op_array=0x7faeeb882000, return_value=0x0) at /home/jlebigot/dev/php-7.1.0RC1/Zend/zend_vm_execute.h:474 #10 0x0000000000aec47b in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/jlebigot/dev/php-7.1.0RC1/Zend/zend.c:1464 #11 0x0000000000a5b470 in php_execute_script (primary_file=0x7ffdb8b3c200) at /home/jlebigot/dev/php-7.1.0RC1/main/main.c:2533 #12 0x0000000000bd5258 in do_cli (argc=7, argv=0x1a97780) at /home/jlebigot/dev/php-7.1.0RC1/sapi/cli/php_cli.c:990 #13 0x0000000000bd6236 in main (argc=7, argv=0x1a97780) at /home/jlebigot/dev/php-7.1.0RC1/sapi/cli/php_cli.c:1378 (gdb) print pz->value.counted $3 = (zend_refcounted *) 0x0 ## Step to reproduce: git clone https://github.com/symfony/symfony.git cd symfony ./phpunit -v --debug --filter testSetContentJsonSerializeError ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73030&edit=1

« previous php.bugs (#204188) next »