Skip to content

Repeatable rustc sigsegv crash #116249

@darthdeus

Description

@darthdeus

I tried a clean build multiple times, it always crashes on a different crate, but with a seemingly same error. Fixed after updating to latest nightly, but still reporting in case it's relevant.

Code

I don't have a small code example, but the whole project is OSS and it keeps crashing even when I do cargo clean, at this commit darthdeus/comfy@a69821d

Meta

rustc --version --verbose:

rustc 1.74.0-nightly (0288f2e19 2023-09-25)
binary: rustc
commit-hash: 0288f2e1955b154262e0669ec5f7bb9a4c6cf5aa
commit-date: 2023-09-25
host: x86_64-unknown-linux-gnu
release: 1.74.0-nightly
LLVM version: 17.0.0

After rustup update it stopped happening

   nightly-x86_64-unknown-linux-gnu updated - rustc 1.74.0-nightly (e7c502d93 2023-09-27) (from rustc 1.74.0-nightly (0288f2e19 2023-09-25))

Error output

error: rustc interrupted by SIGSEGV, printing backtrace

/home/darth/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-6fb72141db78b514.so(+0x30f0156)[0x7f34320f0156]
/usr/lib/libc.so.6(+0x3e710)[0x7f342ec3e710]
/home/darth/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/libLLVM-17-rust-1.74.0-nightly.so(+0x609509b)[0x7f342d29509b]
/home/darth/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/libLLVM-17-rust-1.74.0-nightly.so(_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE+0x1408)[0x7f342d1b2424]
/home/darth/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/libLLVM-17-rust-1.74.0-nightly.so(_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE+0x266)[0x7f342d5b5a2c]
/home/darth/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-6fb72141db78b514.so(+0x2706926)[0x7f3431706926]
/home/darth/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-6fb72141db78b514.so(+0x27057d8)[0x7f34317057d8]
/home/darth/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-6fb72141db78b514.so(+0x270411c)[0x7f343170411c]
/home/darth/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-6fb72141db78b514.so(+0x261b7f8)[0x7f343161b7f8]
/home/darth/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-6fb72141db78b514.so(+0x26191ac)[0x7f34316191ac]
/home/darth/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-6fb72141db78b514.so(+0x26088f6)[0x7f34316088f6]
/home/darth/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/libstd-4aa9c5361fb5e968.so(rust_metadata_std_c0c5954477cb1558+0x10a2d5)[0x7f342ef722d5]
/usr/lib/libc.so.6(+0x8c9eb)[0x7f342ec8c9eb]
/usr/lib/libc.so.6(+0x110dfc)[0x7f342ed10dfc]

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

Caused by:
  process didn't exit successfully: `/home/darth/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustc --crate-name wgpu --edition=2021 /home/darth/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.16.3/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=147 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C debuginfo=2 -C debug-assertions=on --cfg 'feature="default"' --cfg 'feature="expose-ids"' --cfg 'feature="wgsl"' -C metadata=b2410f259330f375 -C extra-filename=-b2410f259330f375 --out-dir /home/darth/projects/comfy/target/debug/deps -C linker=clang -L dependency=/home/darth/projects/comfy/target/debug/deps --extern arrayvec=/home/darth/projects/comfy/target/debug/deps/libarrayvec-367778a3aadf580a.rmeta --extern cfg_if=/home/darth/projects/comfy/target/debug/deps/libcfg_if-498469d5bcd7a385.rmeta --extern log=/home/darth/projects/comfy/target/debug/deps/liblog-4c84c92027bca2c8.rmeta --extern parking_lot=/home/darth/projects/comfy/target/debug/deps/libparking_lot-0879d7b3413cf3ad.rmeta --extern profiling=/home/darth/projects/comfy/target/debug/deps/libprofiling-3f8cf0888ee03f90.rmeta --extern raw_window_handle=/home/darth/projects/comfy/target/debug/deps/libraw_window_handle-57270b0f8da3f9cd.rmeta --extern smallvec=/home/darth/projects/comfy/target/debug/deps/libsmallvec-1898cbb2da0bcf5c.rmeta --extern static_assertions=/home/darth/projects/comfy/target/debug/deps/libstatic_assertions-ea8e8728acdd08e1.rmeta --extern wgc=/home/darth/projects/comfy/target/debug/deps/libwgpu_core-b45b2862c6302c35.rmeta --extern hal=/home/darth/projects/comfy/target/debug/deps/libwgpu_hal-da2b7722a1e4c934.rmeta --extern wgt=/home/darth/projects/comfy/target/debug/deps/libwgpu_types-435b69cfad33328c.rmeta --cap-lints allow -Clink-arg=-fuse-ld=mold -Clink-arg=-fuse-ld=mold -Zshare-generics=y` (signal: 11, SIGSEGV: invalid memory reference)

Backtrace

No backtrace in the error

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions