Repository navigation
Open
Labels
A-libtestArea: `#[test]` / the `test` libraryC-bugCategory: This is a bug.F-extern_item_impls`#![feature(extern_item_impls)]`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.
Description
I tried this code:
// cargo test
#![feature(extern_item_impls)]
#[test]
#[eii]
fn blah(){}I expected to see this happen: not sure
Instead, this happened: rustc interrupted by SIGSEGV
Meta
rustc --version --verbose:
1.102.0-nightly
(2026-11-11 3ef0c22cdb86ac42dc6b)
Backtrace
error: rustc interrupted by SIGSEGV, printing backtrace
/playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-789fff502791d0da.so(+0x418635c)[0x70708db8635c]
/lib/x86_64-linux-gnu/libc.so.6(+0x45330)[0x707089832330]
/playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/libLLVM.so.23.1-rust-1.102.0-nightly(LLVMAppendBasicBlockInContext+0x8e)[0x7070876184ce]
/playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-789fff502791d0da.so(+0x3f5e8bb)[0x70708d95e8bb]
/playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-789fff502791d0da.so(+0x6abc18b)[0x7070904bc18b]
/playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-789fff502791d0da.so(+0x6c61a84)[0x707090661a84]
/playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-789fff502791d0da.so(_RNvXs0_NtNtCselIXhgQo6Pw_18rustc_codegen_llvm4back12llvm_backendNtB5_18LlvmCodegenBackendNtNtNtCs4TFVTl8kPDS_17rustc_codegen_ssa6traits7backend19ExtraBackendMethods20compile_codegen_unit+0x194)[0x70709097421e]
/playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-789fff502791d0da.so(+0x6f70221)[0x707090970221]
/playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-789fff502791d0da.so(_RNvXs3_NtNtCselIXhgQo6Pw_18rustc_codegen_llvm4back12llvm_backendNtB5_18LlvmCodegenBackendNtNtNtCs4TFVTl8kPDS_17rustc_codegen_ssa6traits7backend14CodegenBackend13codegen_crate+0x31)[0x70709096eaf1]
/playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-789fff502791d0da.so(_RNvMNtCs8Kx2m4sh1OY_15rustc_interface7queriesNtB2_6Linker24codegen_and_build_linker+0x344)[0x70709097b062]
/playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-789fff502791d0da.so(+0x6d4a23a)[0x70709074a23a]
/playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-789fff502791d0da.so(+0x6dcfe41)[0x7070907cfe41]
/playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-789fff502791d0da.so(+0x6dcfbed)[0x7070907cfbed]
/playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-789fff502791d0da.so(+0x6dd3c6d)[0x7070907d3c6d]
/lib/x86_64-linux-gnu/libc.so.6(+0x9cb84)[0x707089889b84]
/lib/x86_64-linux-gnu/libc.so.6(__clone+0x44)[0x707089916cc4]
note: we would appreciate a report at https://github.com/rust-lang/rust
warning: `playground` (lib test) generated 1 warning (1 duplicate)
error: could not compile `playground` (lib test); 1 warning emitted
Caused by:
process didn't exit successfully: SIGSEGV: invalid memory reference
Metadata
Metadata
Assignees
Labels
A-libtestArea: `#[test]` / the `test` libraryC-bugCategory: This is a bug.F-extern_item_impls`#![feature(extern_item_impls)]`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
Projects
- StatusShow more project fieldsNo status
Activity
[-]error: rustc interrupted by SIGSEGV: invalid memory reference[/-][+]error: `rustc interrupted by SIGSEGV: invalid memory reference` when combining `test` and `eii` macros[/+]