php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5102 segfault on request shutdown
Submitted: 2000-06-17 17:28 UTC Modified: 2000-08-18 18:46 UTC
From: alan at sanguis dot com dot au Assigned:
Status: Closed Package: Session related
PHP Version: 4.0 Latest CVS (17/06/2000) OS: RH 6.0 - apache 1.3.12 - DSO
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alan at sanguis dot com dot au
New email:
PHP Version: OS:

 

 [2000-06-17 17:28 UTC] alan at sanguis dot com dot au
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                                      

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-23 21:56 UTC] sas at cvs dot php dot net
We need a backtrace for this problem. Please refer to 

http://bugs.php.net/bugs-generating-backtrace.php

Thank you.
 [2000-08-01 22:55 UTC] waldschrott@php.net
no feedback

Please verify that it?s still happening using the latest version from CVS.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 23:01:30 2025 UTC