clinicjs / node-clinic

Clinic.js diagnoses your Node.js performance issues
https://clinicjs.org
MIT License
5.67k stars 125 forks source link

Running clinic flame -- node --test gives ERR_INVALID_FD_TYPE #476

Open jmikedupont2 opened 2 weeks ago

jmikedupont2 commented 2 weeks ago

Bug report

see the reproducible test here https://github.com/meta-introspector/o1js/actions/runs/11073869146/job/30771404964

results='run clinic flame -- node --test /app/dist/node/lib/util/base58.unit-test.js

TAP version 13
unit-tests-local-1  | # node:net:182
unit-tests-local-1  | #   throw new ERR_INVALID_FD_TYPE(type);
unit-tests-local-1  | #   ^
unit-tests-local-1  | # TypeError [ERR_INVALID_FD_TYPE]: Unsupported fd type: UNKNOWN
unit-tests-local-1  | #     at createHandle (node:net:182:9)
unit-tests-local-1  | #     at new Socket (node:net:421:20)
unit-tests-local-1  | #     at Object.<anonymous> (/pnpm/global/5/.pnpm/0x@5.7.0/node_modules/0x/lib/preload/redir-std\
out.js:11:18)
unit-tests-local-1  | #     at Module._compile (node:internal/modules/cjs/loader:1469:14)
unit-tests-local-1  | #     at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
unit-tests-local-1  | #     at Module.load (node:internal/modules/cjs/loader:1288:32)
unit-tests-local-1  | #     at Module._load (node:internal/modules/cjs/loader:1104:12)
unit-tests-local-1  | #     at internalRequire (node:internal/modules/cjs/loader:213:19)
unit-tests-local-1  | #     at Module._preloadModules (node:internal/modules/cjs/loader:1695:5)
unit-tests-local-1  | #     at loadPreloadModules (node:internal/process/pre_execution:730:5)
unit-tests-local-1  | #     at setupUserModules (node:internal/process/pre_execution:207:5)
unit-tests-local-1  | #     at prepareExecution (node:internal/process/pre_execution:160:5)
unit-tests-local-1  | #     at prepareMainThreadExecution (node:internal/process/pre_execution:55:10)
unit-tests-local-1  | #     at node:internal/main/run_main_module:11:19 {
unit-tests-local-1  | #   code: '\''ERR_INVALID_FD_TYPE'\''

Current Behavior

Crashing with --test

Steps to Reproduce (for bugs)

  1. see https://github.com/meta-introspector/o1js/actions/runs/11073869146/job/30771404964
  2. run make or clinic flame -- node --test /app/dist/node/lib/util/base58.unit-test.js

Environment

node v18.17.0 clinic v13.0.0 clinic doctor v11.0.0