Issue |
133570
|
Summary |
llvm@19 Invalid Range List Offset 0x1a in DW_AT_ranges Attribute in demo.exe Debug Information
|
Labels |
new issue
|
Assignees |
|
Reporter |
dongzhaolee
|
**Issue Description:**
I have encountered an error when debugging rust demo on VSCode. The error message indicates that there is an issue with the DW_AT_ranges attribute in the debug information, specifically with an invalid range list offset.
**Debug Console:**
> Console is in 'commands' mode, prefix expressions with '?'.
> Loading Rust formatters from D:\rust\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib/rustlib/etc
> Launching: C:\Users\zhaod\code\demo\target\debug\demo.exe
> Launched process 13200 from 'C:\Users\zhaod\code\demo\target\debug\demo.exe'
> error: demo.exe [0x00000000000021bf]: DIE has DW_AT_ranges(DW_FORM_sec_offset 0x000000000000001a) attribute, but range extraction failed (invalid range list offset 0x1a), please file a bug and attach the file at the start of this error message
> error: demo.exe [0x00000000000021f1]: DIE has DW_AT_ranges(DW_FORM_sec_offset 0x000000000000001a) attribute, but range extraction failed (invalid range list offset 0x1a), please file a bug and attach the file at the start of this error message
**llvm version & rustc version:**
> rustc 1.85.1 (4eb161250 2025-03-15)
> binary: rustc
> commit-hash: 4eb161250e340c8f48f66e2b929ef4a5bed7c181
> commit-date: 2025-03-15
> host: x86_64-pc-windows-gnu
> release: 1.85.1
> LLVM version: 19.1.7
> lldb version 19.1.7-codelldb
**Code:**
```rust
fn main() {
println!("Hello, world!");
let v = vec![2, 3, 5, 7, 11];
println!("{:?}", v);
}
```
In fact, on my Windows system, any code can reproduce the problem regardless, as long as breakpoints are set. There is no error reported when no breakpoint is set.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs