php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66554 php-fpm segmentation fault
Submitted: 2014-01-22 18:38 UTC Modified: 2021-09-05 04:22 UTC
From: sargaskn at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: *General Issues
PHP Version: 5.5.8 OS: FreeBSD 9.1-RELEASE-p4
Private report: No CVE-ID: None
 [2014-01-22 18:38 UTC] sargaskn at gmail dot com
Description:
------------
I periodicaly see php-fpm errors (usually every 3-5 hours it crashes)
Jan 22 15:17:15 DS2152 kernel: pid 16212 (php-fpm), uid 80: exited on signal 11 (core dumped)

I cant find how to reproduce the problem, cant see any regularity.
It can be reproduced on php 5.5.8. I've tried it on php 5.5 snapshot and it appears.

PHP 5.5.9-dev (cli) (built: Jan 22 2014 12:02:27) (DEBUG)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

PHP compiled like this http://pastebin.com/94HW6sqX
Php module used http://pecl.php.net/package/redis

Backtrace below

(gdb) bt
#0  0x00000000007fd8b3 in lex_scan (zendlval=0x7fffffff99d8) at zend_language_scanner.c:2269
#1  0x0000000000839f6e in zendlex (zendlval=0x7fffffff99d0) at /usr/work/src/php5.5-201401220830/Zend/zend_compile.c:6749
#2  0x00000000007f0c84 in zendparse () at /usr/work/src/php5.5-201401220830/Zend/zend_language_parser.c:3436
#3  0x00000000007f8ac4 in compile_file (file_handle=0x7fffffff9fa0, type=8) at zend_language_scanner.l:588
#4  0x00000000006201e2 in phar_compile_file (file_handle=0x7fffffff9fa0, type=8) at /usr/work/src/php5.5-201401220830/ext/phar/phar.c:3383
#5  0x000000080540780c in compile_and_cache_file (file_handle=0x7fffffff9fa0, type=8, key=0x80562da94 "/home/wwwdata/example.com/_tmp/lang/en/forum.php", key_length=53, op_array_p=0x7fffffff9f30, from_shared_memory=0x7fffffff9f38)
    at /usr/work/src/php5.5-201401220830/ext/opcache/ZendAccelerator.c:1363
#6  0x00000008054083db in persistent_compile_file (file_handle=0x7fffffff9fa0, type=8) at /usr/work/src/php5.5-201401220830/ext/opcache/ZendAccelerator.c:1641
#7  0x00000000008e5ad9 in ZEND_INCLUDE_OR_EVAL_SPEC_CV_HANDLER (execute_data=0x805046640) at zend_vm_execute.h:30905
#8  0x0000000000891cf9 in execute_ex (execute_data=0x805046640) at zend_vm_execute.h:363
#9  0x0000000000891d8d in zend_execute (op_array=0x805d89470) at zend_vm_execute.h:388
#10 0x00000000008555e2 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/work/src/php5.5-201401220830/Zend/zend.c:1316
#11 0x00000000007bf8f2 in php_execute_script (primary_file=0x7fffffffd9b0) at /usr/work/src/php5.5-201401220830/main/main.c:2506
#12 0x000000000090fc03 in main (argc=1, argv=0x7fffffffdb48) at /usr/work/src/php5.5-201401220830/sapi/fpm/fpm/fpm_main.c:1933


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-08-24 13:55 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-08-24 13:55 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-09-05 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC