Description
The wasm-bindgen command is reliably giving me a segfault on OSX 10.10.5 when I install with recent rust nightlies. I'm seeing an older rust version fix the issue, so I'm guessing this is a recent nightly regression. I figured I'd give my report in case it helps ID the issue.
The symptom:
Macintosh:~ roberthambourger$ wasm-bindgen --help
Segmentation fault: 11
Macintosh:~ roberthambourger$ wasm-bindgen --version
Segmentation fault: 11
Macintosh:~ roberthambourger$ wasm-bindgen path/to/my/wasm.wasm --out-dir .
Segmentation fault: 11
Sample rustup show output:
Macintosh:~ roberthambourger$ rustup show
Default host: x86_64-apple-darwin
installed toolchains
--------------------
stable-x86_64-apple-darwin
nightly-2018-01-01-x86_64-apple-darwin
nightly-2018-04-30-x86_64-apple-darwin
nightly-x86_64-apple-darwin (default)
installed targets for active toolchain
--------------------------------------
wasm32-unknown-unknown
x86_64-apple-darwin
active toolchain
----------------
nightly-x86_64-apple-darwin (default)
rustc 1.27.0-nightly (91db9dcf3 2018-05-04)
I've tried different combos of wasm-bindgen-cli versions installed with various rust nightly versions. My observations are that
-
wasm-bindgen-cli 0.2.8 is bad when installed with nightly 2018-05-04, 2018-05-03, and 2018-04-30, but good with 2018-01-01.
-
wasm-bindgen-cli 0.2.4 through 0.2.8 are all bad with nightly 2018-05-03
Also note that wasm2es6js works for me as expected with all combos tested:
Macintosh:~ roberthambourger$ wasm2es6js --help
Converts a wasm file to an ES6 JS module
Usage:
wasm2es6js [options] <input>
wasm2es6js -h | --help
etc.
Thanks as always for the great work and let me know if I can provide more info.