php / php/php-src

Test php_cli_server_pdeathsig fails in Alpinelinux CI

Open
#20,760 19 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Category: Tests SAPI: cli_server Status: Needs Triage
Dominant language
C
Stars
40.4k
Forks
8.1k
Avg merge
2d 13h
Merged PRs (30d)
96

Description

Description

It fails only in Gitlab CI jobs and only for x86 and x86_64

TEST 17350/17550 [sapi/cli/tests/php_cli_server_pdeathsig.phpt]
TEST 17350/17550 [sapi/cli/tests/php_cli_server_pdeathsig.phpt]
========DIFF========
001- Done
001+ Fatal error: Uncaught Exception: Workers were not properly terminated. Before: 336413, 336414, after: 336413, 336414 in /builds/bigalpaca/aports/community/php83/src/php-8.3.29/sapi/cli/tests/php_cli_server_pdeathsig.php:34
002+ Stack trace:
003+ #0 {main}
004+   thrown in /builds/bigalpaca/aports/community/php83/src/php-8.3.29/sapi/cli/tests/php_cli_server_pdeathsig.php on line 34
========DONE========
FAIL Killing server should terminate all worker processes [sapi/cli/tests/php_cli_server_pdeathsig.phpt]

Looks like it started to happen consistently 2-3 releases ago

PHP Version
PHP 8.3-8.5
Operating System

Alpinelinux

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with sapi/cli/tests/php_cli_server_pdeathsig.phpt and its PHP test script, especially the worker termination check reported at line 34. Reproduce the failure in the Alpine Linux GitLab CI jobs on x86 or x86_64 and compare it with other platforms. Done means the test reports “Done” and all worker processes terminate after the server is killed.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
ci-cd, cli, operating-systems, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.