Wasm-pack: wasm-opt not working on latest master

Created on 30 Jul 2019  路  7Comments  路  Source: rustwasm/wasm-pack

relates to #625

馃悰 Bug description

The installed wasm-opt with wasm-pack on the current master isn't working an exits with signal 6:

Screenshot from 2019-07-29 07-36-12

馃 Expected Behavior

wasm-opt should run, optimize the wasm file, and not error/stop building the package with wasm-pack

馃憻 Steps to reproduce

  1. Clone the repo
  2. cargo run build [path to your rust wasm module]

馃實 Your environment

Include the relevant details of your environment.
wasm-pack version: current master
rustc version: 1.34.1

cc @alexcrichton :smile:

bug waiting on response

Most helpful comment

Now that version_89 is released, would it make sense to attempt updating the wasm-opt installer version?

EDIT: That version doesn't seem to solve the problem for me, unfortunately.

All 7 comments

What OS are you running on? (e.g. Ubuntu/Debian/etc)

Additionally can you upload the wasm file which causes this segfault?

@alexcrichton

What OS are you running on? (e.g. Ubuntu/Debian/etc)

Oops totally forgot that :joy:

Screenshot from 2019-07-31 01-11-56

pop_OS! is a derivative of Ubuntu :smile:

Additionally can you upload the wasm file which causes this segfault?

So here is the terminal output:

Screenshot from 2019-07-31 01-14-41

So from that, I assume I need to get the pkg/wasmboypluginhqx_bg.wasm. Which you can download here.

Let me know if that helps! :smile:

Ok using the release_78 binaries locally myself I can get -O3 to segfault when running over that wasm file. Additionally using the latest release_87 it segfaults. I've opened https://github.com/WebAssembly/binaryen/issues/2273 as an upstream issue.

@alexcrichton Awesome! Thank you very much! 馃槃 Stoked I can help!

Now that version_89 is released, would it make sense to attempt updating the wasm-opt installer version?

EDIT: That version doesn't seem to solve the problem for me, unfortunately.

@anp i know this is a super late message but did you happen to try version 90? want to release wasmpack1.9.0 soon and do not want to break all linux users

i'm going to close this because i do believe that today's release will fix it. if it does not- please open a new issue!

Was this page helpful?
0 / 5 - 0 ratings