-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
🐛 v0.10.3 "Segmentation fault (core dumped)" when installing from sources #1186
Comments
If I install wasm-pack with this command, it works, but it should also work with curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh |
same for me, I thought something with openssl but then I'm not the only one, as I installed this programm today the first time stacktrace:
ctx looks corrupted: X509_STORE_load_file_ex (ctx=0x7ffff0010d40,) with address sanitizer:
currently searching were the memory gets corrupted |
Just for you to know: it works when installing wasm-pack with cargo install wasm-pack --force --target x86_64-unknown-linux-musl |
can confirm musl-libc works, strange |
This comment was marked as outdated.
This comment was marked as outdated.
Be carefull, there are two threads, one crashes in openssl, one waits for the result from a command. but really strange bug, will debug a bit longer tonight :) |
Indeed ! It seems related to #823 It works with @TrueBrain fix here #823 (comment) But @TrueBrain fix (adding "static-curl" feature) may not be the most elegant way... it would be like using musl, the real issue is somewhere else |
hmm, could be,
|
OK to strange bug, looks like very deep, will continue another time, or accept the |
I ended up using this command to install wasm-pack (without having to install musl target) cargo install wasm-pack --features curl/static-curl |
replicated bug and fix (both curling the installer and |
Also #1203 tldr: install wasm-pack with cargo install wasm-pack --no-default-features Why does this work? wasm-pack Cargo.toml has this flag: [features]
# OpenSSL is vendored by default, can use system OpenSSL through feature flag.
default = ['openssl/vendored'] Here is a strace if that helps? I also tried upgrading OpenSSL in the project to see if that helped (if a backwards incompatible happened recently?), it did not. I know it uses a vendored OpenSSL, but here's my versions: $ openssl version
OpenSSL 3.0.7 1 Nov 2022 (Library: OpenSSL 3.0.7 1 Nov 2022)
$ uname -a
Linux kit 6.1.3-1-cachyos-cfs #1 SMP PREEMPT_DYNAMIC Thu, 05 Jan 2023 06:34:32 +0000 x86_64 GNU/Linux
$ rustc --version
rustc 1.68.0-nightly (0fb8b72ce 2023-01-06)
$ cargo 1.68.0-nightly (8c460b223 2023-01-04) Why is openssl needed as a default feature? Is there an issue on some platforms? |
Please try out v0.12.0 from one of the following ways: |
🐛 Bug description
When I run wasm-pack (either build, or new, ...), I get a "Segmentation fault (core dumped)"
🤔 Expected Behavior
It should not panic with a segmentation fault
👟 Steps to reproduce
output :
🌍 Your environment
os: fedora 36
wasm-pack version: 0.10.3
rustc version: 1.64.0 (a55dd71d5 2022-09-19)
The text was updated successfully, but these errors were encountered: