The problem of NGINX+PHP-FPM environment Nginx 502 Bad Gateway

Source: Internet
Author: User
Tags fpm php file redis zts zend


# in Nginx and PHP-FPM next visit Nginx on the instant 502 question Php-fpmsignal 7 (Sigbus)

Failure phenomenon

Use the tinkphp3.2.x frame, the page occasionally appear a visit Nginx on the report 502 bad Gateway, not wait for a period of time Nginx only reported 502, open the page of the moment on 502.

PHP-FPM Log

[28-sep-2015 23:25:07] WARNING: [Pool www] child 2965 exited on Signal 7 (Sigbus) after 319.686109 seconds from start

[28-sep-2015 23:25:07] NOTICE: [Pool www] child 3223 started

[28-sep-2015 23:25:49] WARNING: [Pool www] child 1251 exited on Signal 7 (Sigbus) after 1005.893950 seconds from start

[28-sep-2015 23:25:49] NOTICE: [Pool www] child 3242 started

[28-sep-2015 23:26:46] WARNING: [Pool www] child 1467 exited on Signal 7 (Sigbus) after 1057.791921 seconds from start

[28-sep-2015 23:26:46] NOTICE: [Pool www] child 3284 started

[28-sep-2015 23:30:33] WARNING: [Pool www] child 1178 exited on Signal 7 (Sigbus) after 1289.872260 seconds from start

[28-sep-2015 23:30:33] NOTICE: [Pool www] child 3450 started

[28-sep-2015 23:30:35] WARNING: [Pool www] child 1115 exited on Signal 7 (Sigbus) after 1292.014337 seconds from start

[28-sep-2015 23:30:35] NOTICE: [Pool www] child 3451 started

[28-sep-2015 23:30:35] WARNING: [Pool www] child 1487 exited on signal 7 (Sigbus) after 1285.395573 seconds from start

[28-sep-2015 23:30:35] NOTICE: [Pool www] child 3452 started

[28-sep-2015 23:30:36] WARNING: [Pool www] Child 1958 exited on Signal 7 (Sigbus) after 1181.206336 seconds from start

[28-sep-2015 23:30:36] NOTICE: [Pool www] child 3453 started
Can see a lot of php-fpm process received signal 7 quit, because fastcgi php-fpm instantaneous exit, Nginx on the instant 502

To debug a php-fpm

Since cannot see the clue to need to carry on the debugging, here needs to php-fpm exits the time to export coredump

PHP-FPM Coredump method

A core file, also known as a core dump, is a disk file that is written by the operating system when the process receives certain signals and terminates the runtime with the contents of the process address space and other information about the state of the process. This information is often used for debugging. The word core file comes from the kernel memory.

PHP needs to open the debug parameter, if the compile is not open, you need to recompile, the following is my

--enable-debug
--prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc--enable-fpm--with-fpm-user=www-- With-fpm-group=www--with-mysql=mysqlnd--with-mysqli=mysqlnd--with-pdo-mysql=mysqlnd--with-iconv-dir-- With-freetype-dir=/usr/local/freetype--with-jpeg-dir--with-png-dir--with-zlib--with-libxml-dir=/usr-- Enable-xml--disable-rpath--enable-bcmath--enable-shmop--enable-sysvsem--enable-inline-optimization--with-curl- -enable-mbregex--enable-mbstring--with-mcrypt--enable-ftp--with-gd--enable-gd-native-ttf-- With-mhash--enable-pcntl--enable-sockets--with-xmlrpc--enable-zip--enable-soap--with-gettext--disable-fileinfo --enable-debug
Modify the dump out path

echo "/tmp/coredump/core.%e.%p.%h.%t" >/proc/sys/kernel/core_pattern
Allow the program to crash when dump

Ulimit-c Unlimited
Turn off the dump feature

Ulimit-c 0
Using GDB for debugging

GDB/USR/LOCAL/PHP/SBIN/PHP-FPM core.php-fpm.4555.web1.iamle.com.1443458079

GNU gdb Red Hat Enterprise Linux (7.2-83.EL6)

Copyright (C) Free Software Foundation, Inc.

License gplv3+: GNU GPL version 3 or later

This is the free software:you are and redistribute it.

There is NO WARRANTY and to the extent permitted by. Type "Show copying"

and "Show warranty" for details.

This is GDB was configured as "X86_64-redhat-linux-gnu".

For bugs reporting instructions, please:

