EBADF fstat error with 25.7.0 but not 25.6.1
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 122k
- フォーク
- 37.3k
- 平均マージ
- 4日 2時間
- マージ済み PR(30日)
- 283
説明
Version
25.7.0
Platform
Alpine 3.23
Subsystem
No response
What steps will reproduce the bug?
Both Cypress and ESLint using Yarn 4.12.0, have the error:
node:internal/event_target:1118
process.nextTick(() => { throw err; });
^
Error: EBADF: bad file descriptor, fstat
at tryStatSync (node:fs:386:25)
at readFileSync (node:fs:442:17)
at getSourceSync (node:internal/modules/esm/load:37:14)
at createCJSModuleWrap (node:internal/modules/esm/translators:204:32)
at ModuleLoader.commonjsStrategy (node:internal/modules/esm/translators:343:10)
at #translate (node:internal/modules/esm/loader:451:20)
at afterLoad (node:internal/modules/esm/loader:507:29)
at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:512:12)
at #getOrCreateModuleJobAfterResolve (node:internal/modules/esm/loader:555:36)
at afterResolve (node:internal/modules/esm/loader:603:52) {
errno: -9,
code: 'EBADF',
syscall: 'fstat'
}
Node.js v25.7.0
It is not an issue when installing Cypress or running ESLint with Node 25.6.1
How often does it reproduce? Is there a required condition?
Every time
What is the expected behavior? Why is that the expected behavior?
Running ESLint or installing Cypress should not reproduce the error.
What do you see instead?
Installed without errors for Cypress, Lints without errors for ESLint.
Additional information
At first I thought it was an issue with Cypress until I ran ESLint.
https://github.com/cypress-io/cypress/issues/33418
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Alpine 3.23 上で Node.js 25.7.0、Yarn 4.12.0、Cypress、または ESLint を使って失敗を再現し、その後 25.6.1 と比較します。node:fs の fstat スタックと、言及されている internal/modules/esm/load および internal/modules/esm/loader のエントリポイントから開始します。Cypress のインストール中または ESLint の実行中に、再現可能な EBADF エラーが発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, linux, node.js
- 領域
- backend, operating-systems
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100