Test socket-close-on-exec.phpt fails on RV64
オープン
まだ誰も着手していません。
Bug
Status: Needs Triage
- 主要言語
- C
- スター
- 40.4k
- フォーク
- 8.2k
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
sapi/fpm/tests/socket-close-on-exec.phpt から始め、Alpine Linux 上の PHP 8.3.22RC1 または 8.4.8RC1 ビルドを使って RISC-V64 で失敗を再現します。期待されるソケット出力を stream エラーおよび FPM ログと比較します。このテストが対象プラットフォームで無効なレスポンスなしにパスすれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- c, php
- 領域
- backend, testing-qa
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100