php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70468 PHP-FPM Core Dump no matter what with a Zend error
Submitted: 2015-09-10 04:14 UTC Modified: 2015-09-12 16:05 UTC
From: vilsol2000 at gmail dot com Assigned:
Status: Closed Package: FPM related
PHP Version: 5.6Git-2015-09-10 (snap) OS: Ubuntu 15.04
Private report: No CVE-ID: None
 [2015-09-10 04:14 UTC] vilsol2000 at gmail dot com
Description:
------------
I recently upgraded all packages on my server, and I noticed that I couldn't open any of my websites. I looked in the FPM log, and all of the workers were crashing just as I requested a page. I enabled core dumping and this was the result:

Core was generated by `php-fpm: pool www                                                       '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  _zend_mm_free_int (heap=0x7fcb09b027d0, p=0x7fcb09b027e0) at /build/php5-oxmf3S/php5-5.6.4+dfsg/Zend/zend_alloc.c:2104
2104    /build/php5-oxmf3S/php5-5.6.4+dfsg/Zend/zend_alloc.c: No such file or directory.
(gdb) bt
#0  _zend_mm_free_int (heap=0x7fcb09b027d0, p=0x7fcb09b027e0) at /build/php5-oxmf3S/php5-5.6.4+dfsg/Zend/zend_alloc.c:2104
#1  0x00000000006ac920 in sapi_deactivate () at /build/php5-oxmf3S/php5-5.6.4+dfsg/main/SAPI.c:525
#2  0x00000000006a3c35 in php_request_shutdown (dummy=<optimized out>) at /build/php5-oxmf3S/php5-5.6.4+dfsg/main/main.c:1893
#3  0x000000000046565d in main (argc=162534288, argv=0x7fcb09b01c30) at /build/php5-oxmf3S/php5-5.6.4+dfsg/sapi/fpm/fpm/fpm_main.c:2071
(gdb)

Literally anything generates this bug, even if its only phpinfo();

Test script:
---------------
<?php phpinfo(); ?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-09-10 04:19 UTC] vilsol2000 at gmail dot com
-Package: Reproducible crash +Package: FPM related
 [2015-09-10 04:19 UTC] vilsol2000 at gmail dot com
Change category to FPM Related
 [2015-09-10 05:50 UTC] laruence@php.net
you may try start fpm with valgrind. it maybe tell us something useful

thanks
 [2015-09-12 16:04 UTC] vilsol2000 at gmail dot com
Alright, I've fixed it now, I dont know why or how, but changing the config in nginx from 

include fastcgi_params;

to

include fastcgi.conf;

and that fixed everything.
 [2015-09-12 16:05 UTC] vilsol2000 at gmail dot com
-Status: Open +Status: Closed
 [2015-09-12 16:05 UTC] vilsol2000 at gmail dot com
Close issue
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Thu Jul 19 13:01:25 2018 UTC