Bug #71977 [Opn->Nab]: After opcache turned on to cause Segmentation fault
Edit report at https://bugs.php.net/bug.php?id=71977&edit=1
ID: 71977
Updated by: nikic@php.net
Reported by: wangduo1122 at 163 dot com
Summary: After opcache turned on to cause Segmentation fault
-Status: Open
+Status: Not a bug
Type: Bug
Package: opcache
Operating System: Linux
PHP Version: 7.0.5
Block user comment: N
Private report: N
New Comment:
Closing as this is a bug in the extension, not in opcache (see first comment).
Previous Comments:
------------------------------------------------------------------------
[2016-06-30 09:39:47] sofire at gmail dot com
OS: CentOS 6.6
PHP 7.0.7 (cli) (built: May 25 2016 17:35:28) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
with Xdebug v2.4.0, Copyright (c) 2002-2016, by Derick Rethans
php-fpm[1921] general protection ip:7f5a9454d4c3 sp:7fffb87a8b30 error:0 in
opcache.so[7f5a9453a000+2b000]
php-fpm[2054] general protection ip:7f5a9454d4c3 sp:7fffb87a8b30 error:0 in
opcache.so[7f5a9453a000+2b000]
------------------------------------------------------------------------
[2016-04-27 02:15:05] jsilver at doublesharp dot com
I was successfully running opcache for some time, but randomly this morning I started seeing the
same behavior from php-fpm. Once these errors began appearing in the log Nginx would only return a
502 Bad Gateway error until php-fpm was restarted.
Removing opcache corrected the issue, please let me know if there is other debugging I can do.
OS: CentOS 7
PHP: 7.0.5
/var/log/php-fpm/www-error.log
--------------------------------
26-Apr-2016 18:26:31] NOTICE: [pool www] child 17467 started
[26-Apr-2016 18:26:34] WARNING: [pool www] child 17344 exited on signal 11 (SIGSEGV) after
205.748769 seconds from start
[26-Apr-2016 18:26:34] NOTICE: [pool www] child 17473 started
[26-Apr-2016 18:26:34] WARNING: [pool www] child 17315 exited on signal 11 (SIGSEGV) after
258.979294 seconds from start
[26-Apr-2016 18:26:34] NOTICE: [pool www] child 17474 started
[26-Apr-2016 18:26:35] WARNING: [pool www] child 17345 exited on signal 11 (SIGSEGV) after
207.569738 seconds from start
[26-Apr-2016 18:26:35] NOTICE: [pool www] child 17476 started
[26-Apr-2016 18:26:38] WARNING: [pool www] child 17317 exited on signal 11 (SIGSEGV) after
263.001353 seconds from start
[26-Apr-2016 18:26:38] NOTICE: [pool www] child 17478 started
[26-Apr-2016 18:26:38] WARNING: [pool www] child 17337 exited on signal 11 (SIGSEGV) after
211.347670 seconds from start
[26-Apr-2016 18:26:38] NOTICE: [pool www] child 17480 started
[26-Apr-2016 18:26:39] WARNING: [pool www] child 17356 exited on signal 11 (SIGSEGV) after
209.634259 seconds from start
[26-Apr-2016 18:26:39] NOTICE: [pool www] child 17482 started
[26-Apr-2016 18:26:41] WARNING: [pool www] child 17343 exited on signal 11 (SIGSEGV) after
213.523122 seconds from start
[26-Apr-2016 18:26:41] NOTICE: [pool www] child 17489 started
[26-Apr-2016 18:26:42] WARNING: [pool www] child 17351 exited on signal 11 (SIGSEGV) after
213.560209 seconds from start
/var/log/messages
--------------------------------
Apr 26 21:26:31 web01 kernel: traps: php-fpm[17316] general protection ip:7f83cb4b6feb
sp:7ffe89bdfdb0 error:0 in opcache.so[7f83cb4a3000+2c000]
Apr 26 21:26:34 web01 kernel: traps: php-fpm[17344] general protection ip:7f83cb4b6feb
sp:7ffe89bdfdb0 error:0 in opcache.so[7f83cb4a3000+2c000]
Apr 26 21:26:34 web01 kernel: traps: php-fpm[17315] general protection ip:7f83cb4b6feb
sp:7ffe89bdf7f0 error:0 in opcache.so[7f83cb4a3000+2c000]
Apr 26 21:26:35 web01 kernel: traps: php-fpm[17345] general protection ip:7f83cb4b6feb
sp:7ffe89bdfdb0 error:0 in opcache.so[7f83cb4a3000+2c000]
Apr 26 21:26:38 web01 kernel: traps: php-fpm[17317] general protection ip:7f83cb4b6feb
sp:7ffe89bdfdb0 error:0 in opcache.so[7f83cb4a3000+2c000]
Apr 26 21:26:38 web01 kernel: traps: php-fpm[17337] general protection ip:7f83cb4b6feb
sp:7ffe89bdfdb0 error:0 in opcache.so[7f83cb4a3000+2c000]
Apr 26 21:26:39 web01 kernel: traps: php-fpm[17356] general protection ip:7f83cb4b6feb
sp:7ffe89bdfdb0 error:0 in opcache.so[7f83cb4a3000+2c000]
Apr 26 21:26:41 web01 kernel: traps: php-fpm[17343] general protection ip:7f83cb4b6feb
sp:7ffe89bdf7f0 error:0 in opcache.so[7f83cb4a3000+2c000]
Apr 26 21:26:42 web01 kernel: traps: php-fpm[17351] general protection ip:7f83cb4b6feb
sp:7ffe89bdf7f0 error:0 in opcache.so[7f83cb4a3000+2c000]
```
------------------------------------------------------------------------
[2016-04-08 11:45:17] wangduo1122 at 163 dot com
If you turn off opcache, we would not have this problem.
------------------------------------------------------------------------
[2016-04-07 10:07:34] wangduo1122 at 163 dot com
The original function is accomplished , I do not want to modify the original function .
Test the "a/d", this will not be the original parameters to be modified.
Are there any other ways to solve this problem ?
------------------------------------------------------------------------
[2016-04-07 06:17:01] nikic@php.net
You must
a) declare the parameter as being by-reference in arginfo and
b) separate the argument by using "a/d" instead of "ad".
Does doing these two things fix the issue?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=71977
--
Edit this bug report at https://bugs.php.net/bug.php?id=71977&edit=1
Thread (5 messages)