PHP 4.0 Bug #8011 Updated: crash when sess_ files from other users in same directory
| From: | sniper@php.net | Date: | Sun, 03 Dec 2000 05:02:36 +0000 |
| Subject: | PHP 4.0 Bug #8011 Updated: crash when sess_ files from other users in same directory | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39893@lists.php.net to get a copy of this message | ||
ID: 8011
Updated by: sniper
Reported By: s-haa5@jura.uni-tuebingen.de
Status: Closed
Bug Type: *Session related
Assigned To:
Comments:
This is fixed. Please try: http://www.php.net/distributions/php-4.0.4RC3.tar.gz
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-12-02 23:46:11] s-haa5@jura.uni-tuebingen.de
Now I know, that session.auto_start need to be enabled. Thank you.
session.auto_start = 1
session.save_path = /tmp
session.gc_probability = 100
Program terminated with signal 11, Segmentation fault.
Cannot access memory at address 0x200d4080.
#0 0xb79b in php_readdir_r (dirp=0xfdac0, entry=0xefbfd39c, result=0xefbfcf34)
at reentrancy.c:130
130 memcpy(entry, ptr, sizeof(*ptr));
(gdb) bt
#0 0xb79b in php_readdir_r (dirp=0xfdac0, entry=0xefbfd39c, result=0xefbfcf34)
at reentrancy.c:130
#1 0x1d464 in ps_files_cleanup_dir (dirname=0xe136c "/tmp", maxlifetime=1440)
at mod_files.c:168
#2 0x1d725 in ps_gc_files (mod_data=0xd8630, maxlifetime=1440,
nrdels=0xefbfd8e4) at mod_files.c:292
#3 0x1be9b in php_session_start () at session.c:933
#4 0x1d0fa in php_rinit_session (type=1, module_number=3) at session.c:1396
#5 0x68a48 in module_registry_request_startup (module=0x110a80)
at zend_API.c:838
#6 0x6a0a1 in zend_hash_apply (ht=0xdb4d4,
apply_func=0x68a30 <module_registry_request_startup>) at zend_hash.c:692
#7 0x66c56 in zend_activate_modules () at zend.c:490
#8 0x4523 in php_execute_script (primary_file=0xefbfd9ec) at main.c:1135
#9 0x26d5 in main (argc=1, argv=0xefbfda28) at cgi_main.c:706
---------------------------------------------------------------------------
[2000-12-02 09:11:37] sas@php.net
Can you post a backtrace which shows where the error happens?
http://bugs.php.net/bugs-generating-backtrace.php
---------------------------------------------------------------------------
[2000-11-28 10:04:09] s-haa5@jura.uni-tuebingen.de
My session files had been stored in the default /tmp directory. Using PHP on a commonly used server
(provider) with session files from other users stored there, let PHP craches with the probability of
session.gc_probability. (I've no read/write access of the session files of other users.)
PHP is configured using:
--with-mysql=/usr/local --with-config-file-path=/usr/home/as/php --enable-debug=no
--enable-track-vars=yes --enable-force-cgi-redirect=yes --enable-trans-sid=yes
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8011