Skip to content
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

qemu: uncaught target signal 11 (Segmentation fault) - core dumped Segmentation fault #4752

Open
feirpri opened this issue May 23, 2022 · 6 comments
Labels
Milestone

Comments

@feirpri
Copy link

feirpri commented May 23, 2022

Describe the bug

I got Segmentation fault when i use '@swc/core'

Input code

node -e 'new worker_threads.Worker(`console.log(require("@swc/core"))`, { eval: true })'

Config

No response

Playground link

No response

Expected behavior

build successfully

Actual behavior

{
version: '1.2.189',
plugins: [Function: plugins],
Compiler: [class Compiler],
parse: [Function: parse],
parseSync: [Function: parseSync],
parseFile: [Function: parseFile],
parseFileSync: [Function: parseFileSync],
print: [Function: print],
printSync: [Function: printSync],
transform: [Function: transform],
transformSync: [Function: transformSync],
transformFile: [Function: transformFile],
transformFileSync: [Function: transformFileSync],
bundle: [Function: bundle],
minify: [Function: minify],
minifySync: [Function: minifySync],
__experimental_registerGlobalTraceConfig: [Function: __experimental_registerGlobalTraceConfig],
getBinaryMetadata: [Function: getBinaryMetadata],
DEFAULT_EXTENSIONS: [
'.js', '.jsx',
'.es6', '.es',
'.mjs', '.ts',
'.tsx'
]
}
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault

Version

1.2.189

Additional context

No response

@feirpri feirpri added the C-bug label May 23, 2022
@kdy1 kdy1 added this to the Planned milestone May 23, 2022
@kdy1
Copy link
Member

kdy1 commented May 23, 2022

cc @Brooooooklyn

@alexander-akait
Copy link
Contributor

Do we have dynamic import(...)? There is bug in Node.js

@feirpri
Copy link
Author

feirpri commented May 25, 2022

No dynamic import(...) in code. Is there any method to print detail error message or execution stack?

@Brooooooklyn
Copy link
Member

Brooooooklyn commented May 26, 2022

@feirpri what's the system and version in your qemu env?

@feirpri
Copy link
Author

feirpri commented May 27, 2022

CentOS Linux release 7.7.1908 (Core)

@Brooooooklyn
Copy link
Member

@feirpri It's a known issue in rust: rust-lang/rust#91979

@kdy1 kdy1 modified the milestones: Planned, v1.2.199 Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants