From: rick at bluehost dot com Operating system: CentOS 5.3 PHP version: 5.2.10 PHP Bug Type: Reproducible crash Bug description: Opening error_log causes segfault
Description: ------------ With 5.2.10 I am receiving a segfault whenever the error_log file is opened. If recompiled on the same server with php 5.2.9, it completes with an successful entry in the error_log. If the facility is changed to syslog in 5.2.10, it completes successfully with an entry sent to syslog. Reproduce code: --------------- Any error causing entry in php.ini will trigger the segfault. IE, "extension=bogus.so". php -v will cause a segfault with that in the ini file. Expected result: ---------------- An entry successfully appended to ./error_log stating the error. Actual result: -------------- strace of php -v with "extension=bogus.so" in ./php.ini ~~~~~~~ open("/usr/local/lib/php/extensions/no-debug-zts-20060613/bogus.so", O_RDONLY) = -1 ENOENT (No such file or directory) lstat("/home1", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/home1/bluehost", {st_mode=S_IFDIR|0710, st_size=4096, ...}) = 0 lstat("/home1/bluehost/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/home1/bluehost/public_html/error_log", 0x7fff4cd2c760) = -1 ENOENT (No such file or directory) open("/home1/bluehost/public_html/error_log", O_WRONLY|O_CREAT|O_APPEND, 0644) = 3 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ -- Edit bug report at http://bugs.php.net/?id=48993&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48993&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48993&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48993&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=48993&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=48993&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48993&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48993&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48993&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48993&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48993&r=support Expected behavior: http://bugs.php.net/fix.php?id=48993&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48993&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48993&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48993&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48993&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48993&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48993&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48993&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48993&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48993&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48993&r=mysqlcfg