Bug #76948 [Opn->Fbk]: Failed shutdown/reboot or end session in Windows
| From: | ab@php.net | Date: | Tue, 02 Oct 2018 22:29:47 +0000 |
| Subject: | Bug #76948 [Opn->Fbk]: Failed shutdown/reboot or end session in Windows | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-217382@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76948&edit=1
ID: 76948
Updated by: ab@php.net
Reported by: enyby at yandex dot ru
Summary: Failed shutdown/reboot or end session in Windows
-Status: Open
+Status: Feedback
Type: Bug
Package: CGI/CLI related
Operating System: Windows 7 x64
PHP Version: 7.2.10
Block user comment: N
Private report: N
New Comment:
Thanks for the report. How exactly do you run php-cgi? Which exact Windows is that, with or without
SP? Unfortunately I have no chance to test on win7 in near future, on win10 i don't see such
issue.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2018-09-29 14:54:23] enyby at yandex dot ru
Tested:
PHP 7.2.8 (built: Jul 18 2018 10:03:02) ( NTS MSVC15 (Visual C++ 2017) x64 )
PHP 7.2.10 (built: Sep 13 2018 00:47:25) ( NTS MSVC15 (Visual C++ 2017) x64 )
------------------------------------------------------------------------
[2018-09-29 13:58:32] enyby at yandex dot ru
Description:
------------
I run FastCGI server via
php-cgi.exe -b 9001
It spawn lot of workers.
If I try end Windows session, or reboot, or shutdown, windows stuck on windows with message about
php-cgi.exe
The application has failed to start correctly (0xc0000142)
This dialog can not be closed because recreated many times.
Force close opened apps (ask from windows) do not help.
As I see windows kill workers one-by-one, but main process spawn new. And it is fall in endless
loop: window close workers, root process spawn new ones.
I think php-cgi must detect windows shutdown or use way for spawn workers which do not bypass
blocking by system.
Before php7 (php 5.6 or older) issue not happens.
I see few windows with error 0xc0000142 on reboot, but it is be few of them, not endless counts.
Expected result:
----------------
Reboot Windows
Actual result:
--------------
Stuck on dialog
php-cgi.exe
The application has failed to start correctly (0xc0000142)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76948&edit=1