Issue 52958
Summary lldb errors when std::terminate() is called
Labels new issue
Assignees
Reporter TestingPlant
    I'm using the following code:
```cpp
#include <exception>
int main() {
	std::terminate();
}
```

When running it through lldb, I get the following:
```
$ clang++ a.cpp
$ lldb ./a.out 
(lldb) target create "./a.out"
Current executable set to '/tmp/a.out' (x86_64).
(lldb) r
Process 20396 launched: '/tmp/a.out' (x86_64)
terminate called without an active exception
error: libstdc++.so.6 {0x0003f174}: DIE has DW_AT_ranges(DW_FORM_sec_offset 0x2183) attribute, but range extraction failed (invalid range list offset 0x2183), please file a bug and attach the file at the start of this error message
error: libstdc++.so.6 {0x0002efbb}: DIE has DW_AT_ranges(DW_FORM_sec_offset 0x13cf) attribute, but range extraction failed (invalid range list offset 0x13cf), please file a bug and attach the file at the start of this error message
Process 20396 stopped
* thread #1, name = 'a.out', stop reason = signal SIGABRT
    frame #0: 0x00007ffff7a94d22 libc.so.6`raise + 322
libc.so.6`raise:
->  0x7ffff7a94d22 <+322>: movq   0x108(%rsp), %rax
    0x7ffff7a94d2a <+330>: subq   %fs:0x28, %rax
    0x7ffff7a94d33 <+339>: jne    0x7ffff7a94d54            ; <+372>
    0x7ffff7a94d35 <+341>: movl   %r8d, %eax
```
I'm using llvm 13.0.0-6, lldb 13.0.0-2, and clang 13.0.0-4 from Arch Linux.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to