From: alp at rsu dot ru Operating system: ubuntu linux 12.04 PHP version: 5.4Git-2012-06-01 (Git) Package: Unknown/Other Function Bug Type: Bug Bug description:php-fpm segfaults (null passed to strstr)
Description: ------------ In sapi/fpm/fpm/fpm_status.c NULL can be passed to strstr, which leads to php-fpm crash with: (gdb) bt #0 __strstr_sse42 (s1=0x0, s2=<optimized out>) at ../sysdeps/x86_64/multiarch/strstr.c:175 #1 0x0000000000736d13 in fpm_status_handle_request () at /home/alp/build/php5-5.3.10/sapi/fpm/fpm/fpm_status.c:128 #2 0x000000000042b4ab in main (argc=11237155, argv=0x0) at /home/alp/build/php5-5.3.10/sapi/fpm/fpm/fpm_main.c:1809 The crash happens when monitoring software access php-fpm status page. -- Edit bug report at https://bugs.php.net/bug.php?id=62205&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62205&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62205&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62205&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62205&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62205&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62205&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62205&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62205&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62205&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62205&r=support Expected behavior: https://bugs.php.net/fix.php?id=62205&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62205&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62205&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62205&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62205&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62205&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62205&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62205&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62205&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62205&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62205&r=mysqlcfg