Edit report at https://bugs.php.net/bug.php?id=55340&edit=1
ID: 55340 Updated by: f...@php.net Reported by: php-bugs at majkl578 dot cz Summary: FPM: SIGSEGV with some arguments -Status: Analyzed +Status: Closed Type: Bug Package: FPM related Operating System: Linux Debian Sid PHP Version: 5.4SVN-2011-08-01 (snap) Assigned To: fat Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2011-08-02 00:58:51] f...@php.net Automatic comment from SVN on behalf of fat Revision: http://svn.php.net/viewvc/?view=revision&revision=314078 Log: - Fixed bug #55340 (segfault when using some arguments -- bug introduced by commit r313351) ------------------------------------------------------------------------ [2011-08-01 23:20:33] f...@php.net This bug has been caused by commit 313351 (http://svn.php.net/viewvc? view=revision&revision=313351) which cause segfault when FPM outputs before fastcgi is initialized. I'll fix it tomorrow. ------------------------------------------------------------------------ [2011-08-01 22:21:09] php-bugs at majkl578 dot cz Description: ------------ Segmentation fault when used with some arguments. Test script: --------------- $ php-fpm -h $ php-fpm --help $ php-fpm -v And maybe some others. Expected result: ---------------- Console output. Actual result: -------------- Core was generated by `php-fpm -h'. Program terminated with signal 11, Segmentation fault. #0 0x086aa5f4 in fcgi_write (req=0x0, type=FCGI_STDOUT, str=0xb68ba064 "Usage: php [-n] [-e] [-h] [-i] [-m] [-v] [-t] [-p <prefix>] [-g <pid>] [-c <file>] [-d foo[=bar]] [-y <file>]\n -c <path>|<file> Look for php.ini file in this directory\n -n", ' ' <repeats 15 times>, "No php.ini f"..., len=839) at /storage/builds/php/php5.4-201108010030/sapi/fpm/fpm/fastcgi.c:957 957 if (req->out_hdr && req->out_hdr->type != type) { (gdb) bt #0 0x086aa5f4 in fcgi_write (req=0x0, type=FCGI_STDOUT, str=0xb68ba064 "Usage: php [-n] [-e] [-h] [-i] [-m] [-v] [-t] [-p <prefix>] [-g <pid>] [-c <file>] [-d foo[=bar]] [-y <file>]\n -c <path>|<file> Look for php.ini file in this directory\n -n", ' ' <repeats 15 times>, "No php.ini f"..., len=839) at /storage/builds/php/php5.4-201108010030/sapi/fpm/fpm/fastcgi.c:957 #1 0x086b2689 in sapi_cgibin_single_write ( str=0xb68ba064 "Usage: php [-n] [-e] [-h] [-i] [-m] [-v] [-t] [-p <prefix>] [-g <pid>] [-c <file>] [-d foo[=bar]] [-y <file>]\n -c <path>|<file> Look for php.ini file in this directory\n -n", ' ' <repeats 15 times>, "No php.ini f"..., str_length=839) at /storage/builds/php/php5.4-201108010030/sapi/fpm/fpm/fpm_main.c:269 #2 0x086b26c4 in sapi_cgibin_ub_write ( str=0xb68ba064 "Usage: php [-n] [-e] [-h] [-i] [-m] [-v] [-t] [-p <prefix>] [-g <pid>] [-c <file>] [-d foo[=bar]] [-y <file>]\n -c <path>|<file> Look for php.ini file in this directory\n -n", ' ' <repeats 15 times>, "No php.ini f"..., str_length=839) at /storage/builds/php/php5.4-201108010030/sapi/fpm/fpm/fpm_main.c:283 #3 0x0853305c in php_output_op (op=0, str=0xb68ba064 "Usage: php [-n] [-e] [-h] [-i] [-m] [-v] [-t] [-p <prefix>] [-g <pid>] [-c <file>] [-d foo[=bar]] [-y <file>]\n -c <path>|<file> Look for php.ini file in this directory\n -n", ' ' <repeats 15 times>, "No php.ini f"..., len=839) at /storage/builds/php/php5.4-201108010030/main/output.c:1022 #4 0x08531321 in php_output_write ( str=0xb68ba064 "Usage: php [-n] [-e] [-h] [-i] [-m] [-v] [-t] [-p <prefix>] [-g <pid>] [-c <file>] [-d foo[=bar]] [-y <file>]\n -c <path>|<file> Look for php.ini file in this directory\n -n", ' ' <repeats 15 times>, "No php.ini f"..., len=839) at /storage/builds/php/php5.4-201108010030/main/output.c:201 #5 0x0851b47c in php_printf ( format=0x8bb54b8 "Usage: %s [-n] [-e] [-h] [-i] [-m] [-v] [-t] [-p <prefix>] [-g <pid>] [-c <file>] [-d foo[=bar]] [-y <file>]\n -c <path>|<file> Look for php.ini file in this directory\n -n", ' ' <repeats 15 times>, "No php.ini fi"...) at /storage/builds/php/php5.4-201108010030/main/main.c:607 #6 0x086b38c0 in php_cgi_usage (argv0=0xbf8f1c54 "php-fpm") at /storage/builds/php/php5.4-201108010030/sapi/fpm/fpm/fpm_main.c:854 #7 0x086b4ff3 in main (argc=2, argv=0xbf8f0004) at /storage/builds/php/php5.4-201108010030/sapi/fpm/fpm/fpm_main.c:1622 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55340&edit=1