#748649 php5-fpm: php-fpm segfaulting at zend_vm_execute.h

#748649#5
Date:
2014-05-19 09:03:54 UTC
From:
To:
Dear Maintainer,

I'm running nginx with php5-fpm. Seemingly random I see 'Bad gateway' errors
when browsing a wordpress based blog running on the server. According to
syslog this is caused by php segfaulting.

My debugging skills are pretty limited, but this is what I got by following
the guide on php.net:

Program terminated with signal 11, Segmentation fault.
#0  0x0000000000681d8a in do_bind_function (op_array=0x25a4100,
    opline=0x7ffa5ecae850, function_table=0x1f83c10, compile_time=0 '\000')
    at /tmp/buildd/php5-5.4.4/Zend/zend_compile.c:4415
4415	/tmp/buildd/php5-5.4.4/Zend/zend_compile.c: No such file or directory.
(gdb) bt
#0  0x0000000000681d8a in do_bind_function (op_array=0x25a4100,
    opline=0x7ffa5ecae850, function_table=0x1f83c10, compile_time=0 '\000')
    at /tmp/buildd/php5-5.4.4/Zend/zend_compile.c:4415
#1  0x00000000006d3e80 in ZEND_DECLARE_FUNCTION_SPEC_HANDLER (
    execute_data=0x7ffa70fa1c10)
    at /tmp/buildd/php5-5.4.4/Zend/zend_vm_execute.h:961
#2  0x00000000007001f7 in execute (op_array=0x334b508)
    at /tmp/buildd/php5-5.4.4/Zend/zend_vm_execute.h:410
#3  0x000000000069f89e in zend_execute_scripts (type=8, retval=0x7ffa70fcc540,
    file_count=3) at /tmp/buildd/php5-5.4.4/Zend/zend.c:1302
#4  0x000000000063ec03 in php_execute_script (primary_file=0x6e65746e6f632d70)
    at /tmp/buildd/php5-5.4.4/main/main.c:2478
#5  0x0000000000431d80 in main (argc=1895415256, argv=0xdc46a0)
    at /tmp/buildd/php5-5.4.4/sapi/fpm/fpm/fpm_main.c:1897
(gdb) frame 2
#2  0x00000000007001f7 in execute (op_array=0x334b508)
    at /tmp/buildd/php5-5.4.4/Zend/zend_vm_execute.h:410
410	/tmp/buildd/php5-5.4.4/Zend/zend_vm_execute.h: No such file or directory.

#748649#10
Date:
2014-05-22 07:13:34 UTC
From:
To:
Turns out this doesn't happen when I turn off php-apc.