ID: 26223
Comment by: xuefer at 21cn dot com
Reported By: Xuefer at 21cn dot com
Status: Verified
Bug Type: Session related
Operating System: win32
PHP Version: 4CVS-2003-12-2
New Comment:
verified on linux
is anyone fixing this bug?
btw, in error log:
[01-Feb-2004 11:24:30] PHP Warning: Unknown(): A session is active.
You cannot change the session module's ini settings at this time. in
Unknown on line 0
maybe it generate this error everytime it crash, i'm not sure
Previous Comments:
------------------------------------------------------------------------
[2003-11-17 23:08:44] Xuefer at 21cn dot com
i'm not familiar with debugging
i'm stucked
with same script
still crash on
http://www.thebrainroom.net/php-snaps/php4-win32-STABLE-foundstone-latest.zip
(with similar gdb bt)
but not crash on:
http://www.thebrainroom.net/php-snaps/php4-win32-STABLE-debug-foundstone-latest.zip
output:
Warning: file_exists(): Stat failed for Unknown (errno=9 - Bad file
descriptor) in c:\test.php on line 14
warning: ---------------------------------------
warning:
f:\tbr\php\snapbuilder\php_4_3-foundstone\ext\standard\filestat.c(616)
: Block 0x00BAE800 status:
warning: Beginning:
warning: Cached (allocated on
f:\tbr\php\snapbuilder\php_4_3-foundstone\main\main.c:485, 21 bytes)
warning: End:
warning: OK
warning: ---------------------------------------
[Tue Nov 18 11:23:53 2003] Script: 'test.php'
Program exited normally.
------------------------------------------------------------------------
[2003-11-17 21:38:43] sniper@php.net
Here you can find some debug enabled builds:
http://www.thebrainroom.net/php-snaps/
------------------------------------------------------------------------
[2003-11-17 20:53:09] Xuefer at 21cn dot com
Program received signal SIGSEGV, Segmentation fault.
0x100c00a4 in shutdown_memory_manager () from
/cygdrive/d/www/php4/php4ts.dll
(gdb) bt
#0 0x100c00a4 in shutdown_memory_manager ()
from /cygdrive/d/www/php4/php4ts.dll
#1 0x0012fd68 in ?? ()
#2 0x003e82b4 in ?? ()
#3 0x0012fe74 in ?? ()
#4 0x003e4248 in ?? ()
#5 0x10004276 in php_register_variable_ex ()
from /cygdrive/d/www/php4/php4ts.dll
Previous frame inner to this frame (corrupt stack?)
(gdb)
i'm using cygwin gdb to debug
but it is said:
"To get a backtrace with correct information you must have PHP
configured with --enable-debug!"
where can i get a debug built?
is the snapshot already with --enable-debug?
i've tested under linux and it does not crash
but under windows xp, updated to lastest snapshot still crash :(
what point am i missing?
------------------------------------------------------------------------
[2003-11-14 00:09:21] Xuefer at 21cn dot com
sorry for my careless
it took me so much time to track down this problem
but i don't know if it'll still crash if php env(system+apache+php..)
changed
<?php
touch('./127.0.0.1.3.4.5.6');
file_exists('./127.0.0.1.3.4.5.6');
function n()
{
return true;
}
function write()
{
file_exists('Unknown');
}
session_set_save_handler ("n", "n", "n", "write",
"n", "n");
session_start();
?>
------------------------------------------------------------------------
[2003-11-12 11:35:16] Xuefer at 21cn dot com
Description:
------------
using session_set_save_handler()
in write handler, if an error occur or using echo, something is output,
php crash
this make script debugging very hard
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26223&edit=1