php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80249 bug79514 and bug36365 process timeout
Submitted: 2020-10-16 21:58 UTC Modified: 2020-10-16 22:08 UTC
From: sigsegv at makadev dot de Assigned:
Status: Open Package: Testing related
PHP Version: 8.0Git-2020-10-16 (Git) OS: Win + Docker + WSL2
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: sigsegv at makadev dot de
New email:
PHP Version: OS:

 

 [2020-10-16 21:58 UTC] sigsegv at makadev dot de
Description:
------------
Some tests may fail due to process timeout in docker (debian:buster) on windows host via WSL2 (ubuntu) when executed on bind mount from host:
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #79514 (Memory leaks while including unexistent file) [Zend/tests/bug79514.phpt]
Bug #36365 (scandir duplicates file name at every 65535th file) [ext/standard/tests/file/bug36365.phpt]
=====================================================================

Problem seems to be that the 9p (plan 9 / network) filesystem is very slow under pressure and both tests are either creating or looking up thousands of files, which makes those tests fail with a process timeout rather than an actual error or lockup. When executed individually they do succeed (on my pc):


$ time /workspace/php-src/Zend/tests/bug79514.sh 
bool(true)

real    0m42,861s
user    0m2,512s
sys     0m7,781s

$ time /workspace/php-src/ext/standard/tests/file/bug36365.sh 

Warning: mkdir(): File exists in /workspace/php-src/ext/standard/tests/file/bug36365.php on line 4
int(70002)

real    2m7,388s
user    0m0,787s
sys     0m25,219s

Actual result:
--------------
/workspace/php-src/ext/standard/tests/file/bug36365.log:

---- EXPECTED OUTPUT
int(70002)
---- ACTUAL OUTPUT
** ERROR: process timed out **
---- FAILED

/workspace/php-src/Zend/tests/bug79514.out: 

---- EXPECTED OUTPUT
bool(true)
---- ACTUAL OUTPUT
** ERROR: process timed out **
---- FAILED



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-16 22:08 UTC] sigsegv at makadev dot de
-Summary: bug79514 and bug79514 process timeout +Summary: bug79514 and bug36365 process timeout
 [2020-10-16 22:08 UTC] sigsegv at makadev dot de
Corrected Summary should be "bug79514 and bug36365 process timeout"
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC