rust-lang / rust-lang/rust

error: rustc interrupted by SIGBUS (stable/nightly)

Open
#147,078 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-debuginfo A-LLVM C-bug I-crash T-compiler
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

While invoking rustc via cargo test:

error: rustc interrupted by SIGBUS, printing backtrace

[...]

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 SIGBUS! resuming signal
Meta

rustc --version --verbose:

rustc 1.92.0-nightly (4645a7988 2025-09-17)
binary: rustc
commit-hash: 4645a7988177c286f61609cc667ecae4c571a2e8
commit-date: 2025-09-17
host: aarch64-apple-darwin
release: 1.92.0-nightly
LLVM version: 21.1.1
Backtrace

0   librustc_driver-6bef486ded886959.dy 0x00000001108992e8 _RNvNtCsg5V23xBWzPv_17rustc_driver_impl14signal_handler17print_stack_trace + 140
1   libsystem_platform.dylib            0x000000018d22d6a4 _sigtramp + 56
2   rustc                               0x00000001043b06ac zone_size + 96
3   libsystem_malloc.dylib              0x000000018d025910 find_zone_and_free + 188
4   librustc_driver-6bef486ded886959.dy 0x0000000114511cd4 _ZN4llvm9DwarfFile8addRangeERKNS_16DwarfCompileUnitENS_11SmallVectorINS_9RangeSpanELj2EEE + 352
5   librustc_driver-6bef486ded886959.dy 0x00000001144e2cb4 _ZN4llvm16DwarfCompileUnit17addScopeRangeListERNS_3DIEENS_11SmallVectorINS_9RangeSpanELj2EEE + 164
6   librustc_driver-6bef486ded886959.dy 0x00000001144e1168 _ZN4llvm16DwarfCompileUnit23attachRangesOrLowHighPCERNS_3DIEENS_11SmallVectorINS_9RangeSpanELj2EEE + 208
7   librustc_driver-6bef486ded886959.dy 0x00000001144e313c _ZN4llvm16DwarfCompileUnit23attachRangesOrLowHighPCERNS_3DIEERKNS_15SmallVectorImplINSt3__14pairIPKNS_12MachineInstrES8_EEEE + 956
8   librustc_driver-6bef486ded886959.dy 0x00000001144e2b94 _ZN4llvm16DwarfCompileUnit24constructLexicalScopeDIEEPNS_12LexicalScopeE + 712
9   librustc_driver-6bef486ded886959.dy 0x00000001144e14a0 _ZN4llvm16DwarfCompileUnit17constructScopeDIEEPNS_12LexicalScopeERNS_3DIEE + 148

### cycle encountered after 10 frames with period 11
0   librustc_driver-6bef486ded886959.dy 0x00000001144e26a4 _ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE + 3712
1   librustc_driver-6bef486ded886959.dy 0x00000001144e26a4 _ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE + 3712
2   librustc_driver-6bef486ded886959.dy 0x00000001144e26a4 _ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE + 3712
3   librustc_driver-6bef486ded886959.dy 0x00000001144e26a4 _ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE + 3712
4   librustc_driver-6bef486ded886959.dy 0x00000001144e26a4 _ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE + 3712
5   librustc_driver-6bef486ded886959.dy 0x00000001144e26a4 _ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE + 3712
6   librustc_driver-6bef486ded886959.dy 0x00000001144e26a4 _ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE + 3712
7   librustc_driver-6bef486ded886959.dy 0x00000001144e26a4 _ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE + 3712
8   librustc_driver-6bef486ded886959.dy 0x00000001144e26a4 _ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE + 3712
9   librustc_driver-6bef486ded886959.dy 0x00000001144e26a4 _ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE + 3712
10  librustc_driver-6bef486ded886959.dy 0x00000001144e26a4 _ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE + 3712
### recursed 22 times

0   librustc_driver-6bef486ded886959.dy 0x00000001144e26a4 _ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE + 3712
1   librustc_driver-6bef486ded886959.dy 0x00000001144e26a4 _ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE + 3712
2   librustc_driver-6bef486ded886959.dy 0x00000001144e26a4 _ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE + 3712
3   librustc_driver-6bef486ded886959.dy 0x00000001144e26a4 _ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE + 3712

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by reproducing the cargo test failure with the reported nightly rustc on aarch64-apple-darwin, then inspect the supplied backtrace, especially the LLVM DWARF functions. Done means the SIGBUS cause is identified and the reported compilation no longer crashes, with verification covering the failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.