#48993 [Opn->Csd]: Opening error_log causes segfault
| From: | jani@php.net | Date: | Tue, 21 Jul 2009 13:30:52 +0000 |
| Subject: | #48993 [Opn->Csd]: Opening error_log causes segfault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-140008@lists.php.net to get a copy of this message | ||
ID: 48993
Updated by: jani@php.net
Reported By: rick at bluehost dot com
-Status: Open
+Status: Closed
Bug Type: Reproducible crash
Operating System: CentOS 5.3
PHP Version: 5.2.10
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/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2009-07-20 22:37:15] rick at bluehost dot com
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 this bug report at http://bugs.php.net/?id=48993&edit=1