PHP 4.0 Bug #5102: segfault on request shutdown
| From: | alan at sanguis dot com dot au | Date: | Sat, 17 Jun 2000 15:28:05 +0000 |
| Subject: | PHP 4.0 Bug #5102: segfault on request shutdown | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-21612@lists.php.net to get a copy of this message | ||
From: alan@sanguis.com.au
Operating system: RH 6.0 - apache 1.3.12 - DSO
PHP version: 4.0 Latest CVS (17/06/2000)
PHP Bug Type: Session related
Bug description: segfault on request shutdown
Setting any of the config 'ini' parameters that get copied by the session module in
httpd.conf causes a segfault when efree is called on their copies during request shutdown.
I have experienced this both with the main server and virtual server configurations in httpd.conf
The parameters of issue are copied in php_rinit_session_globals() and the segfault occurs in
php_rshutdown_session_globals() (in etx/session/session.c). As this occurs after the session data
has been saved sessions still work but it is a real performance killer.
I havent been successfull producing a meaningfull backtrace, but will endeavour further if you
require it.
Here is my build configuration for php
./configure --prefix=/home/httpd/php4 \
--with-apxs=/home/httpd/bin/apxs \
--disable-pic \
--enable-debug \
--enable-versioning \
--with-config-file-path=/etc \
--with-exec-dir=/home/httpd/php4/bin \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-gd \
--with-pdflib \
--with-ttf \
--with-zlib \
--with-mysql=/usr \
--with-mm \
--with-gdbm \
--with-regex=php \
--disable-pear \
--enable-bcmath \
--enable-ftp \
--enable-safe-mode \
--disable-trans-sid \
--enable-track-vars \
--enable-magic-quotes \
--enable-memory-limit \
--enable-sysvsem \
--enable-sysvshm \
--disable-short-tags
and a problem virtual server configuration
<VirtualHost 192.168.99.1>
ServerAdmin alan@sanguis.com.au
DocumentRoot /home/alan/cvs/hazard/dev.hazard.com.au/web
ServerName hazlocal
# AddType application/x-httpd-php3 .php3 .php
AddType application/x-httpd-php4 .php .html
AddType application/x-httpd-php3-source .phps
php_flag short_open_tags On
php_flag magic_quotes_gpc On
php_flag magic_quotes_runtime Off
php_flag track_vars On
php_flag session.use_cookies Off
# php_value session.cache_limiter "private"
php_value session.cache_expire "180"
# php_value session.entropy_file "/dev/random"
php_value session.save_path "/home/httpd/php4/session/"
php_value session.save_handler "files"
php_value include_path
"/home/alan/cvs/hazard/dev.hazard.com.au/php:/home/httpd/php4/lib/php:/home/alan/cvs/hazard/dev.hazard.com.au/php/lib"
php_value auto_prepend_file "lib/framework.php"
</VirtualHost>
The session.save_path,save_handler and entropy_file are some of the problem config directives.
This is not an issue when these parameters are set in the php.ini file.
Cheers