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

rustc stack overflow for wasm32-unknown-unknown on linux ARM64 #121814

Closed
ibeckermayer opened this issue Feb 29, 2024 · 1 comment
Closed

rustc stack overflow for wasm32-unknown-unknown on linux ARM64 #121814

ibeckermayer opened this issue Feb 29, 2024 · 1 comment
Labels
C-bug Category: This is a bug. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-wasm Target: WASM (WebAssembly), http://webassembly.org/ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@ibeckermayer
Copy link

I tried this code:

I'm not sure how to reproduce this more simply, however it's relatively simple to reproduce this via the teleport repo:

git clone https://github.com/gravitational/teleport.git
cd teleport
git checkout 90f9fd20e5db98947cb4b9c70f7fed73681b27dd
cd web/packages/teleport/src/ironrdp/
cargo build --lib --release --target wasm32-unknown-unknown

I expected to see this happen: The module should build, as it does on x86_64 Linux and ARM64 Darwin, and for all platforms including ARM64 Linux for a previous version of rust (1.71.1)

Instead, this happened: We get some sort of stack overflow error:

Logs
$ cd web/packages/teleport/src/ironrdp/ && cargo build --lib --release --target wasm32-unknown-unknown
   Compiling p384 v0.13.0
   Compiling picky v7.0.0-rc.8
   Compiling sspi v0.11.0
   Compiling ironrdp-connector v0.1.0 (https://github.com/Devolutions/IronRDP?rev=86b8e1429fd5c951cac6e983c8b7504140aca376#86b8e142)
error: rustc interrupted by SIGSEGV, printing backtrace

/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0xaeecfc)[0xffff8720ecfc]
linux-vdso.so.1(__kernel_rt_sigreturn+0x0)[0xffff8f4417bc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bcf74)[0xffff89cdcf74]

### cycle encountered after 3 frames with period 4
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff89cdd9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff89cdd9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff89cdd9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff89cdd9dc]
### recursed 61 times

/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff89cdd9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff89cdd9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff89cdd9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff89cdd9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff89cdd9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff89cdd9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff89cdd9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff89cdd9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff89cdd9dc]

note: rustc unexpectedly overflowed its stack! this is a bug
note: maximum backtrace depth reached, frames may have been lost
note: we would appreciate a report at https://github.com/rust-lang/rust
note: backtrace dumped due to SIGSEGV! resuming signal
error: could not compile `p384` (lib)

Caused by:
  process didn't exit successfully: `/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/rustc --crate-name p384 --edition=2021 /home/debian/.cargo/registry/src/index.crates.io-6f17d22bba15001f/p384-0.13.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=85 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=1 --cfg 'feature="alloc"' --cfg 'feature="arithmetic"' --cfg 'feature="default"' --cfg 'feature="digest"' --cfg 'feature="ecdh"' --cfg 'feature="ecdsa"' --cfg 'feature="ecdsa-core"' --cfg 'feature="pem"' --cfg 'feature="pkcs8"' --cfg 'feature="sha2"' --cfg 'feature="sha384"' --cfg 'feature="std"' -C metadata=3a012b8c9faca5d0 -C extra-filename=-3a012b8c9faca5d0 --out-dir /home/debian/teleport/target/wasm32-unknown-unknown/release/deps --target wasm32-unknown-unknown -L dependency=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps -L dependency=/home/debian/teleport/target/release/deps --extern ecdsa_core=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libecdsa-58d180c06bd590cc.rmeta --extern elliptic_curve=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libelliptic_curve-b40489a2d6f8d77e.rmeta --extern primeorder=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libprimeorder-e69e2bc61087168a.rmeta --extern sha2=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libsha2-bde1e24333eb5ad3.rmeta --cap-lints allow` (signal: 11, SIGSEGV: invalid memory reference)
warning: build failed, waiting for other jobs to finish...
error: rustc interrupted by SIGSEGV, printing backtrace

/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0xaeecfc)[0xffffb731ecfc]
linux-vdso.so.1(__kernel_rt_sigreturn+0x0)[0xffffbf5527bc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bcf74)[0xffffb9decf74]

### cycle encountered after 3 frames with period 4
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffb9ded9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffb9ded9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffb9ded9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffb9ded9dc]
### recursed 61 times

/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffb9ded9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffb9ded9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffb9ded9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffb9ded9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffb9ded9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffb9ded9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffb9ded9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffb9ded9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffb9ded9dc]

note: rustc unexpectedly overflowed its stack! this is a bug
note: maximum backtrace depth reached, frames may have been lost
note: we would appreciate a report at https://github.com/rust-lang/rust
note: backtrace dumped due to SIGSEGV! resuming signal
error: could not compile `picky` (lib)

Caused by:
  process didn't exit successfully: `/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/rustc --crate-name picky --edition=2021 /home/debian/.cargo/registry/src/index.crates.io-6f17d22bba15001f/picky-7.0.0-rc.8/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=85 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=1 -C metadata=e1810e52c4baa2d7 -C extra-filename=-e1810e52c4baa2d7 --out-dir /home/debian/teleport/target/wasm32-unknown-unknown/release/deps --target wasm32-unknown-unknown -L dependency=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps -L dependency=/home/debian/teleport/target/release/deps --extern base64=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libbase64-4a165cedb3856ee0.rmeta --extern digest=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libdigest-4ce99894ed0e0def.rmeta --extern ed25519_dalek=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libed25519_dalek-286c80674e00c77b.rmeta --extern md5=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libmd5-49f69ae87529e3fa.rmeta --extern num_bigint_dig=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libnum_bigint_dig-e6a909ec457c9899.rmeta --extern p256=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libp256-1cb535d86111467c.rmeta --extern p384=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libp384-3a012b8c9faca5d0.rmeta --extern picky_asn1=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libpicky_asn1-91f342de9d79c773.rmeta --extern picky_asn1_der=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libpicky_asn1_der-e14c7c650a3d225a.rmeta --extern picky_asn1_x509=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libpicky_asn1_x509-a25516e48d06129c.rmeta --extern rand=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/librand-915a7594a7802951.rmeta --extern rand_core=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/librand_core-3578df329356a7cd.rmeta --extern rsa=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/librsa-27741711931adf4a.rmeta --extern serde=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libserde-5938b7d12b55f657.rmeta --extern sha1=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libsha1-f57aaf6b5c2f72dc.rmeta --extern sha2=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libsha2-bde1e24333eb5ad3.rmeta --extern sha3=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libsha3-766e994715dac203.rmeta --extern thiserror=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libthiserror-77ee253f24cc7dff.rmeta --extern x25519_dalek=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libx25519_dalek-cd022c25b129f16b.rmeta --extern zeroize=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libzeroize-90cfae61ad9ebe46.rmeta --cap-lints allow` (signal: 11, SIGSEGV: invalid memory reference)

Meta

rustc --version --verbose:

rustc 1.76.0 (07dca489a 2024-02-04)
binary: rustc
commit-hash: 07dca489ac2d933c78d3c5158e3f43beefeb02ce
commit-date: 2024-02-04
host: aarch64-unknown-linux-gnu
release: 1.76.0
LLVM version: 17.0.6

We encounter the same error on both the current beta and nightly

rustc 1.77.0-beta.5 (f2043422f 2024-02-17)
binary: rustc
commit-hash: f2043422f7b161a2fc1a00589a8c4956db963450
commit-date: 2024-02-17
host: aarch64-unknown-linux-gnu
release: 1.77.0-beta.5
LLVM version: 17.0.6
rustc 1.78.0-nightly (c475e2303 2024-02-28)
binary: rustc
commit-hash: c475e2303b551d726307c646181e0677af1e0069
commit-date: 2024-02-28
host: aarch64-unknown-linux-gnu
release: 1.78.0-nightly
LLVM version: 18.1.0
Backtrace

$ cd web/packages/teleport/src/ironrdp/ && RUST_BACKTRACE=1 cargo build --lib --release --target wasm32-unknown-unknown
   Compiling p384 v0.13.0
   Compiling picky v7.0.0-rc.8
   Compiling sspi v0.11.0
   Compiling ironrdp-connector v0.1.0 (https://github.com/Devolutions/IronRDP?rev=86b8e1429fd5c951cac6e983c8b7504140aca376#86b8e142)
error: rustc interrupted by SIGSEGV, printing backtrace

/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0xaeecfc)[0xffffa375ecfc]
linux-vdso.so.1(__kernel_rt_sigreturn+0x0)[0xffffab9917bc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bcf74)[0xffffa622cf74]

### cycle encountered after 3 frames with period 4
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffa622d9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffa622d9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffa622d9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffa622d9dc]
### recursed 61 times

/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffa622d9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffa622d9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffa622d9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffa622d9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffa622d9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffa622d9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffa622d9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffa622d9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffffa622d9dc]

note: rustc unexpectedly overflowed its stack! this is a bug
note: maximum backtrace depth reached, frames may have been lost
note: we would appreciate a report at https://github.com/rust-lang/rust
note: backtrace dumped due to SIGSEGV! resuming signal
error: could not compile `p384` (lib)

Caused by:
  process didn't exit successfully: `/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/rustc --crate-name p384 --edition=2021 /home/debian/.cargo/registry/src/index.crates.io-6f17d22bba15001f/p384-0.13.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=85 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=1 --cfg 'feature="alloc"' --cfg 'feature="arithmetic"' --cfg 'feature="default"' --cfg 'feature="digest"' --cfg 'feature="ecdh"' --cfg 'feature="ecdsa"' --cfg 'feature="ecdsa-core"' --cfg 'feature="pem"' --cfg 'feature="pkcs8"' --cfg 'feature="sha2"' --cfg 'feature="sha384"' --cfg 'feature="std"' -C metadata=3a012b8c9faca5d0 -C extra-filename=-3a012b8c9faca5d0 --out-dir /home/debian/teleport/target/wasm32-unknown-unknown/release/deps --target wasm32-unknown-unknown -L dependency=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps -L dependency=/home/debian/teleport/target/release/deps --extern ecdsa_core=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libecdsa-58d180c06bd590cc.rmeta --extern elliptic_curve=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libelliptic_curve-b40489a2d6f8d77e.rmeta --extern primeorder=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libprimeorder-e69e2bc61087168a.rmeta --extern sha2=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libsha2-bde1e24333eb5ad3.rmeta --cap-lints allow` (signal: 11, SIGSEGV: invalid memory reference)
warning: build failed, waiting for other jobs to finish...
error: rustc interrupted by SIGSEGV, printing backtrace

/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0xaeecfc)[0xffff986decfc]
linux-vdso.so.1(__kernel_rt_sigreturn+0x0)[0xffffa090f7bc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bcf74)[0xffff9b1acf74]

### cycle encountered after 3 frames with period 4
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff9b1ad9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff9b1ad9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff9b1ad9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff9b1ad9dc]
### recursed 61 times

/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff9b1ad9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff9b1ad9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff9b1ad9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff9b1ad9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff9b1ad9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff9b1ad9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff9b1ad9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff9b1ad9dc]
/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x35bd9dc)[0xffff9b1ad9dc]

note: rustc unexpectedly overflowed its stack! this is a bug
note: maximum backtrace depth reached, frames may have been lost
note: we would appreciate a report at https://github.com/rust-lang/rust
note: backtrace dumped due to SIGSEGV! resuming signal
error: could not compile `picky` (lib)

Caused by:
  process didn't exit successfully: `/home/debian/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/rustc --crate-name picky --edition=2021 /home/debian/.cargo/registry/src/index.crates.io-6f17d22bba15001f/picky-7.0.0-rc.8/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=85 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=1 -C metadata=e1810e52c4baa2d7 -C extra-filename=-e1810e52c4baa2d7 --out-dir /home/debian/teleport/target/wasm32-unknown-unknown/release/deps --target wasm32-unknown-unknown -L dependency=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps -L dependency=/home/debian/teleport/target/release/deps --extern base64=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libbase64-4a165cedb3856ee0.rmeta --extern digest=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libdigest-4ce99894ed0e0def.rmeta --extern ed25519_dalek=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libed25519_dalek-286c80674e00c77b.rmeta --extern md5=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libmd5-49f69ae87529e3fa.rmeta --extern num_bigint_dig=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libnum_bigint_dig-e6a909ec457c9899.rmeta --extern p256=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libp256-1cb535d86111467c.rmeta --extern p384=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libp384-3a012b8c9faca5d0.rmeta --extern picky_asn1=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libpicky_asn1-91f342de9d79c773.rmeta --extern picky_asn1_der=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libpicky_asn1_der-e14c7c650a3d225a.rmeta --extern picky_asn1_x509=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libpicky_asn1_x509-a25516e48d06129c.rmeta --extern rand=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/librand-915a7594a7802951.rmeta --extern rand_core=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/librand_core-3578df329356a7cd.rmeta --extern rsa=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/librsa-27741711931adf4a.rmeta --extern serde=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libserde-5938b7d12b55f657.rmeta --extern sha1=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libsha1-f57aaf6b5c2f72dc.rmeta --extern sha2=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libsha2-bde1e24333eb5ad3.rmeta --extern sha3=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libsha3-766e994715dac203.rmeta --extern thiserror=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libthiserror-77ee253f24cc7dff.rmeta --extern x25519_dalek=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libx25519_dalek-cd022c25b129f16b.rmeta --extern zeroize=/home/debian/teleport/target/wasm32-unknown-unknown/release/deps/libzeroize-90cfae61ad9ebe46.rmeta --cap-lints allow` (signal: 11, SIGSEGV: invalid memory reference)

@ibeckermayer ibeckermayer added the C-bug Category: This is a bug. label Feb 29, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Feb 29, 2024
@fmease fmease added I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. O-wasm Target: WASM (WebAssembly), http://webassembly.org/ E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Feb 29, 2024
@workingjubilee
Copy link
Member

duplicate with the better-minimized #122357

@workingjubilee workingjubilee closed this as not planned Won't fix, can't repro, duplicate, stale Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-wasm Target: WASM (WebAssembly), http://webassembly.org/ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants