|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-06-23 21:56 UTC] sas at cvs dot php dot net
[2000-08-01 22:55 UTC] waldschrott@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
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