From: Operating system: Ubuntu 12.04 PHP version: 5.4.3 Package: FPM related Bug Type: Bug Bug description:php-fpm segfaults when encoutering # in php.ini
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 bug report at https://bugs.php.net/bug.php?id=62126&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62126&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62126&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62126&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62126&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62126&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62126&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62126&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62126&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62126&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62126&r=support Expected behavior: https://bugs.php.net/fix.php?id=62126&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62126&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62126&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62126&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62126&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62126&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62126&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62126&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62126&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62126&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62126&r=mysqlcfg