ID: 39472
User updated by: jitudavda at hotmail dot com
Reported By: jitudavda at hotmail dot com
-Status: Feedback
+Status: Open
Bug Type: Unknown/Other Function
Operating System: WinXP SP2
PHP Version: 5.2.0
New Comment:
Please review three points below.
==1] =================================
The problem is raised while executing the following function as start
point.
File: sapi\cli\php_cli.c
LINE: 1258
CODE-SNAP:
=========================================================
if (request_started) {
php_request_shutdown((void *) 0);
}
=========================================================
==2] ==================================
Deadlock situation is created in the code as detailed below.
File Name: \Zend\zend_hash.c
Function: ZEND_API void zend_hash_destroy(HashTable *ht)
Place: while(p != NULL)
Exception: Access Denied.
======================================
==3] ====================================
Below is the content of "Auto" of the module_registry_cleanup function
call.
======================================================
- module 0x013b7788
size 88
zend_api 20060613
zend_debug 0 ''
zts 1 ''
+ ini_entry 0x00000000
+ deps 0x00000000
+ name 0x01b22100 "threads"
- functions 0x01b23010
+ fname 0x01b22188 "thread_start"
handler 0x01b21670
+ arg_info 0x00000000
num_args 4294967295
flags 0
module_startup_func 0x01b21240
module_shutdown_func 0x01b21270
request_startup_func 0x01b21280
request_shutdown_func 0x01b212f0
info_func 0x01b21350
+ version 0x01b220fc "0.1"
globals_size 0
+ globals_id_ptr 0x00000000
globals_ctor 0x00000000
globals_dtor 0x00000000
post_deactivate_func 0x00000000
module_started 1
type 1 ''
handle 0x01b20000
module_number 41
module->module_number 41
+ module->name 0x01b22100 "threads"
module->request_shutdown_func 0x01b212f0
module->type 1 ''
zend_printf 0x100b4bb0 php_printf(const char *, <no type>)
======================================================
Previous Comments:
------------------------------------------------------------------------
[2006-11-16 11:04:34] [EMAIL PROTECTED]
Which modules and extensions do you have enabled?
Do you have any zend_extension's installed?
------------------------------------------------------------------------
[2006-11-16 10:57:16] jitudavda at hotmail dot com
Here is the Stack:
1] zend_hash_destroy(_hashtable * 0x100076cc) line 517 + 7 bytes
2] module_registry_cleanup(_zend_module_entry * 0x013b7788, void * * *
0x00282900) line 1945 + 17 bytes
3] zend_hash_apply(_hashtable * 0x10002562, int (void *, void * * *)*
0x102cc8a0 _module_registry, void * * * 0x100076b0
module_registry_cleanup(_zend_module_entry *, void * * *)) line 668 + 9
bytes
4] zend_deactivate_modules(void * * * 0x0000078c) line 819 + 16 bytes
Below is the "Locals" values
=======================================
- ht->pListHead 0x04244c8b
h CXX0030: Error: expression cannot be evaluated
nKeyLength CXX0030: Error: expression cannot be evaluated
pData CXX0030: Error: expression cannot be evaluated
pDataPtr CXX0030: Error: expression cannot be evaluated
pListNext CXX0030: Error: expression cannot be evaluated
pListLast CXX0030: Error: expression cannot be evaluated
pNext CXX0030: Error: expression cannot be evaluated
pLast CXX0030: Error: expression cannot be evaluated
- arKey 0x04244cab ""
[0] CXX0030: Error: expression cannot be evaluated
If you need anymore information, please let me know. I've setup to
build from source of PHP, using "php5.2-200611160730.tar.gz"
Thank you.
Jitendra
------------------------------------------------------------------------
[2006-11-15 16:38:23] jitudavda at hotmail dot com
Hi,
Can you help me get the debug information as per your requirement?
Steps done by me.
1] Installed the VS (Also VS.NET 2003)
2] Initiated request to php page.
3] waited long time, but no reply.
4] Opened Tasklist, Right clicked "php.exe" and clicked Debug.
5] MSVC opens.
6] Problem is the debug code is not getting attached to the php.exe.
I'm getting "'D:\php\php.exe' does not contain debugging information."
I'm stuck here.
==========================================
I've few screenshots, how can I send them to you?
Screenshots shows message stating "The process appears to be deadlocked
(or is not running any user-mode code). All threads have been stopped."
Steps to regenerate.
1] Start VS.NET 2003
2] Request the php page on IIS.
3] Attach php.exe for debugging in VS.NET
4] click on Break button.
==========================================
Below is the copy of call stack taken using VS.NET.
================================================= ntdll.dll!7c90eb94()
ntdll.dll!7c90e288()
kernel32.dll!7c801875()
kernel32.dll!7c8399f3()
msvcrt.dll!77c2f941()
msvcrt.dll!77c2fafa()
msvcrt.dll!77c411a0()
msvcrt.dll!77c41225()
php5ts.dll!100b0297()
php5ts.dll!100b0334()
php5ts.dll!100a40ab()
php5ts.dll!100a0587()
php5ts.dll!10017c9f()
php5ts.dll!1009cb93()
ntdll.dll!7c9105c8()
ntdll.dll!7c910551()
ntdll.dll!7c914c99()
ntdll.dll!7c91056d()
ntdll.dll!7c914bba()
ntdll.dll!7c914bc7()
ntdll.dll!7c911538()
ntdll.dll!7c911538()
ntdll.dll!7c911596()
ntdll.dll!7c9106eb()
uxtheme.dll!5ad8ee21()
uxtheme.dll!5ad8ee6c()
uxtheme.dll!5ad8ee79()
ntdll.dll!7c9155c9()
ntdll.dll!7c90fb6c()
ntdll.dll!7c90fb71()
ntdll.dll!7c90e20a()
ntdll.dll!7c90fb71()
advapi32.dll!77dd6fb4()
advapi32.dll!77dd6fbf()
ntdll.dll!7c914d8f()
ntdll.dll!7c90fb6c()
ntdll.dll!7c90fb71()
ntdll.dll!7c915041()
ntdll.dll!7c915233()
ntdll.dll!7c9155c9()
ntdll.dll!7c915d7d()
ntdll.dll!7c915db4()
ntdll.dll!7c9153f5()
ntdll.dll!7c915af1()
ntdll.dll!7c915b4f()
ntdll.dll!7c9153f5()
ntdll.dll!7c915707()
ntdll.dll!7c915a00()
ntdll.dll!7c915a65()
ntdll.dll!7c9169a5()
ntdll.dll!7c90efe3()
ntdll.dll!7c91691d()
ntdll.dll!7c916924()
ntdll.dll!7c910833()
ntdll.dll!7c9169a5()
ntdll.dll!7c90efe3()
ntdll.dll!7c91691d()
ntdll.dll!7c916924()
ntdll.dll!7c9169a5()
ntdll.dll!7c90efe3()
ntdll.dll!7c91691d()
ntdll.dll!7c916924()
ntdll.dll!7c91554a()
ntdll.dll!7c9169a5()
ntdll.dll!7c90efe3()
ntdll.dll!7c91691d()
ntdll.dll!7c916924()
ntdll.dll!7c910732()
ntdll.dll!7c910732()
ntdll.dll!7c9106ab()
ntdll.dll!7c9106eb()
ntdll.dll!7c916924()
ntdll.dll!7c9168a6()
ntdll.dll!7c9168ae()
ntdll.dll!7c911b09()
ntdll.dll!7c911b09()
ntdll.dll!7c9106eb()
ntdll.dll!7c9119e6()
ntdll.dll!7c911a24()
ntdll.dll!7c9119fa()
ntdll.dll!7c910945()
ntdll.dll!7c91094e()
ntdll.dll!7c914190()
ntdll.dll!7c910970()
ntdll.dll!7c913e6f()
ntdll.dll!7c913e62()
kernel32.dll!7c80b6c6()
ntdll.dll!7c910945()
ntdll.dll!7c91094e()
ntdll.dll!7c9103be()
ntdll.dll!7c910970()
ntdll.dll!7c9140ef()
ntdll.dll!7c9140bb()
ntdll.dll!7c915db4()
ntdll.dll!7c910732()
=================================================
------------------------------------------------------------------------
[2006-11-12 18:54:56] [EMAIL PROTECTED]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
[2006-11-11 17:31:09] jitudavda at hotmail dot com
I switched to using php5isapi.dll. (I reinstalled without 'CLI
Executable' option.)
It works fine only for phpinfo(); Running the application gave one more
issue.
==============================================
Out of process application '/LM/W3SVC/1/Root/drupal' terminated
unexpectedly.
==============================================
Every request gives Internal Server 500 error and then on second try it
returns resulted page or empty output.
Thanks Help is needed urgently.
------------------------------------------------------------------------
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/39472
--
Edit this bug report at http://bugs.php.net/?id=39472&edit=1