EBADF fstat error with 25.7.0 but not 25.6.1

Đang mở
#62,012 25 bình luận 14 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
javascript, linux, node.js
Lĩnh vực
backend, operating-systems

Hướng nghiên cứu

Tái hiện lỗi trên Alpine 3.23 với Node.js 25.7.0, Yarn 4.12.0, Cypress hoặc ESLint, sau đó so sánh với 25.6.1. Bắt đầu từ stack fstat của node:fs và các entry point được đề cập là internal/modules/esm/load và internal/modules/esm/loader. Được xem là hoàn tất khi lỗi EBADF có thể tái hiện không còn xảy ra trong khi cài đặt Cypress hoặc chạy ESLint.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

loaders
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

Ngôn ngữ chính
JavaScript
Star
122k
Fork
37.4k
Merge trung bình
4 ngày 3 giờ
Pull request đã merge (30 ngày)
273

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nodejs/node

Tất cả issue của nodejs/node

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.