Bug #77578 [Ver->Csd]: Crash when php unload
| From: | cmb@php.net | Date: | Mon, 18 Mar 2019 18:28:37 +0000 |
| Subject: | Bug #77578 [Ver->Csd]: Crash when php unload | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-220064@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77578&edit=1
ID: 77578
Updated by: cmb@php.net
Reported by: ininflamable at gmail dot com
Summary: Crash when php unload
-Status: Verified
+Status: Closed
Type: Bug
Package: COM related
Operating System: Windows 2008 R2
PHP Version: 7.2.14
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=41bc51ce2d217aa7aca85b4be289bebf91813423
Log: Fix #77578: Crash when php unload
Previous Comments:
------------------------------------------------------------------------
[2019-03-07 17:39:20] ininflamable at gmail dot com
Tested on PHP-CLI 7.3.3
\usr\php-7.3.3\php -a
Interactive shell
php > ini_set('com.autoregister_typelib', 1);
php > $locator = new COM('WbemScripting.SWbemLocator');
php > exit
Crash
------------------------------------------------------------------------
[2019-02-08 13:37:49] cmb@php.net
The following pull request has been associated:
Patch Name: Fix #77578: Crash when php unload
On GitHub: https://github.com/php/php-src/pull/3806
Patch: https://github.com/php/php-src/pull/3806.patch
------------------------------------------------------------------------
[2019-02-08 13:37:25] cmb@php.net
> With:
> com.autoregister_typelib = false
> There is no exception.
Ah, indeed. Thanks!
------------------------------------------------------------------------
[2019-02-07 19:49:48] ininflamable at gmail dot com
With:
com.autoregister_typelib = false
There is no exception.
------------------------------------------------------------------------
[2019-02-07 19:40:15] ininflamable at gmail dot com
New backtrace with only the php_com_dotnet.dll extension enabled.
DetailID = 1
Count: 1
Exception #: 0XC0000005
Stack:
php_com_dotnet!_guard_dispatch_icall_nop
php7ts!zend_hash_destroy+0xed [c:\php-snap-build\php73\vc15\x64\php-7.3.2-ts\zend\zend_hash.c @
1429]
php7ts!zend_ts_hash_destroy+0x1b
[c:\php-snap-build\php73\vc15\x64\php-7.3.2-ts\zend\zend_ts_hash.c @ 74]
php_com_dotnet!zm_shutdown_com_dotnet+0x19
[c:\php-snap-build\php73\vc15\x64\php-7.3.2-ts\ext\com_dotnet\com_extension.c @ 428]
php7ts!module_destructor+0xef [c:\php-snap-build\php73\vc15\x64\php-7.3.2-ts\zend\zend_api.c @
2579]
php7ts!module_destructor_zval+0x11 [c:\php-snap-build\php73\vc15\x64\php-7.3.2-ts\zend\zend.c @
746]
php7ts!zend_hash_graceful_reverse_destroy+0x136
[c:\php-snap-build\php73\vc15\x64\php-7.3.2-ts\zend\zend_hash.c @ 1658]
php7ts!zend_shutdown+0x43 [c:\php-snap-build\php73\vc15\x64\php-7.3.2-ts\zend\zend.c @ 978]
php7ts!php_module_shutdown+0x50 [c:\php-snap-build\php73\vc15\x64\php-7.3.2-ts\main\main.c @ 2493]
php!main+0x76b [c:\php-snap-build\php73\vc15\x64\php-7.3.2-ts\sapi\cli\php_cli.c @ 1406]
php!__scrt_common_main_seh+0x10c [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288]
kernel32!BaseThreadInitThunk+0xd
ntdll!RtlUserThreadStart+0x1d
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=77578
--
Edit this bug report at https://bugs.php.net/bug.php?id=77578&edit=1