You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Darwin 0b8642c4-61c5-4802-b52a-d25300ea7210 23.6.0 Darwin Kernel Version 23.6.0: Wed Jul 31 20:49:46 PDT 2024; root:xnu-10063.141.1.700.5~1/RELEASE_ARM64_T8103 arm64
Subsystem
No response
What steps will reproduce the bug?
The following code when ran I notice 1-2 seconds event loop block with execSH which use spawn async version. According to NodeJS docs, spawn shouldn't block event loop unless spawnSync used.
` Blocked for 1304.9692919921874ms, operation started here: [
' at AsyncHook.init (/node_modules/blocked-at/index.js:31:11)',
' at emitInitNative (node:internal/async_hooks:202:43)',
' at emitInitScript (node:internal/async_hooks:505:3)',
' at promiseInitHook (node:internal/async_hooks:324:3)',
' at promiseInitHookWithDestroyTracking (node:internal/async_hooks:328:3)',
' at c (testcase.js:10:0)',
' at Module._compile (node:internal/modules/cjs/loader:1358:14)',
' at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)',
' at Module.load (node:internal/modules/cjs/loader:1208:32)',
' at Module._load (node:internal/modules/cjs/loader:1024:12)',
' at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)',
' at node:internal/main/run_main_module:28:49'
]
Blocked for 1472.038375ms, operation started here: [
' at AsyncHook.init (/blocked-at/index.js:31:11)',
' at emitInitNative (node:internal/async_hooks:202:43)',
' at emitInitScript (node:internal/async_hooks:505:3)',
' at promiseInitHook (node:internal/async_hooks:324:3)',
' at promiseInitHookWithDestroyTracking (node:internal/async_hooks:328:3)',
' at c (testcase:10:0)',
' at Module._compile (node:internal/modules/cjs/loader:1358:14)',
' at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)',
' at Module.load (node:internal/modules/cjs/loader:1208:32)',
' at Module._load (node:internal/modules/cjs/loader:1024:12)',
' at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)',
' at node:internal/main/run_main_module:28:49'
]`
How often does it reproduce? Is there a required condition?
..
What is the expected behavior? Why is that the expected behavior?
...
What do you see instead?
..
Additional information
No response
The text was updated successfully, but these errors were encountered:
The latest LTS isn't 20.15, and exec-sh is an external dependency.
Additionally, you neglected to fill out the issue in the format that has been setup.
If you can reproduce the issue in the latest LTS with child_process (blocked is okay because it's for showing the reproduction), I'll be happy to take another look :-)
avivkeller
added
duplicate
Issues and PRs that are duplicates of other issues or PRs.
and removed
wrong repo
Issues that should be opened in another repository.
labels
Oct 8, 2024
Version
v20.15.0
Platform
Subsystem
No response
What steps will reproduce the bug?
The following code when ran I notice 1-2 seconds event loop block with execSH which use spawn async version. According to NodeJS docs, spawn shouldn't block event loop unless spawnSync used.
Please see stacktraces below
` Blocked for 1304.9692919921874ms, operation started here: [
' at AsyncHook.init (/node_modules/blocked-at/index.js:31:11)',
' at emitInitNative (node:internal/async_hooks:202:43)',
' at emitInitScript (node:internal/async_hooks:505:3)',
' at promiseInitHook (node:internal/async_hooks:324:3)',
' at promiseInitHookWithDestroyTracking (node:internal/async_hooks:328:3)',
' at c (testcase.js:10:0)',
' at Module._compile (node:internal/modules/cjs/loader:1358:14)',
' at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)',
' at Module.load (node:internal/modules/cjs/loader:1208:32)',
' at Module._load (node:internal/modules/cjs/loader:1024:12)',
' at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)',
' at node:internal/main/run_main_module:28:49'
]
Blocked for 1472.038375ms, operation started here: [
' at AsyncHook.init (/blocked-at/index.js:31:11)',
' at emitInitNative (node:internal/async_hooks:202:43)',
' at emitInitScript (node:internal/async_hooks:505:3)',
' at promiseInitHook (node:internal/async_hooks:324:3)',
' at promiseInitHookWithDestroyTracking (node:internal/async_hooks:328:3)',
' at c (testcase:10:0)',
' at Module._compile (node:internal/modules/cjs/loader:1358:14)',
' at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)',
' at Module.load (node:internal/modules/cjs/loader:1208:32)',
' at Module._load (node:internal/modules/cjs/loader:1024:12)',
' at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)',
' at node:internal/main/run_main_module:28:49'
]`
How often does it reproduce? Is there a required condition?
..
What is the expected behavior? Why is that the expected behavior?
...
What do you see instead?
..
Additional information
No response
The text was updated successfully, but these errors were encountered: