EBADF fstat error with 25.7.0 but not 25.6.1
未关闭
还没有人认领这个 Issue。
loaders
- 主要语言
- JavaScript
- 星标
- 122k
- 派生
- 37.4k
- 平均合并
- 4 天 3 小时
- 30 天内合并 PR
- 272
描述
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 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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