[php-maint] Bug#748649: php5-fpm: php-fpm segfaulting at zend_vm_execute.h

Markus Ziermann markus at fullmotion.de
Mon May 19 09:03:54 UTC 2014

Package: php5-fpm
Version: 5.4.4-14+deb7u9
Severity: important

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 (
    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.

-- System Information:
Debian Release: 7.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages php5-fpm depends on:
ii  dpkg              1.16.14
ii  libbz2-1.0        1.0.6-4
ii  libc6             2.13-38+deb7u1
ii  libcomerr2        1.42.5-1.1
ii  libdb5.1          5.1.29-5
ii  libgssapi-krb5-2  1.10.1+dfsg-5+deb7u1
ii  libk5crypto3      1.10.1+dfsg-5+deb7u1
ii  libkrb5-3         1.10.1+dfsg-5+deb7u1
ii  libmagic1         5.11-2+deb7u3
ii  libonig2          5.9.1-1
ii  libpcre3          1:8.30-5
ii  libqdbm14         1.8.78-2
ii  libssl1.0.0       1.0.1e-2+deb7u7
ii  libxml2           2.8.0+dfsg1-7+nmu3
ii  mime-support      3.52-1
ii  php5-common       5.4.4-14+deb7u9
ii  tzdata            2014c-0wheezy1
ii  ucf               3.0025+nmu3
ii  zlib1g            1:1.2.7.dfsg-13

php5-fpm recommends no packages.

Versions of packages php5-fpm suggests:
ii  php-pear  5.4.4-14+deb7u9

-- Configuration Files:
/etc/php5/fpm/pool.d/www.conf changed:
rlimit_core = unlimited
user = www-data
group = www-data
listen = /var/run/php5-fpm.sock
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
chdir = /

-- no debconf information

More information about the pkg-php-maint mailing list