Test socket-close-on-exec.phpt fails on RV64
Open
Nobody has claimed this yet.
Bug
Status: Needs Triage
- Dominant language
- C
- Stars
- 40.4k
- Forks
- 8.1k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 96
Description
Description
Building RC of PHP 8.3.22 and 8.4.8 I got consistent failure https://github.com/php/php-src/issues/12077#issuecomment-2904487564 on RiscV64
Resulted in this output:
TEST 17326/17411 [sapi/fpm/tests/socket-close-on-exec.phpt]
========DIFF========
001- My sockets (expect to see 2 of them - one ESTABLISHED and one LISTEN):
002- %S 127.0.0.1:%d->127.0.0.1:%d (ESTABLISHED)
003- %S 127.0.0.1:%d (LISTEN)
001+ ERROR: Request failed; EXCEPTION: Reading from the stream failed
005- Sockets after exec(), expected to be empty:
006- string(0) ""
003+ LOGS:
004+ --------------------------------------------------------------------
005+ [21-May-2025 19:11:16] NOTICE: fpm is running, pid 32032
006+ [21-May-2025 19:11:16] NOTICE: ready to handle connections
007+ --------------------------------------------------------------------
008+
009+ >>> Response
010+ ----------------- OUT -----------------
011+
012+ ----------------- ERR -----------------
013+
014+ ---------------------------------------
015+
016+ ERROR: The response is invalid:
017+
018+ LOGS:
019+ --------------------------------------------------------------------
020+ [21-May-2025 19:11:16] NOTICE: fpm is running, pid 32032
021+ [21-May-2025 19:11:16] NOTICE: ready to handle connections
022+ --------------------------------------------------------------------
023+
024+
Done
========DONE========
FAIL FPM: Set CLOEXEC on the listen and connection socket [sapi/fpm/tests/socket-close-on-exec.phpt]
PHP Version
8.3.22RC1 and 8.4.8RC1
Operating System
Alpinelinux
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with sapi/fpm/tests/socket-close-on-exec.phpt and reproduce the failure on RISC-V64 using the PHP 8.3.22RC1 or 8.4.8RC1 build on Alpine Linux. Compare the expected socket output with the stream error and FPM logs; done means this test passes on the affected platform without invalid responses.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, php
- Domain
- backend, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100