ID: 39472
Updated by: [EMAIL PROTECTED]
Reported By: jitudavda at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: WinXP SP2
PHP Version: 5.2.0
New Comment:
Oh, yes you do:
+ name 0x01b22100 "threads"
- functions 0x01b23010
+ fname 0x01b22188 "thread_start"
This is PECL/threads, which has never been officially released.
Previous Comments:
------------------------------------------------------------------------
[2006-11-16 12:14:56] jitudavda at hotmail dot com
1] Request php page from browser.
2] wait for sometime for any output.
3] Open TaskList.
4] Right click Php.exe and Debug.
5] In MSVC, Break the execution.
Above are the steps to get the output as below in the call stack.
==============================
NTDLL! 7c90eb94()
MSVCRT! 77c2f941()
MSVCRT! 77c2fafa()
MSVCRT! 77c411a0()
MSVCRT! 77c41225()
zend_stream_stdio_reader(void * 0x77c5fc80, char * 0x011638a0, unsigned
int 8192, void * * * 0x00283c80) line 28 + 23 bytes
zend_stream_read(_zend_file_handle * 0x100a0587, char * 0x00283c80,
unsigned int 2636928, void * * * 0x0000004e) line 121 + 22 bytes
lex_scan(_zval_struct * 0x1009cc7a, void * * * 0x00c0e51c) line 5249 +
6 bytes
zendparse(void * 0x1009fd40) line 2975 + 11 bytes
compile_file(_zend_file_handle * 0x10002d85, int 12648140, void * * *
0x00000008) line 3084
zend_execute_scripts(int 269185869, void * * * 0x00000008, _zval_struct
* * 0x00283c80, int 0) line 1090 + 16 bytes
php_execute_script(_zend_file_handle * 0x00285050, void * * *
0x00fa7ce8) line 1758 + 18 bytes
_efree(void * 0x00fa7ce8) line 1660 + 24 bytes
_zval_ptr_dtor(_zval_struct * * 0x00fa7d0c) line 415 + 37 bytes
_zend_hash_add_or_update(_hashtable * 0x100bc77f, char * 0x00fa7278,
unsigned int 4207956, void * 0x0000000e, unsigned int 12647804, void *
* 0x00000004, int 13) line 229 + 6 bytes
php_register_variable_ex(char * 0x1000a501, _zval_struct * 0x00c0fe14,
_zval_struct * 0x00000000, void * * * 0x00000000) line 208 + 128 bytes
_emalloc(unsigned int 43) line 1647 + 24 bytes
_zend_hash_add_or_update(_hashtable * 0x0040214d, char * 0x00c0fecc,
unsigned int 2636928, void * 0x009bffdc, unsigned int 2009291924, void
* * 0x7ffd7000, int 12648268) line 242 + 9 bytes
main(int 0, char * * 0x00000000) line 1109
002850ec()
==============================
------------------------------------------------------------------------
[2006-11-16 12:07:45] jitudavda at hotmail dot com
I've not installed any of PELC options.
------------------------------------------------------------------------
[2006-11-16 12:06:30] jitudavda at hotmail dot com
Code is compiled with the following options.
cscript /nologo configure.js --enable-debug-pack
--with-php-build=D:\php_build\ --without-libxml
I started the debug of php.exe in MSVC. Argument given was a file with
content "<?php phpinfo();"
------------------------------------------------------------------------
[2006-11-16 12:05:58] [EMAIL PROTECTED]
Please report problems related to PECL extensions using PECL bug
tracking system.
It's not PHP problem, but a problem of particular PECL module, which
has been unsupported for years.
------------------------------------------------------------------------
[2006-11-16 11:56:05] jitudavda at hotmail dot com
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>)
======================================================
------------------------------------------------------------------------
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