Edit report at https://bugs.php.net/bug.php?id=62126&edit=1
ID: 62126 Updated by: f...@php.net Reported by: i dot galic at brainsware dot org Summary: php-fpm segfaults when encoutering # in php.ini -Status: Assigned +Status: Feedback Type: Bug Package: FPM related Operating System: Ubuntu 12.04 PHP Version: 5.4.3 Assigned To: fat Block user comment: N Private report: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2012-05-23 15:51:22] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62126&edit=1