ID: 35298
Updated by: [EMAIL PROTECTED]
Reported By: alacn dot uhahaa at gmail dot com
-Status: Open
+Status: Bogus
-Bug Type: Reproducible crash
+Bug Type: IIS related
Operating System: Windows 2003
PHP Version: 4.4.1
New Comment:
We are aware of PHP's problems with stability under IIS and are working
to rectify the problem. Unfortunatly your bug report does not contain
any
extra useful information and we already have enough bug reports open
about
this issue. If you can provide more detailed information such as a
reproducable crash or a backtrace please do so and reopen this bug.
Otherwise please keep trying new releases as we are working to resolve
the problems on this platform
Thanks for your interest in PHP.
Previous Comments:
[2005-12-04 14:58:00] alacn dot uhahaa at gmail dot com
its not fixed on cvs yet, it happens both on php 4.4.1 and php5
series.
it happens when iis is recycling the process, iis tell php that it will
free the library, php perform cleanup tasks and return, but, if zend
timeout thread is running while this happens and php return before zend
timeout thread end, it will crash, because the timeout thread will
execute on a freed (unloaded) place.
this is causing "zend window timeout" error on windows 2003
(for both php5 and php4)
[2005-11-28 01:00:02] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[2005-11-20 22:20:23] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
[2005-11-20 20:08:24] alacn dot uhahaa at gmail dot com
yah, i think its fixed now,
at zend_execute_API.c
[...]
static WNDCLASS wc;
static HWND timeout_window;
static HANDLE timeout_thread_event;
static DWORD timeout_thread_id;
static int timeout_thread_initialized=0;
static HANDLE timeout_thread_finish_event; //added
[...]
static unsigned __stdcall timeout_thread_proc(void *pArgs)
{
[...]
DestroyWindow(timeout_window);
UnregisterClass(wc.lpszClassName, NULL);
SetEvent(timeout_thread_finish_event); //added
return 0;
}
void zend_init_timeout_thread()
{
timeout_thread_event = CreateEvent(NULL, FALSE, FALSE, NULL);
timeout_thread_finish_event = CreateEvent(0, 0, 0, 0); //added
_beginthreadex(NULL, 0, timeout_thread_proc, NULL, 0,
&timeout_thread_id);
WaitForSingleObject(timeout_thread_event, INFINITE);
}
void zend_shutdown_timeout_thread()
{
if (!timeout_thread_initialized) {
return;
}
PostThreadMessage(timeout_thread_id, WM_QUIT, 0, 0);
WaitForSingleObject(timeout_thread_finish_event, 3); //added
}
[2005-11-20 19:45:39] alacn dot uhahaa at gmail dot com
i think that it could be fixed with WaitForSingleObject, making it wait
a bit of time to the timeout thread end.
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/35298
--
Edit this bug report at http://bugs.php.net/?id=35298&edit=1