Bug #76948 [Fbk->Opn]: Failed shutdown/reboot or end session in Windows

From: Date: Tue, 02 Oct 2018 23:02:56 +0000
Subject: Bug #76948 [Fbk->Opn]: Failed shutdown/reboot or end session in Windows
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217385@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 User updated by: enyby at yandex dot ru Reported by: enyby at yandex dot ru Summary: Failed shutdown/reboot or end session in Windows -Status: Feedback +Status: Open 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: set PHP_FCGI_CHILDREN=20 set PHP_FCGI_MAX_REQUESTS=0 As I see child process has killed by windows _before_ root process. So it cause bug. If I kill root process manually then I able reboot windows and all process closed. Previous Comments: ------------------------------------------------------------------------ [2018-10-02 22:58:53] ab@php.net The exact command won't spawn anything by default. It would only spawn some child processes, if PHP_FCGI_CHILDREN was passed to the environment. There might be more factors, please check the environment. At logout those children should be recycled as they're all held in the same job group. Thanks. ------------------------------------------------------------------------ [2018-10-02 22:43:52] enyby at yandex dot ru I run 'php-cgi.exe -b 9001' Windows 7 Maximum SP1 x64 ------------------------------------------------------------------------ [2018-10-02 22:29:47] ab@php.net 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. ------------------------------------------------------------------------ [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

« previous php.bugs (#217385) next »