Bug #77315 [NEW]: segfault when opcache enabled + extensions like phalcon 3.4

From: Date: Tue, 18 Dec 2018 08:21:52 +0000
Subject: Bug #77315 [NEW]: segfault when opcache enabled + extensions like phalcon 3.4
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218509@lists.php.net to get a copy of this message
From: yejiangnan2012 at gmail dot com Operating system: Linux PHP version: 7.2.13 Package: opcache Bug Type: Bug Bug description:segfault when opcache enabled + extensions like phalcon 3.4 Description: ------------ I am getting the following segfaults in syslog: when I start load phalcon extension with opcache,and it will be aborted (core dump) .But it will be work fined without opcache. centos 6.10 kernel version 2.6.32-042stab123.9 ``` [root@gdb-debug coredump]# /usr/local/php-7.2.13/bin/php -m [PHP Modules] bcmath calendar Core ctype curl date dom fileinfo filter gd hash iconv json ldap libxml mbstring mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite phalcon phpdbg_webhelper posix Reflection session SimpleXML soap sockets SPL sqlite3 standard tokenizer xml xmlreader xmlwriter Zend OPcache zip zlib [Zend Modules] Zend OPcache php: /root/php-7.2.13/ext/opcache/ZendAccelerator.c:637: accel_replace_string_by_process_permanent: Assertion `0' failed. Aborted (core dumped) ``` gdb backtrace: ``` (gdb) source /root/php-7.2.13/.gdbinit (gdb) zbacktrace (gdb) bt #0 0x00007fbd932c34f5 in raise () from /lib64/libc.so.6 #1 0x00007fbd932c4cd5 in abort () from /lib64/libc.so.6 #2 0x00007fbd932bc66e in __assert_fail_base () from /lib64/libc.so.6 #3 0x00007fbd932bc730 in __assert_fail () from /lib64/libc.so.6 #4 0x00007fbd90151bcd in accel_replace_string_by_process_permanent (str=0x7fbd882dc650) at /root/php-7.2.13/ext/opcache/ZendAccelerator.c:637 #5 0x00007fbd90151896 in accel_copy_permanent_strings (new_interned_string=0x7fbd90151b79 <accel_replace_string_by_process_permanent>) at /root/php-7.2.13/ext/opcache/ZendAccelerator.c:580 #6 0x00007fbd90151cb2 in accel_use_permanent_interned_strings () at /root/php-7.2.13/ext/opcache/ZendAccelerator.c:665 #7 0x00007fbd90157400 in accel_shutdown () at /root/php-7.2.13/ext/opcache/ZendAccelerator.c:2797 #8 0x00007fbd90159b4d in zm_shutdown_zend_accelerator (type=1, module_number=42) at /root/php-7.2.13/ext/opcache/zend_accelerator_module.c:434 #9 0x0000000000aaca9d in module_destructor (module=0x360e7f0) at /root/php-7.2.13/Zend/zend_API.c:2564 #10 0x0000000000aa0845 in module_destructor_zval (zv=0x7ffd6cf77150) at /root/php-7.2.13/Zend/zend.c:690 #11 0x0000000000ab70e0 in _zend_hash_del_el_ex (ht=0x1725780, idx=41, p=0x32a68f0, prev=0x0) at /root/php-7.2.13/Zend/zend_hash.c:998 #12 0x0000000000ab71ae in _zend_hash_del_el (ht=0x1725780, idx=41, p=0x32a68f0) at /root/php-7.2.13/Zend/zend_hash.c:1021 #13 0x0000000000ab8733 in zend_hash_graceful_reverse_destroy (ht=0x1725780) at /root/php-7.2.13/Zend/zend_hash.c:1477 #14 0x0000000000aaa784 in zend_destroy_modules () at /root/php-7.2.13/Zend/zend_API.c:2008 #15 0x0000000000aa0d4c in zend_shutdown () at /root/php-7.2.13/Zend/zend.c:905 #16 0x0000000000a0b111 in php_module_shutdown () at /root/php-7.2.13/main/main.c:2453 #17 0x0000000000b9e772 in main (argc=2, argv=0x329ee70) at /root/php-7.2.13/sapi/cli/php_cli.c:1418 ``` -- Edit bug report at https://bugs.php.net/bug.php?id=77315&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77315&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77315&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77315&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77315&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77315&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77315&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77315&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77315&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77315&r=support Expected behavior: https://bugs.php.net/fix.php?id=77315&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77315&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77315&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77315&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77315&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77315&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77315&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77315&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77315&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77315&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77315&r=mysqlcfg

« previous php.bugs (#218509) next »