#26223 [Asn->Fbk]: Error message makes PHP crash (in some special cases)

From: Date: Tue, 13 Apr 2004 16:55:36 +0000
Subject: #26223 [Asn->Fbk]: Error message makes PHP crash (in some special cases)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-58050@lists.php.net to get a copy of this message
 ID:               26223
 Updated by:       sniper@php.net
 Reported By:      Xuefer at 21cn dot com
-Status:           Assigned
+Status:           Feedback
 Bug Type:         *General Issues
 Operating System: win32 only
 PHP Version:      4CVS, 5CVS
 Assigned To:      helly
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip




Previous Comments:
------------------------------------------------------------------------

[2004-02-13 10:02:13] sniper@php.net

The crash happens in the error outputting
functions..php_docref..something. Marcus broke it so Marcus fixes it.


------------------------------------------------------------------------

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


Thread (28 messages)

« previous php.bugs (#58050) next »