-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating to @swc/core
to 1.10.6
from 1.10.4
causes a segfault on Windows
#9855
Comments
I did |
InvestigationMy device
I did
|
@eamodio Can you run |
Sure, Via |
Oops, I didn't update |
I saw you were using Node |
I made a simulation for various situation and used |
**Description:** - Diff range: v1.10.4...v1.10.6 **Related issue:** - #9855
The problem is the usage of worker threads, which is known to have very bad interference with thread locals. webpack-contrib/terser-webpack-plugin#580 (comment) I'll send a PR to |
Related: Brooooooklyn/canvas#377 |
Luckily, the only thing we have to patch is https://github.com/webpack-contrib/terser-webpack-plugin/blob/be98c733e4b1272297d0e794ccdb577a1d6379f5/src/index.js#L415 |
Describe the bug
In GitLens we are using SWC via the Terser Webpack Plugin (e.g.
TerserPlugin.swcMinify
).And using
1.10.4
everything works great (and has been prior), but upgrading to1.10.6
causes the webpack build to not succeed.Running
./node_modules/.bin/webpack --mode production --config-name extension:node
under Git Bash shows aSegmentation Fault
message but nothing else, and underpwsh
it outputs no error.While
pnpm run bundle:extension
(which runs the same webpack line above) errors withELIFECYCLE Command failed with exit code 3221225477.
Input code
No response
Config
No response
Playground link (or link to the minimal reproduction)
https://github.com/gitkraken/vscode-gitlens/tree/d61feb823e52be66d3a65383a80a102cab0120fd
SWC Info output
Operating System:
Platform: win32
Arch: x64
Machine Type: x86_64
Version: Windows 11 Pro
CPU: (32 cores)
Models: AMD Ryzen 9 7950X 16-Core Processor
Expected behavior
No segfault
Actual behavior
Segfault
Version
1.10.6
Additional context
No response
The text was updated successfully, but these errors were encountered: