Skip to content

error: rustc interrupted by SIGSEGV: invalid memory reference when combining test and eii macros #165894

Open

Description

@mejrs

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


Activity

  1. added
    C-bug
    on Nov 12, 2026
  2. added
    needs-triage
    on Nov 12, 2026
  3. added
    F-extern_item_impls
    on Nov 12, 2026
  4. changed the title [-]error: rustc interrupted by SIGSEGV: invalid memory reference[/-] [+]error: `rustc interrupted by SIGSEGV: invalid memory reference` when combining `test` and `eii` macros[/+] on Nov 13, 2026
  5. added
    I-crash
    T-compiler
    A-libtest
    and removed
    needs-triage
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-libtestC-bugF-extern_item_implsI-crashT-compiler

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions