Open I-ABD-I opened 3 months ago
@llvm/issue-subscribers-lldb
Author: Aylon Ben Dvora (I-ABD-I)
Same error here.
I'm adding module with target modules add
:
(lldb) target modules add -s C:\Projects\uefi\debugger_test\debugger.pdb C:\Projects\uefi\debugger_test\debugger.efi
error: Assertion failed: (obj_load_address && obj_load_address != LLDB_INVALID_ADDRESS), function InitializeObject, file SymbolFilePDB.cpp, line 204
#0 0x00007ffe6299f2a6 PyInit__lldb (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\liblldb.dll+0x2e3f2a6)
#1 0x00007ffe6064f3da PyInit__lldb (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\liblldb.dll+0xaef3da)
#2 0x00007ffe607f250d PyInit__lldb (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\liblldb.dll+0xc9250d)
#3 0x00007ffe60f0b5df PyInit__lldb (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\liblldb.dll+0x13ab5df)
#4 0x00007ffe60be288f PyInit__lldb (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\liblldb.dll+0x108288f)
#5 0x00007ffe60be27b5 PyInit__lldb (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\liblldb.dll+0x10827b5)
#6 0x00007ffe60530997 PyInit__lldb (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\liblldb.dll+0x9d0997)
#7 0x00007ffe60532d27 PyInit__lldb (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\liblldb.dll+0x9d2d27)
#8 0x00007ffe605be419 PyInit__lldb (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\liblldb.dll+0xa5e419)
#9 0x00007ffe60c5cb39 PyInit__lldb (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\liblldb.dll+0x10fcb39)
#10 0x00007ffe6055aa28 PyInit__lldb (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\liblldb.dll+0x9faa28)
#11 0x00007ffe6056f134 PyInit__lldb (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\liblldb.dll+0xa0f134)
#12 0x00007ffe60573556 PyInit__lldb (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\liblldb.dll+0xa13556)
#13 0x00007ffe60bb5332 PyInit__lldb (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\liblldb.dll+0x1055332)
#14 0x00007ffe604ee2a7 PyInit__lldb (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\liblldb.dll+0x98e2a7)
#15 0x00007ffe60574f10 PyInit__lldb (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\liblldb.dll+0xa14f10)
#16 0x00007ffe60314342 lldb::SBDebugger::RunCommandInterpreter(bool, bool) (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\liblldb.dll+0x7b4342)
#17 0x00007ff796e4e925 (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\lldb.exe+0xe925)
#18 0x00007ff796e4f328 (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\lldb.exe+0xf328)
#19 0x00007ff796e5c770 (C:\Prg\llvm\clang+llvm-18.1.5-x86_64-pc-windows-msvc\bin\lldb.exe+0x1c770)
#20 0x00007fff3818257d (C:\windows\System32\KERNEL32.DLL+0x1257d)
#21 0x00007fff39caaa48 (C:\windows\SYSTEM32\ntdll.dll+0x5aa48)
Please file a bug report against lldb reporting this failure log, and as many details as possible
This is on Windows release 18.1.5 with MS DIA PDB parser.
When forced to use NativePDB parser (LLDB_USE_NATIVE_PDB_READER=1
) it works quite all right.
i am trying to debug a UEFI rust application and when i try to load the generated pdb file it does not load any symbols and throws this error
i tried using code lldb launch config i found on osdev wiki but symbols are still not loading
i tried checking the pdb file using llvm-pdbutil and it seems fine (at least as much as i know)
when i tried using wsl2 it didn't throw this error but the symbols were still missing, same thing happened when tried compiling with
RUSTFLAGS="-C debuginfo=2"