From:             deepermm at web dot de
Operating system: Windows Vista
PHP version:      5CVS-2007-07-01 (snap)
PHP Bug Type:     CGI related
Bug description:  CLI crashes on exit

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()    


-- 
Edit bug report at http://bugs.php.net/?id=41864&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41864&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41864&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41864&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41864&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41864&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41864&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41864&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41864&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41864&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41864&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41864&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41864&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41864&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41864&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41864&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41864&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41864&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41864&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41864&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41864&r=mysqlcfg

Reply via email to