Bug #73381 [Opn]: SIGSEGV related to php_pcre
| From: | lsn at nuvopoint dot com | Date: | Wed, 09 Nov 2016 09:33:44 +0000 |
| Subject: | Bug #73381 [Opn]: SIGSEGV related to php_pcre | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-205252@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73381&edit=1
ID: 73381
User updated by: lsn at nuvopoint dot com
Reported by: lsn at nuvopoint dot com
-Summary: Mysterious fpm coredump
+Summary: SIGSEGV related to php_pcre
Status: Open
Type: Bug
-Package: FPM related
+Package: PCRE related
Operating System: Ubuntu 16.04.1 LTS
PHP Version: 7.0.12
Block user comment: N
Private report: N
New Comment:
Changed package to PCRE
Previous Comments:
------------------------------------------------------------------------
[2016-11-09 09:22:52] lsn at nuvopoint dot com
Figured out how to do a backtrace, don't know if that is helpful:
#1 0x000055c2800df76c in php_pcre_replace_impl ()
#2 0x000055c2800e058e in php_pcre_replace ()
#3 0x000055c2800e0646 in ?? ()
#4 0x000055c2800e0a22 in ?? ()
#5 0x000055c2800e16fc in ?? ()
#6 0x000055c2802073da in dtrace_execute_internal ()
#7 0x000055c28029c540 in ?? ()
#8 0x000055c280257a4b in execute_ex ()
#9 0x000055c280207271 in dtrace_execute_ex ()
#10 0x000055c28029c67d in ?? ()
#11 0x000055c280257a4b in execute_ex ()
#12 0x000055c280207271 in dtrace_execute_ex ()
#13 0x000055c28029c67d in ?? ()
#14 0x000055c280257a4b in execute_ex ()
#15 0x000055c280207271 in dtrace_execute_ex ()
#16 0x000055c28029c67d in ?? ()
#17 0x000055c280257a4b in execute_ex ()
#18 0x000055c280207271 in dtrace_execute_ex ()
Then it just loops like that, I stopped looking when it passed #10000.
------------------------------------------------------------------------
[2016-11-09 09:14:21] lsn at nuvopoint dot com
Managed to decode some of the crash file:
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fd5839b16a6 in pcre_exec () from /lib/x86_64-linux-gnu/libpcre.so.3
------------------------------------------------------------------------
[2016-10-24 10:58:01] lsn at nuvopoint dot com
Description:
------------
FPM makes a coredump, which is captured to /var/crash.
The coredump file can be found here: https://cloud.nuvoweb.dk/_usr_sbin_php-fpm7.0.33.crash
I've just started debugging this, and I have zero experience reading these crash files, so I
can't report much.
What I can tell is that its running on Ubuntu 16 with all the latest upgrades (as of today), on
Nginx 1.11.5. No errors in any logs, be it syslog, nginx-error.log, php's log. The only hint is
an error in php-fpm:
[24-Oct-2016 09:44:03] NOTICE: fpm is running, pid 1057
[24-Oct-2016 09:44:03] NOTICE: ready to handle connections
[24-Oct-2016 09:44:03] NOTICE: systemd monitor interval set to 10000ms
[24-Oct-2016 10:06:04] WARNING: [pool www] child 1371 exited on signal 11 (SIGSEGV - core dumped)
after 1321.212667 seconds from start
I can reproduce it on our setup, using Postman, but if we could decode the crash log above, that
might reveal if that is even necessary.
I'm available to debug this if needed.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73381&edit=1