-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
@swc/core-linux-x64-gnu v1.3.39-v1.3.40 segfaults with @vitejs/plugin-react-swc #7075
Comments
Can you provide a repro? |
I will see if I can produce a simple example |
I couldn't reproduce this with vite's react-swc-ts template, starting to suspect that some other plugin or library we use is triggering the segfault. |
I got similar errors when I load my custom swc plugin https://github.com/innoai-tech/nodekit/tree/main/nodedevpkg/swc-plugin-annotate-pure-calls
Everything works fine out of docker container. Btw. it work well in node (18 or 19) container for For @pakettiale Which OS you docker running? It may some issue caused by linux kernal. @kdy1 bacause of #6807, |
What the... |
If it's a miscompilation for linux-x86_64 target, both of |
Ubuntu 18.04 already upgrade to kernel 5.4.0 on Github Actions, both works well. So I have to print the output in my
One more interesting thing: @kdy1 confirmed, |
@morlay I'm running on container based on Debian 11 Container uses the current host kernel (archlinux 6.2.6-arch1-1) but this happened also on previous kernel 6.1.x. Container glibc
|
Kernel issue ... terrible 🙀 |
For the record we are using |
In the stacktrace from @morlay:
It seems like the |
Maybe related: wasmerio/wasmer#3526 |
i'm the author of this plugin, is there something what i can do from my side? Or it's completely unrelated to plugin itself? |
Closing as #6807 is fixed |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Describe the bug
Latest versions of SWC seems to segfault when bundling files for
@vitejs/plugin-react-swc
withlinux-x64-gnu
binary. Vite is running inside docker container based onnode:18.13-bullseye
.Using segfault-handler library I get the following crash log.
Output from vite without segfault handler looks like this:
Input code
No response
Config
@vitejs/plugin-react-swc does not seem to use any .swcrc files
Playground link
No response
Expected behavior
I expect the bundler to work correctly.
Actual behavior
It segfaults when I load the URL that vite is listening to.
Version
v1.3.39 and v1.3.40
Additional context
No response
The text was updated successfully, but these errors were encountered: