php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41864 CLI crashes on exit when loading php_threads.dll
Submitted: 2007-07-01 13:02 UTC Modified: 2007-07-01 13:20 UTC
From: deepermm at web dot de Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 5CVS-2007-07-01 (snap) OS: Windows Vista
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: deepermm at web dot de
New email:
PHP Version: OS:

 

 [2007-07-01 13:02 UTC] deepermm at web dot de
Description:
------------
When running the 5.2.4-dev (5.2.2.4) php.exe, php-win.exe or php-cgi.exe from either the command line or the explorer, using any command line options, windows will generate an "CLI does not work anymore" error as soon as the applications exits.

When viewing pages through the Apache 2.2 php module, everything works fine.

Reproduce code:
---------------
just run the CLI and exit witth CTRL-Z or run with any command line options

Expected result:
----------------
clean exit

Actual result:
--------------
Visual Studio quotes an "Unhandled exception at 0x10099c2d in php.exe: 0xC0000005: Access violation reading location 0x00000014.", the call stack shows that the call comes from php5ts.dll!10099c2d() in an earlier stage.

Windows Event log gives

Application Error, Event-ID: 1000, Level: 2, Task category: 100, Keyword: 0x80000000000000 (classic), Protocol channel: Application
Error in php.exe (5.2.4.4), failing module: php5ts.dll (5.2.4.4)
Timestamp 0x4687981e, Exception code 0xc0000005, Error offset 00099c2d
Process ID b98, Application start time 01c7bbddaf3efa82.

Visual Studio backtrace:

>	php5ts.dll!zend_hash_destroy(_hashtable * ht=0x00000001)  Line 522 + 0x7 bytes	C
 	php5ts.dll!module_registry_cleanup(_zend_module_entry * module=0x01a5de98, void * * * tsrm_ls=0x0015f860)  Line 1946 + 0x11 bytes	C
 	php5ts.dll!zend_hash_apply(_hashtable * ht=0x104b0fc0, int (void *, void * * *)* apply_func=0x100078b0, void * * * tsrm_ls=0x0015f860)  Line 673 + 0x9 bytes	C
 	php5ts.dll!zend_deactivate_modules(void * * * tsrm_ls=0x0015f860)  Line 838 + 0x10 bytes	C
 	php5ts.dll!php_request_shutdown(void * dummy=0x00000000)  Line 1317	C
 	php.exe!main(int argc=1, char * * argv=0x0015f838)  Line 1332 + 0x8 bytes	C
 	php.exe!_mainCRTStartup()  + 0xe3 bytes	
 	kernel32.dll!77343833() 	
 	[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]	
 	ntdll.dll!77a1a9bd() 	


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-01 13:07 UTC] deepermm at web dot de
Rechecked: It also crashes upon die() and exit(), this time apache suffers as well.
 [2007-07-01 13:15 UTC] deepermm at web dot de
not loading php_threads.dll works around that
 [2007-07-01 13:20 UTC] sniper@php.net
This is wrong place to report bugs in PECL extensions.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 12:01:32 2024 UTC