Test socket-close-on-exec.phpt fails on RV64
未关闭
还没有人认领这个 Issue。
Bug
Status: Needs Triage
- 主要语言
- C
- 星标
- 40.4k
- 派生
- 8.1k
- 平均合并
- 2 天 13 小时
- 30 天内合并 PR
- 96
描述
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 sapi/fpm/tests/socket-close-on-exec.phpt 开始,使用 Alpine Linux 上的 PHP 8.3.22RC1 或 8.4.8RC1 构建,在 RISC-V64 上复现该失败。将预期的 socket 输出与 stream 错误和 FPM 日志进行比较;当此测试在受影响的平台上通过且没有无效响应时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- c, php
- 领域
- backend, testing-qa
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100