|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
26 - 25 = ?
Subscribe to this entry?

 [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 \

and a problem virtual server configuration

    DocumentRoot /home/alan/cvs/hazard/
    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/" 
   php_value auto_prepend_file "lib/framework.php"
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.          


Add a Patch

Pull Requests

Add a Pull Request


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

Thank you.
 [2000-08-01 22:55 UTC]
no feedback

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