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

Inconsistent SIGSEGV while compiling the tracing-attributes crate on aarch64-unknown-linux-gnu #125374

Closed
vorporeal opened this issue May 21, 2024 · 2 comments
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@vorporeal
Copy link

Code

Was compiling a closed-source application and encountered a SIGSEGV in rustc while compiling the tracing-attributes crate.

Unfortunately, this isn't something that reproduces consistently, and we've only seen it on CI and haven't reproduced it while building our application locally on our own machines.

In case it's relevant, we're building this within a Docker container running on an ARM mac machine.

Error output

error: rustc interrupted by SIGSEGV, printing backtrace

/home/runner/.rustup/toolchains/1.76-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0xaeecfc)[0xffff9e2aecfc]
linux-vdso.so.1(__kernel_rt_sigreturn+0x0)[0xffffa64e37a0]
/home/runner/.rustup/toolchains/1.76-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x36d0998)[0xffffa0e90998]
/home/runner/.rustup/toolchains/1.76-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x36d3ebc)[0xffffa0e93ebc]
/home/runner/.rustup/toolchains/1.76-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x36d60fc)[0xffffa0e960fc]
/home/runner/.rustup/toolchains/1.76-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x36d7ae4)[0xffffa0e97ae4]
/home/runner/.rustup/toolchains/1.76-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x1bc7184)[0xffff9f387184]
/home/runner/.rustup/toolchains/1.76-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x28f671c)[0xffffa00b671c]
/home/runner/.rustup/toolchains/1.76-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x28f6880)[0xffffa00b6880]
/home/runner/.rustup/toolchains/1.76-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0x28f73b8)[0xffffa00b73b8]
/home/runner/.rustup/toolchains/1.76-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(LLVMRustWriteOutputFile+0x2fc)[0xffff9e5c615c]
/home/runner/.rustup/toolchains/1.76-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0xdaa0cc)[0xffff9e56a0cc]
/home/runner/.rustup/toolchains/1.76-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0xdadfa8)[0xffff9e56dfa8]
/home/runner/.rustup/toolchains/1.76-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0xdd1f98)[0xffff9e591f98]
/home/runner/.rustup/toolchains/1.76-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0xdd2260)[0xffff9e592260]
/home/runner/.rustup/toolchains/1.76-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0xd8c7ec)[0xffff9e54c7ec]
/home/runner/.rustup/toolchains/1.76-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-d115806ff2b90af9.so(+0xdd3a44)[0xffff9e593a44]
/home/runner/.rustup/toolchains/1.76-aarch64-unknown-linux-gnu/bin/../lib/libstd-f4199621953e7607.so(rust_metadata_std_b7bdf322e3c58453+0x7e2c0)[0xffff9d70e2c0]
/lib/aarch64-linux-gnu/libc.so.6(+0x7d5c8)[0xffff9d55d5c8]
/lib/aarch64-linux-gnu/libc.so.6(+0xe5edc)[0xffff9d5c5edc]

note: we would appreciate a report at https://github.com/rust-lang/rust
error: could not compile `tracing-attributes` (lib)

Caused by:
  process didn't exit successfully: `/home/runner/.rustup/toolchains/1.76-aarch64-unknown-linux-gnu/bin/rustc --crate-name tracing_attributes --edition=2018 /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba[150](https://github.com/warpdotdev/warp-internal/actions/runs/9177791864/job/25236257221#step:9:151)01f/tracing-attributes-0.1.27/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C overflow-checks=off -C metadata=88747844d1c08518 -C extra-filename=-88747844d1c08518 --out-dir /home/runner/actions-runner/_work/warp-internal/warp-internal/target/release-lto-debug_assertions/deps -L dependency=/home/runner/actions-runner/_work/warp-internal/warp-internal/target/release-lto-debug_assertions/deps --extern proc_macro2=/home/runner/actions-runner/_work/warp-internal/warp-internal/target/release-lto-debug_assertions/deps/libproc_macro2-1841c4536c34974a.rlib --extern quote=/home/runner/actions-runner/_work/warp-internal/warp-internal/target/release-lto-debug_assertions/deps/libquote-fd0c58ac836ef0fc.rlib --extern syn=/home/runner/actions-runner/_work/warp-internal/warp-internal/target/release-lto-debug_assertions/deps/libsyn-f[157](https://github.com/warpdotdev/warp-internal/actions/runs/9177791864/job/25236257221#step:9:158)f538cb30d78f.rlib --extern proc_macro --cap-lints allow -Csymbol-mangling-version=v0` (signal: 11, SIGSEGV: invalid memory reference)
@vorporeal vorporeal added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 21, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label May 21, 2024
@workingjubilee workingjubilee added S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels May 21, 2024
@fmease fmease changed the title Incosnsistent SIGSEGV while compiling the tracing-attributes crate on aarch64-unknown-linux-gnu Inconsistent SIGSEGV while compiling the tracing-attributes crate on aarch64-unknown-linux-gnu May 21, 2024
@workingjubilee
Copy link
Contributor

@vorporeal Does this occur with 1.78 or nightly?

@workingjubilee
Copy link
Contributor

Closing as lacking repro instructions / no confirmation of occurrence on recent compilers, please feel free to reopen if you have a confirmation that it repros on nightly.

@workingjubilee workingjubilee closed this as not planned Won't fix, can't repro, duplicate, stale Jun 3, 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. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. 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

3 participants