Open
Description
Hi,
I compiled llvm and lldb from source (14.0.4).
cmake -S llvm -B build -G "Visual Studio 17 2022" -DLLVM_ENABLE_PROJECTS="clang;lldb"
If I debug a simple c++ application I have no issues. If I do the same with a simple rust application lldb crashes if it reaches the breakpoint. What did I wrong?
$ lldb rustbook.exe
(lldb) target create "rustbook.exe"
Current executable set to 'D:\Dev\rs\rustbook\target\debug\rustbook.exe' (x86_64).
(lldb) breakpoint set -f main.rs -l 6
Breakpoint 1: where = rustbook.exe`rustbook::main + 93 at main.rs:6, address = 0x0000000140001d4d
(lldb) r
Process 7576 launched: 'D:\Dev\rs\rustbook\target\debug\rustbook.exe' (x86_64)
(lldb) PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
#0 0x00007fff2fe8b34a lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x1ccb34a)
#1 0x00007fff2fe8d965 lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x1ccd965)
#2 0x00007fff2fe8de5a lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x1ccde5a)
#3 0x00007fff2fe90b5d lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x1cd0b5d)
#4 0x00007fff2fe6fc29 lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x1cafc29)
#5 0x00007fff2fe75df9 lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x1cb5df9)
#6 0x00007fff2fe72666 lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x1cb2666)
#7 0x00007fff2fe7b14e lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x1cbb14e)
#8 0x00007fff2fe7af47 lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x1cbaf47)
#9 0x00007fff2fe7b3a8 lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x1cbb3a8)
#10 0x00007fff2e472ed6 lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x2b2ed6)
#11 0x00007fff2e3c4257 lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x204257)
#12 0x00007fff2e3c2ea5 lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x202ea5)
#13 0x00007fff2e3c2ea5 lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x202ea5)
#14 0x00007fff2e3c2e2b lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x202e2b)
#15 0x00007fff2e4ce74e lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x30e74e)
#16 0x00007fff2e4cfef3 lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x30fef3)
#17 0x00007fff2e52fada lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x36fada)
#18 0x00007fff2e513b13 lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x353b13)
#19 0x00007fff2e4f5949 lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x335949)
#20 0x00007fff2e4f6da9 lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x336da9)
#21 0x00007fff2e38f729 lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x1cf729)
#22 0x00007fff2e38bf0e lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x1cbf0e)
#23 0x00007fff2e42bb2e lldb::SBUnixSignals::SetShouldSuppress(int, bool) (D:\Dev\llvm-project\build\Release\bin\liblldb.dll+0x26bb2e)
#24 0x00007fffad8d6c0c (C:\WINDOWS\System32\ucrtbase.dll+0x26c0c)
#25 0x00007fffaf1554e0 (C:\WINDOWS\System32\KERNEL32.DLL+0x154e0)
#26 0x00007fffb032485b (C:\WINDOWS\SYSTEM32\ntdll.dll+0x485b)