Issue 52986
Summary lldb crashes on breakpoint set
Labels new issue
Assignees
Reporter voiza
    A QT application creashes lldb when a breakpoint is set in some inherited QObject class.

The issue was seen in lldb-10, lldb-12 and lldb-13

```
> lldb ./App
(lldb) target create "./App"
Current executable set to '/home/[redacted]/App' (x86_64).
(lldb) b /home/[redacted]/QmlProxy.cpp:234
Breakpoint 1: no locations (pending).
WARNING:  Unable to resolve breakpoint to any actual locations.
(lldb) run
Process 200886 launched: '/home/[redacted]/App' (x86_64)
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
 #0 0x00007f156d021b41 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib/x86_64-linux-gnu/libLLVM-13.so.1+0xd95b41)
 #1 0x00007f156d01fcf0 llvm::sys::RunSignalHandlers() (/lib/x86_64-linux-gnu/libLLVM-13.so.1+0xd93cf0)
 #2 0x00007f156d022042 (/lib/x86_64-linux-gnu/libLLVM-13.so.1+0xd96042)
 #3 0x00007f15769cc3c0 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x153c0)
 #4 0x00007f157634c2a3 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0xa772a3)
 #5 0x00007f1576375f4e (/lib/x86_64-linux-gnu/liblldb-13.so.1+0xaa0f4e)
 #6 0x00007f1576373503 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0xa9e503)
 #7 0x00007f157636f274 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0xa9a274)
 #8 0x00007f1576350a40 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0xa7ba40)
 #9 0x00007f157634c760 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0xa77760)
#10 0x00007f157634bafe (/lib/x86_64-linux-gnu/liblldb-13.so.1+0xa76afe)
#11 0x00007f157634b90f (/lib/x86_64-linux-gnu/liblldb-13.so.1+0xa7690f)
#12 0x00007f1575fd4bb1 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x6ffbb1)
#13 0x00007f1575ebb32b (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x5e632b)
#14 0x00007f1575ebb6f8 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x5e66f8)
#15 0x00007f1575f12aa1 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x63daa1)
#16 0x00007f1575f12f32 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x63df32)
#17 0x00007f1575ea1bc1 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x5ccbc1)
#18 0x00007f1575ea235c (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x5cd35c)
#19 0x00007f1575ea98c1 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x5d48c1)
#20 0x00007f1576070d79 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x79bd79)
#21 0x00007f1576071ae3 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x79cae3)
#22 0x00007f1575ef9dc1 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x624dc1)
#23 0x00007f1576070677 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x79b677)
#24 0x00007f15763cc6fa (/lib/x86_64-linux-gnu/liblldb-13.so.1+0xaf76fa)
#25 0x00007f157614c04b (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x87704b)
#26 0x00007f157614bea6 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x876ea6)
#27 0x00007f1575eab999 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x5d6999)
#28 0x00007f1575eaccf0 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x5d7cf0)
#29 0x00007f1575ec1d58 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x5ecd58)
#30 0x00007f157605f934 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x78a934)
#31 0x00007f157608b309 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x7b6309)
#32 0x00007f1576095ed8 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x7c0ed8)
#33 0x00007f1576036ca7 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x761ca7)
#34 0x00007f1576031c6f (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x75cc6f)
#35 0x00007f1576037d01 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x762d01)
#36 0x00007f1576037080 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x762080)
#37 0x00007f1575f870c4 (/lib/x86_64-linux-gnu/liblldb-13.so.1+0x6b20c4)
#38 0x00007f15769c0609 start_thread /build/glibc-eX1tMB/glibc-2.31/nptl/pthread_create.c:478:7
#39 0x00007f156be6e293 __clone /build/glibc-eX1tMB/glibc-2.31/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:97:0
[1]    200853 segmentation fault (core dumped)  lldb ./App
```



I re-run lldb under lldb: 

```
> lldb lldb ./App
(lldb) target create "lldb"
Current executable set to 'lldb' (x86_64).
(lldb) settings set -- target.run-args  "./App"
(lldb) run
Process 199995 launched: '/usr/bin/lldb' (x86_64)
Process 199995 stopped and restarted: thread 1 received signal: SIGCHLD
Process 199995 stopped and restarted: thread 1 received signal: SIGCHLD
(lldb) target create "./App"
Current executable set to '/home/[redacted]/App' (x86_64).
(lldb) b /home/[redacted]/QmlProxy.cpp:234
Breakpoint 1: no locations (pending).
WARNING:  Unable to resolve breakpoint to any actual locations.
(lldb) run
Process 200050 launched: '/home/[redacted]/App' (x86_64)
Process 199995 stopped
* thread #5, name = 'intern-state', stop reason = signal SIGSEGV: invalid address (fault address: 0x10)
    frame #0: 0x00007ffff79212a3 liblldb-13.so.1`___lldb_unnamed_symbol32109 + 19
liblldb-13.so.1`___lldb_unnamed_symbol32109:
->  0x7ffff79212a3 <+19>: movq   0x10(%rdi), %rbx
    0x7ffff79212a7 <+23>: callq  0x7ffff7915f20            ; ___lldb_unnamed_symbol32006
    0x7ffff79212ac <+28>: cmpq   $0x8001, %rax             ; imm = 0x8001
    0x7ffff79212b2 <+34>: je     0x7ffff79212c3            ; <+51>
(lldb)

```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to