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