oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
71.09k stars 2.47k forks source link

Segfault when using Binaryen #10891

Closed andriemc closed 1 week ago

andriemc commented 1 week ago

What version of Bun is running?

1.1.6+e58d67b46

What platform is your computer?

Linux 5.10.0-28-amd64 x86_64 unknown

What steps can reproduce the bug?

  1. Create a new project with bun init
  2. Install binaryen
  3. Write the following code in the index.ts file:
    import binaryen from 'binaryen';
    binaryen.Module()
  4. See error: Segmentation Fault

What is the expected behavior?

Expected it to work as usual, aka not getting any segfaults, and when using binaryen stuff

What do you see instead?

As said before, Bun outputs a Segmentation Fault

Additional information

No response

soitchu commented 1 week ago

Duplicate of #9756. To get around it, you can change one of the commas to a semicolon for the time being, like I have done here

andriemc commented 1 week ago

Duplicate of #9756. To get around it, you can change one of the commas to a semicolon for the time being, like I have done here

Yup it's a duplicate of #9756