ID: 48744
Updated by: jani@php.net
Reported By: tom at ideaweb dot de
-Status: Open
+Status: Feedback
Bug Type: Safe Mode/open_basedir
Operating System: Linux Debian Etch
PHP Version: 5.3.0
Assigned To: fb-req-jani
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Just in case this is just another side-effect caused by another bug..
Previous Comments:
------------------------------------------------------------------------
[2009-07-10 15:50:01] tom at ideaweb dot de
Without php.ini the server keeps crashing, but i think with "wrong
configuration parameters" the server should not crash...
------------------------------------------------------------------------
[2009-07-10 14:00:09] jleg at nrw dot net
Hi,
i just wanted to confirm this behaviour - we recently upgraded one of
our development servers from PHP 5.2.9 to 5.3.0, and experienced similar
segfaulting. Test script only contains "phpinfo()".
It segfaults one time out of three.
System is a CentOS 5.3, standard httpd (prefork). Updating PHP was the
only change. Reverting back to 5.2.9 stops segfaulting, as well as
removing the "php_admin_value open_basedir" in apache config.
To build the PHP 5.3.0, the same configure-script as fpr 5.2.x was used
- with the exception of including "mysqlnd".
Error msg in log while segfaulting is (note that garbage in "allowed
paths"):
PHP Warning: Unknown: open_basedir restriction in effect.
File(<....>/t.php) is not within the allowed path(s): (\³< \³<
Àg= ) in Unknown on line 0
PHP Warning: Unknown: failed to open stream: Operation not permitted
in Unknown on line 0
regards, Jan
------------------------------------------------------------------------
[2009-07-07 17:23:23] jani@php.net
Obvious thing to check is what are the differences in your working
installation and this non-working one's php.ini, configure line, loaded
modules, apache settings..etc.
------------------------------------------------------------------------
[2009-07-01 19:48:11] tom at ideaweb dot de
Thread Safety is disabled (shown in phpinfo()), but i did never
enabled it on our servers, and we have lot... and i'm using apache2-
mpm-prefork... these default configurations ran never in trouble for
me, on high traffic sites too, but in this case it crashes on each
request. =(
./configure \
"--enable-so" \
"--enable-cgi" \
"--enable-info" \
"--enable-rewrite" \
"--enable-usertrack" \
"--enable-deflate" \
"--enable-dav" \
"--enable-unique-id" \
"--enable-dav-fs" \
"--enable-dav-lock" \
"--enable-mime-magic" \
"--enable-proxy" \
"--enable-ssl" \
"--with-ssl=/usr" \
"--prefix=/www/apache/2.2.11"
[...]
checking which MPM to use... prefork
[...]
./configure \
--prefix=/www/prog/php/5.3.0 \
--with-apxs2=/www/apache/2.2.11/bin/apxs \
--with-config-file-path=/www/etc \
--with-iconv=/usr/local \
--with-iconv-dir=/usr/local \
--with-mysqli=/www/prog/mysql/current/bin/mysql_config \
--with-mysql-sock=/www/share/mysql/current/mysqld.sock \
--with-pdo-mysql=/www/prog/mysql/current/ \
--with-mysql=/www/prog/mysql/current/ \
--enable-safe-mode=no \
--enable-discard \
--enable-magic-quotes \
--enable-track-vars \
--with-zlib \
--with-zlib-dir=/usr \
--enable-trans-sid \
--with-openssl=/usr \
--enable-wddx \
--enable-bcmath \
--enable-shmop \
--enable-mhash \
--enable-ftp \
--enable-calendar \
--with-gd \
--with-freetype \
--with-freetype-dir=/usr \
--with-jpeg \
--with-jpeg-dir=/usr \
--enable-exif \
--with-png \
--with-png-dir=/usr \
--enable-mbstring \
--enable-sockets \
--with-mhash=/usr \
--with-ldap=/usr \
--with-kerberos=/usr \
--with-libxml-dir=/usr \
--with-gettext \
--with-xsl=/usr \
--enable-soap \
--with-mcrypt \
--enable-debug
------------------------------------------------------------------------
[2009-07-01 17:59:47] sjoerd-php at linuxonly dot nl
Are you perhaps running a multithreaded Apache server with a
non-thread-safe PHP module?
Check "Thread Safety" in phpinfo() and whether you have
apache2-mpm-worker or apache2-mpm-prefork.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/48744
--
Edit this bug report at http://bugs.php.net/?id=48744&edit=1