-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.moduleIssues and PRs related to the module subsystem.Issues and PRs related to the module subsystem.
Description
Version
v16.15.0
Platform
Microsoft Windows NT 10.0.19044.0 x64 / WSL: Linux PC 4.4.0-19041-Microsoft #1237-Microsoft Sat Sep 11 14:32:00 PST 2021 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
- Download https://gist.github.com/sapphi-red/a0179b52ebd3b6a19f51743594810ecf
- Run
node eval_cjs.mjs
. It exits with non-0 exit code.
a. On windows, it does not show any error messages. The output ofecho $LASTEXITCODE
is-1073741819
.
b. On WSL (Ubuntu), it showsSegmentation fault (core dumped)
. The output ofecho $?
is139
. - Run
node eval_cjs_cjs.cjs
. It exits with non-0 exit code same witheval_cjs.mjs
. - Run
noneval_cjs.mjs
. It finishes without any errors. - Run
noneval_mjs.mjs
. It finishes without any errors.
The difference between the files are:
filename | parent script | worker script | is eval | result |
---|---|---|---|---|
eval_cjs.mjs |
ESM | CJS | O | fail |
eval_cjs_cjs.cjs |
CJS | CJS | O | fail |
noneval_cjs.mjs |
ESM | CJS | X | success |
noneval_mjs.mjs |
ESM | ESM | X | success |
How often does it reproduce? Is there a required condition?
It reproduces every time on my machine. const startAt = Date.now() + 10 * 1000
might differ between machines.
I suppose at least it needs to meet the following condition:
worker
is created witheval: true
- dynamic import is called after
await
I am not sure why it requires 10 seconds delay.
What is the expected behavior?
Segmentation fault not happening.
What do you see instead?
Segmentation fault is happening.
Additional information
context: I was tring to fix vitejs/vite#8049 (comment). (FailureMessage
one is not related to this.)
viceice, transitive-bullshit, hildjj and andriyor
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.moduleIssues and PRs related to the module subsystem.Issues and PRs related to the module subsystem.