Reading symbols From/usr/local/php/sbin/php-fpm...done.

[New Thread 4555]

Missing separate Debuginfo for/usr/lib/libmcrypt.so.4

Try:yum--enablerepo= ' *-debug* ' install/usr/lib/debug/.build-id/c5/699ec0c783a6055a7f983f9eb64146371eb2e6

Missing separate Debuginfo for/usr/lib/libpng12.so.0

Try:yum--enablerepo= ' *-debug* ' install/usr/lib/debug/.build-id/9e/65badd636c1f2e81682a8c498af098b5bbd063

Missing separate Debuginfo for/usr/lib/libjpeg.so.62

Try:yum--enablerepo= ' *-debug* ' install/usr/lib/debug/.build-id/05/6b2c6a8cb0b42dda3d57a1b5d3670ab99c83bd

Missing separate Debuginfo for/usr/local/lib/libiconv.so.2

Try:yum--enablerepo= ' *-debug* ' install/usr/lib/debug/.build-id/df/7400febafa74aeef81e48b638c9fde24cb2beb

Missing separate Debuginfo for/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/redis.so

Try:yum--enablerepo= ' *-debug* ' install/usr/lib/debug/.build-id/64/1aa8440943921a4d553e380282d15828f18377

Missing separate debuginfo for

Try:yum--enablerepo= ' *-debug* ' install/usr/lib/debug/.build-id/fa/36da47e774d9bc5a739905887a5d25790090f7

Reading symbols from/lib64/libcrypt.so.1 ... (No debugging symbols found) ... done.

Loaded symbols For/lib64/libcrypt.so.1

Reading symbols from/lib64/libz.so.1 ... (No debugging symbols found) ... done.

Loaded symbols For/lib64/libz.so.1

Reading symbols from/lib64/librt.so.1 ... (No debugging symbols found) ... done.

Loaded symbols For/lib64/librt.so.1

Reading symbols From/usr/lib/libmcrypt.so.4...done.

Loaded symbols for/usr/lib/libmcrypt.so.4

Reading symbols from/usr/lib/libpng12.so.0 ... Missing separate Debuginfo for/usr/lib/libpng12.so.0

Try:yum--enablerepo= ' *-debug* ' Install/usr/lib/debug/.build-id/9e/65badd636c1f2e81682a8c498af098b5bbd063.debug

(No debugging symbols found) ... done.

Loaded symbols for/usr/lib/libpng12.so.0

Reading symbols from/usr/lib/libjpeg.so.62 ... Missing separate Debuginfo for/usr/lib/libjpeg.so.62

Try:yum--enablerepo= ' *-debug* ' Install/usr/lib/debug/.build-id/05/6b2c6a8cb0b42dda3d57a1b5d3670ab99c83bd.debug

(No debugging symbols found) ... done.

Loaded symbols for/usr/lib/libjpeg.so.62

Reading symbols from/usr/lib64/libcurl.so.4 ... (No debugging symbols found) ... done.

Loaded symbols for/usr/lib64/libcurl.so.4

Reading symbols from/lib64/libm.so.6 ... (No debugging symbols found) ... done.

Loaded symbols for/lib64/libm.so.6

Reading symbols from/lib64/libdl.so.2 ... (No debugging symbols found) ... done.

Loaded symbols for/lib64/libdl.so.2

Reading symbols from/lib64/libnsl.so.1 ... (No debugging symbols found) ... done.

Loaded symbols For/lib64/libnsl.so.1

Reading symbols from/usr/lib64/libxml2.so.2 ... (No debugging symbols found) ... done.

Loaded symbols for/usr/lib64/libxml2.so.2

Reading symbols from/usr/lib64/libssl.so.10 ... (No debugging symbols found) ... done.

Loaded symbols for/usr/lib64/libssl.so.10

Reading symbols from/usr/lib64/libcrypto.so.10 ... (No debugging symbols found) ... done.

Loaded symbols for/usr/lib64/libcrypto.so.10

Reading symbols from/usr/lib64/libfreetype.so.6 ... (No debugging symbols found) ... done.

Loaded symbols for/usr/lib64/libfreetype.so.6

Reading symbols From/usr/local/lib/libiconv.so.2...done.

Loaded symbols for/usr/local/lib/libiconv.so.2

Reading symbols from/lib64/libc.so.6 ... (No debugging symbols found) ... done.

Loaded symbols for/lib64/libc.so.6

Reading symbols from/lib64/ld-linux-x86-64.so.2 ... (No debugging symbols found) ... done.

Loaded symbols for/lib64/ld-linux-x86-64.so.2

Reading symbols from/lib64/libresolv.so.2 ... (No debugging symbols found) ... done.

Loaded symbols for/lib64/libresolv.so.2

Reading symbols from/usr/lib64/libfreebl3.so ... (No debugging symbols found) ... done.

Loaded symbols for/usr/lib64/libfreebl3.so

Reading symbols from/lib64/libpthread.so.0 ... (No debugging symbols found) ... done.

[Thread debugging using libthread_db enabled]

Loaded symbols for/lib64/libpthread.so.0

Reading symbols from/lib64/libidn.so.11 ... (No debugging symbols found) ... done.

Loaded symbols for/lib64/libidn.so.11

Reading symbols from/lib64/libldap-2.4.so.2 ... (No debugging symbols found) ... done.

Loaded symbols for/lib64/libldap-2.4.so.2

Reading symbols from/lib64/libgssapi_krb5.so.2 ... (No debugging symbols found) ... done.

Loaded symbols for/lib64/libgssapi_krb5.so.2

Reading symbols from/lib64/libkrb5.so.3 ... (No debugging symbols found) ... done.

Loaded symbols for/lib64/libkrb5.so.3

Reading symbols from/lib64/libk5crypto.so.3 ... (No debugging symbols found) ... done.

Loaded symbols for/lib64/libk5crypto.so.3

Reading symbols from/lib64/libcom_err.so.2 ... (No debugging symbols found) ... done.

Loaded symbols for/lib64/libcom_err.so.2

Reading symbols from/usr/lib64/libssl3.so ... (No debugging symbols found) ... done.

Loaded symbols for/usr/lib64/libssl3.so

Reading symbols from/usr/lib64/libsmime3.so ... (No debugging symbols found) ... done.

Loaded symbols for/usr/lib64/libsmime3.so

Reading symbols from/usr/lib64/libnss3.so ... (No debugging symbols found) ... done.

Loaded symbols for/usr/lib64/libnss3.so

Reading symbols from/usr/lib64/libnssutil3.so ... (No debugging symbols found) ... done.

Loaded symbols for/usr/lib64/libnssutil3.so

Reading symbols from/lib64/libplds4.so ... (No debugging symbols found) ... done.

Loaded symbols for/lib64/libplds4.so

Reading symbols from/lib64/libplc4.so ... (No debugging symbols found) ... done.

Loaded symbols for/lib64/libplc4.so

Reading symbols from/lib64/libnspr4.so ... (No debugging symbols found) ... done.

Loaded symbols for/lib64/libnspr4.so

Reading symbols from/usr/lib64/libssh2.so.1 ... (No debugging symbols found) ... done.

Loaded symbols For/usr/lib64/libssh2.so.1

Reading symbols from/lib64/liblber-2.4.so.2 ... (No debugging symbols found) ... done.

Loaded symbols for/lib64/liblber-2.4.so.2

Reading symbols from/usr/lib64/libsasl2.so.2 ... (No debugging symbols found) ... done.

Loaded symbols for/usr/lib64/libsasl2.so.2

Reading symbols from/lib64/libkrb5support.so.0 ... (No debugging symbols found) ... done.

Loaded symbols for/lib64/libkrb5support.so.0

Reading symbols from/lib64/libkeyutils.so.1 ... (No debugging symbols found) ... done.

Loaded symbols For/lib64/libkeyutils.so.1

Reading symbols from/lib64/libselinux.so.1 ... (No debugging symbols found) ... done.

Loaded symbols For/lib64/libselinux.so.1

Reading symbols From/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/redis.so...done.

Loaded symbols for/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/redis.so

Reading symbols From/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/networkbench.so...done.

Loaded symbols for/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/networkbench.so

Reading symbols from/lib64/libnss_files.so.2 ... (No debugging symbols found) ... done.

Loaded symbols for/lib64/libnss_files.so.2

Core is generated by ' Php-fpm:pool www '.

Program terminated with signal 7, bus error.

#0 Lex_scan (Zendlval=0x7fff8083fae8) at zend/zend_language_scanner.c:2265

2265 switch (yych) {

Missing separate Debuginfos, Use:debuginfo-install cyrus-sasl-lib-2.1.23-15.el6.x86_64 freetype-2.3.11-14.el6_3.1. x86_64 glibc-2.12-1.149.el6_6.5.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-33.el6.x86_64 libcom_ err-1.41.12-21.el6.x86_64 libcurl-7.19.7-40.el6_6.1.x86_64 libidn-1.18-2.el6.x86_64 libselinux-2.0.94-5.8.el6.x86 _64 libssh2-1.4.2-1.el6.x86_64 libxml2-2.7.6-17.el6_6.1.x86_64 nspr-4.10.6-1.el6_5.x86_64 nss-3.16.1-14.el6.x86_64 nss-softokn-freebl-3.14.3-17.el6.x86_64 nss-util-3.16.1-3.el6.x86_64 openldap-2.4.39-8.el6.x86_64 Openssl-1.0.1e-30.el6_6.4.x86_64 zlib-1.2.3-29.el6.x86_64

(GDB) bt

#0 Lex_scan (Zendlval=0x7fff8083fae8) at zend/zend_language_scanner.c:1088

#1 0x00000000007ad730 in Zendlex (ZENDLVAL=0X7FFF8083FAE0) at/root/oneshell-master/php-5.4.45/zend/zend_compile.c : 6545

#2 0x0000000000795aca in Zendparse () at/root/oneshell-master/php-5.4.45/zend/zend_language_parser.c:3471

#3 0x00000000007a2990 in Compile_file (File_handle=0x7fff8083fe30, type=2) at zend/zend_language_scanner.l:585

#4 0x000000000063255a in Phar_compile_file (File_handle=0x7fff8083fe30, type=2) at/root/oneshell-master/php-5.4.45/ ext/phar/phar.c:3414

#5 0X00000000007A20BB in Compile_filename (type=2, filename=0x299d018) at zend/zend_language_scanner.l:628

#6 0x00000000008156de in Zend_include_or_eval_spec_cv_handler (execute_data=0x7f46209c6158) at/root/oneshell-master /php-5.4.45/zend/zend_vm_execute.h:27443

#7 0x0000000000832c80 in Execute (op_array=0x27b4158) at/root/oneshell-master/php-5.4.45/zend/zend_vm_execute.h:410

#8 0x00007f4614b27db6 in Nb_execute (op_array=0x27b4158) at/tingyun/nbprof/nbprof.c:318

#9 0x00000000007c0e14 in Zend_call_function (fci=0x7fff808401b0, Fci_cache=<value optimized out>) at/root/ oneshell-master/php-5.4.45/zend/zend_execute_api.c:956

#10 0x00000000006d8ae5 in Zif_call_user_func_array (Ht=<value optimized out>, return_value=0x29733b0, Return_ Value_ptr=<value optimized out>, This_ptr=<value optimized out>

Return_value_used=<value optimized out>) at/root/oneshell-master/php-5.4.45/ext/standard/basic_functions.c : 4754

#11 0x00007f4614b27cbe in Nb_execute_internal (current_execute_data=0x7f46209c5f78, return_value_used=1) at/tingyun/ nbprof/nbprof.c:403

#12 0x000000000083e643 in Zend_do_fcall_common_helper_spec (Execute_data=<value optimized out>) at/root/ oneshell-master/php-5.4.45/zend/zend_vm_execute.h:645

#13 0x0000000000832c80 in Execute (op_array=0x7f46209f8a70) at/root/oneshell-master/php-5.4.45/zend/zend_vm_ execute.h:410

#14 0x00007f4614b27db6 in Nb_execute (op_array=0x7f46209f8a70) at/tingyun/nbprof/nbprof.c:318

#15 0x00000000007c0e14 in Zend_call_function (fci=0x7fff80840540, Fci_cache=<value optimized out>) at/root/ oneshell-master/php-5.4.45/zend/zend_execute_api.c:956

#16 0X00000000007E41BF in Zend_call_method (object_pp=0x0, Obj_ce=<value optimized out>, fn_proxy=0x7f46209f6618 , function_name=0xb02423 "__callstatic",

Function_name_len=<value optimized Out>, retval_ptr_ptr=0x7fff80840668, param_count=2, ARG1=0X29730A8, arg2= 0X29735C0)

at/root/oneshell-master/php-5.4.45/zend/zend_interfaces.c:97

#17 0x00000000007efb39 in Zend_std_callstatic_user_call (Ht=<value optimized out>, return_value=0x2972f58, Return_value_ptr=<value optimized out>, This_ptr=<value optimized out>

Return_value_used=<value optimized out>) at/root/oneshell-master/php-5.4.45/zend/zend_object_handlers.c : 1110

#18 0x00007f4614b27cbe in Nb_execute_internal (Current_execute_data=0x7f46209c5d88, return_value_used=0) at/tingyun/ nbprof/nbprof.c:403

#19 0x000000000083e643 in Zend_do_fcall_common_helper_spec (Execute_data=<value optimized out>) at/root/ oneshell-master/php-5.4.45/zend/zend_vm_execute.h:645

#20 0x0000000000832c80 in Execute (op_array=0x304d188) at/root/oneshell-master/php-5.4.45/zend/zend_vm_execute.h : 410

#21 0x00007f4614b27db6 in Nb_execute (op_array=0x304d188) at/tingyun/nbprof/nbprof.c:318

#22 0x000000000083ed94 in Zend_do_fcall_common_helper_spec (Execute_data=<value optimized out>) at/root/ oneshell-master/php-5.4.45/zend/zend_vm_execute.h:673

#23 0x0000000000832c80 in Execute (op_array=0x2831020) at/root/oneshell-master/php-5.4.45/zend/zend_vm_execute.h : 410

#24 0x00007f4614b27db6 in Nb_execute (op_array=0x2831020) at/tingyun/nbprof/nbprof.c:318

#25 0x000000000083ed94 in Zend_do_fcall_common_helper_spec (Execute_data=<value optimized out>) at/root/ oneshell-master/php-5.4.45/zend/zend_vm_execute.h:673

#26 0x0000000000832c80 in Execute (op_array=0x27a48a0) at/root/oneshell-master/php-5.4.45/zend/zend_vm_execute.h : 410

#27 0x00007f4614b27db6 in Nb_execute (op_array=0x27a48a0) at/tingyun/nbprof/nbprof.c:318

#28 0x000000000083ed94 in Zend_do_fcall_common_helper_spec (Execute_data=<value optimized out>) at/root/ oneshell-master/php-5.4.45/zend/zend_vm_execute.h:673

#29 0x0000000000832c80 in Execute (OP_ARRAY=0X27A25B8) at/root/oneshell-master/php-5.4.45/zend/zend_vm_execute.h : 410

#30 0x00007f4614b27db6 in Nb_execute (OP_ARRAY=0X27A25B8) at/tingyun/nbprof/nbprof.c:318

#31 0x000000000083ed94 in Zend_do_fcall_common_helper_spec (Execute_data=<value optimized out>) at/root/ oneshell-master/php-5.4.45/zend/zend_vm_execute.h:673

#32 0x0000000000832c80 in Execute (op_array=0x2832410) at/root/oneshell-master/php-5.4.45/zend/zend_vm_execute.h : 410

#33 0x00007f4614b27db6 in Nb_execute (op_array=0x2832410) at/tingyun/nbprof/nbprof.c:318

---Type <return> to continue, or Q <return> to quit---

#34 0x000000000083ed94 in Zend_do_fcall_common_helper_spec (Execute_data=<value optimized out>) at/root/ oneshell-master/php-5.4.45/zend/zend_vm_execute.h:673

#35 0x0000000000832c80 in Execute (OP_ARRAY=0X282C1E0) at/root/oneshell-master/php-5.4.45/zend/zend_vm_execute.h : 410

#36 0x00007f4614b27db6 in Nb_execute (OP_ARRAY=0X282C1E0) at/tingyun/nbprof/nbprof.c:318

#37 0x000000000083ed94 in Zend_do_fcall_common_helper_spec (Execute_data=<value optimized out>) at/root/ oneshell-master/php-5.4.45/zend/zend_vm_execute.h:673

#38 0x0000000000832c80 in Execute (OP_ARRAY=0X2896BB8) at/root/oneshell-master/php-5.4.45/zend/zend_vm_execute.h : 410

#39 0x00007f4614b27db6 in Nb_execute (OP_ARRAY=0X2896BB8) at/tingyun/nbprof/nbprof.c:318

#40 0x000000000083ed94 in Zend_do_fcall_common_helper_spec (Execute_data=<value optimized out>) at/root/ oneshell-master/php-5.4.45/zend/zend_vm_execute.h:673

#41 0x0000000000832c80 in Execute (OP_ARRAY=0X286CED8) at/root/oneshell-master/php-5.4.45/zend/zend_vm_execute.h : 410

#42 0x00007f4614b27db6 in Nb_execute (OP_ARRAY=0X286CED8) at/tingyun/nbprof/nbprof.c:318

#43 0x00000000007c0e14 in Zend_call_function (fci=0x7fff80841170, Fci_cache=<value optimized out>) at/root/ oneshell-master/php-5.4.45/zend/zend_execute_api.c:956

#44 0x000000000064ad3f in Zim_reflection_method_invoke (Ht=<value optimized out>, Return_value=0x288e4e8, return _value_ptr=<value optimized Out>, this_ptr=0x2859330,

Return_value_used=<value optimized out>) at/root/oneshell-master/php-5.4.45/ext/reflection/php_reflection.c : 2898

#45 0x00007f4614b27cbe in Nb_execute_internal (current_execute_data=0x7f46209c0530, return_value_used=0) at/tingyun/ nbprof/nbprof.c:403

#46 0x000000000083e643 in Zend_do_fcall_common_helper_spec (Execute_data=<value optimized out>) at/root/ oneshell-master/php-5.4.45/zend/zend_vm_execute.h:645

#47 0x0000000000832c80 in Execute (op_array=0x27a5a58) at/root/oneshell-master/php-5.4.45/zend/zend_vm_execute.h : 410

#48 0x00007f4614b27db6 in Nb_execute (op_array=0x27a5a58) at/tingyun/nbprof/nbprof.c:318

#49 0x000000000083ed94 in Zend_do_fcall_common_helper_spec (Execute_data=<value optimized out>) at/root/ oneshell-master/php-5.4.45/zend/zend_vm_execute.h:673

#50 0x0000000000832c80 in Execute (op_array=0x27a5b58) at/root/oneshell-master/php-5.4.45/zend/zend_vm_execute.h : 410

#51 0x00007f4614b27db6 in Nb_execute (op_array=0x27a5b58) at/tingyun/nbprof/nbprof.c:318

#52 0x000000000083ed94 in Zend_do_fcall_common_helper_spec (Execute_data=<value optimized out>) at/root/ oneshell-master/php-5.4.45/zend/zend_vm_execute.h:673

#53 0x0000000000832c80 in Execute (op_array=0x27b66a0) at/root/oneshell-master/php-5.4.45/zend/zend_vm_execute.h : 410

#54 0x00007f4614b27db6 in Nb_execute (op_array=0x27b66a0) at/tingyun/nbprof/nbprof.c:318

#55 0x000000000083ed94 in Zend_do_fcall_common_helper_spec (Execute_data=<value optimized out>) at/root/ oneshell-master/php-5.4.45/zend/zend_vm_execute.h:673

#56 0x0000000000832c80 in Execute (op_array=0x7f46209f4108) at/root/oneshell-master/php-5.4.45/zend/zend_vm_ execute.h:410

#57 0x00007f4614b27e84 in Nb_execute (op_array=0x7f46209f4108) at/tingyun/nbprof/nbprof.c:318

#58 0x0000000000816a9c in Zend_include_or_eval_spec_const_handler (execute_data=0x7f46209bd318) at/root/ oneshell-master/php-5.4.45/zend/zend_vm_execute.h:2650

#59 0x0000000000832c80 in Execute (OP_ARRAY=0X7F46209F35B8) at/root/oneshell-master/php-5.4.45/zend/zend_vm_ execute.h:410

#60 0X00007F4614B27DFF in Nb_execute (OP_ARRAY=0X7F46209F35B8) at/tingyun/nbprof/nbprof.c:318

#61 0x00000000007cc5ae in Zend_execute_scripts (type=8, retval=0x0, file_count=3) at/root/oneshell-master/php-5.4.45/ zend/zend.c:1329

#62 0x000000000077221e in Php_execute_script (PRIMARY_FILE=0X7FFF80845FC0) at/root/oneshell-master/php-5.4.45/main/ main.c:2502

#63 0x000000000087b34e in Main (Argc=<value optimized out>, Argv=<value optimized out>) at/root/oneshell-mas ter/php-5.4.45/sapi/fpm/fpm/fpm_main.c:1938

(GDB)

Found PHP lex_scan execution when the crash, through the search to understand that is a certain PHP is lexical analysis of the time has been modified.

Finally determine is tinkphp open debugging mode, the template is dynamically compiled, so that when there is concurrent access to the PHP file is resolved, and in the case of the written lex_scan when the php-fpm hung up.

When concurrency is turned off debug mode can be resolved

It's also a matter of understanding the PHP program's problems that can make the PHP-FPM process hang out.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.