php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62126 php-fpm segfaults when encoutering # in php.ini
Submitted: 2012-05-23 15:51 UTC Modified: 2013-02-18 00:35 UTC
From: i dot galic at brainsware dot org Assigned: fat (profile)
Status: No Feedback Package: FPM related
PHP Version: 5.4.3 OS: Ubuntu 12.04
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-05-23 15:51 UTC] i dot galic at brainsware dot org
Description:
------------
When php-fpm encounters a '#' while parsing php.ini, it will abort with a Segmentation fault.

Actual result:
--------------
Core was generated by `/opt/bw/sbin/php-fpm --help'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007fbcdd57576f in sapi_cgi_log_message (
    message=0x7fbcdd1001b8 "PHP Deprecated:  Comments starting with '#' are deprecated in /etc/bw/php/php.ini on line 713 in Unknown on line 0", 
    tsrm_ls=0x7fbcddd68090) at /build/php/php-5.4.3/sapi/fpm/fpm/fpm_main.c:651
651             if (CGIG(fcgi_logging)) {
(gdb) bt
#0  0x00007fbcdd57576f in sapi_cgi_log_message (
    message=0x7fbcdd1001b8 "PHP Deprecated:  Comments starting with '#' are deprecated in /etc/bw/php/php.ini on line 713 in Unknown on line 0", 
    tsrm_ls=0x7fbcddd68090) at /build/php/php-5.4.3/sapi/fpm/fpm/fpm_main.c:651
#1  0x00007fbcdd43cf0a in php_log_err (
    log_message=0x7fbcdd1001b8 "PHP Deprecated:  Comments starting with '#' are deprecated in /etc/bw/php/php.ini on line 713 in Unknown on line 0", 
    tsrm_ls=0x7fbcddd68090) at /build/php/php-5.4.3/main/main.c:647
#2  0x00007fbcdd43d463 in php_error_cb (type=8192, error_filename=0x7fbcdd57e135 "Unknown", error_lineno=0, format=<optimized out>, 
    args=<optimized out>) at /build/php/php-5.4.3/main/main.c:1057
#3  0x00007fbcdd4b1549 in zend_error (type=8192, format=0x7fbcdd90c118 "Comments starting with '#' are deprecated in %s on line %d")
    at /build/php/php-5.4.3/Zend/zend.c:1091
#4  0x00007fbcdd47d65c in ini_lex (ini_lval=<optimized out>, tsrm_ls=0x7fbcddd68090) at Zend/zend_ini_scanner.l:564
#5  0x00007fbcdd47c290 in ini_parse (tsrm_ls=0x7fbcddd68090) at /build/php/php-5.4.3/Zend/zend_ini_parser.c:1572
#6  0x00007fbcdd47c8e2 in zend_parse_ini_file (fh=0x7fffbb5e5c40, unbuffered_errors=<optimized out>, scanner_mode=<optimized out>, 
    ini_parser_cb=<optimized out>, arg=<optimized out>, tsrm_ls=0x7fbcddd68090) at /build/php/php-5.4.3/Zend/zend_ini_parser.c:319
#7  0x00007fbcdd446f6a in php_init_config (tsrm_ls=0x7fbcddd68090) at /build/php/php-5.4.3/main/php_ini.c:579
#8  0x00007fbcdd440276 in php_module_startup (sf=<optimized out>, additional_modules=0x7fbcddc1acc0, num_additional_modules=1)
    at /build/php/php-5.4.3/main/main.c:2137
#9  0x00007fbcdd5752e5 in php_cgi_startup (sapi_module=<optimized out>) at /build/php/php-5.4.3/sapi/fpm/fpm/fpm_main.c:823
#10 0x00007fbcdd236c38 in main (argc=2, argv=0x7fffbb5ea798) at /build/php/php-5.4.3/sapi/fpm/fpm/fpm_main.c:1642

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-23 15:54 UTC] fat@php.net
-Assigned To: +Assigned To: fat
 [2012-05-23 18:11 UTC] fat@php.net
-Status: Assigned +Status: Feedback
 [2012-05-23 18:11 UTC] fat@php.net
Please try using this snapshot:

  http://snaps.php.net/php-trunk-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

it's already been fixed
 [2013-02-18 00:35 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 "Open". Thank you.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC