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

[Bug]: Segmentation fault and bus error on production builds #6820

Closed
JohnDaly opened this issue Jun 16, 2024 · 2 comments · Fixed by #6851
Closed

[Bug]: Segmentation fault and bus error on production builds #6820

JohnDaly opened this issue Jun 16, 2024 · 2 comments · Fixed by #6851
Assignees
Labels
bug Something isn't working

Comments

@JohnDaly
Copy link

System Info

npmPackages:
  @rspack/cli: 0.7.3 => 0.7.3
  @rspack/core: 0.7.3 => 0.7.3
  @rspack/plugin-react-refresh: 0.7.3 => 0.7.3

Details

When using rspack 0.7.3, I've experienced Segmentation fault and Bus error crashes when doing production builds.

I built a debug build of rspack 0.7.3 locally and got this output when running rust-lldb -- node /path/to/rspack build:

Process 48663 stopped
 * thread #83, name = 'tokio-runtime-worker', stop reason = EXC_BAD_ACCESS (code=2, address=0x30d67fa58)
     frame #0: 0x000000014de6e69c rspack.darwin-arm64.node`rspack_plugin_javascript::utils::eval::eval_binary_expr::eval_binary_expression::h07bcadfd518a6b43(scanner=<unavailable>, expr=<unavailable>) at [eval_binary_expr.rs:380](http://eval_binary_expr.rs:380/)
    377     }
    378     
    379     #[inline]
 -> 380     pub fn eval_binary_expression(
    381       scanner: &mut JavascriptParser,
    382       expr: &BinExpr,
    383     ) -> Option<BasicEvaluatedExpression> {
 Target 0: (node) stopped.

Reproduce link

No response

Reproduce Steps

I don't have a simple repro for this yet.

@JohnDaly JohnDaly added bug Something isn't working pending triage The issue/PR is currently untouched. labels Jun 16, 2024
@LingyuCoder LingyuCoder removed the pending triage The issue/PR is currently untouched. label Jun 17, 2024
@h-a-n-a
Copy link
Collaborator

h-a-n-a commented Jun 17, 2024

Would you please attach the dependencies to the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants