[Lldb-commits] [lldb] [llvm] [lldb][NativePDB] Fix crash in debugger when PDB has bad type index value (PR #166455)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 15 08:37:57 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 168127 tests passed
* 2990 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### lldb-shell
<details>
<summary>lldb-shell.SymbolFile/NativePDB/invalid-inlinee-not-in-ipi.yaml</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-pdbutil yaml2pdb /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/Shell/SymbolFile/NativePDB/invalid-inlinee-not-in-ipi.yaml --pdb=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/test/Shell/SymbolFile/NativePDB/Output/invalid-inlinee-not-in-ipi.yaml.tmp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-pdbutil yaml2pdb /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/Shell/SymbolFile/NativePDB/invalid-inlinee-not-in-ipi.yaml --pdb=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/test/Shell/SymbolFile/NativePDB/Output/invalid-inlinee-not-in-ipi.yaml.tmp
# note: command had no output on stdout or stderr
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/lldb-test symbols /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/test/Shell/SymbolFile/NativePDB/Output/invalid-inlinee-not-in-ipi.yaml.tmp | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/Shell/SymbolFile/NativePDB/invalid-inlinee-not-in-ipi.yaml
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/lldb-test symbols /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/test/Shell/SymbolFile/NativePDB/Output/invalid-inlinee-not-in-ipi.yaml.tmp
# .---command stderr------------
# | lldb-test: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:109: static bool llvm::isa_impl_cl<lldb_private::TypeSystemClang, const lldb_private::TypeSystem *>::doit(const From *) [To = lldb_private::TypeSystemClang, From = const lldb_private::TypeSystem *]: Assertion `Val && "isa<> used on a null pointer"' failed.
# | #0 0x00000000058df0c8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:842:13
# | #1 0x00000000058dc7ec llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# | #2 0x00000000058dfe91 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:429:38
# | #3 0x00007f4819ac4330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# | #4 0x00007f4819b1db2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# | #5 0x00007f4819ac427e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# | #6 0x00007f4819aa78ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# | #7 0x00007f4819aa781b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# | #8 0x00007f4819aba517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# | #9 0x0000000007e26a02 lldb_private::ClangUtil::GetDecl(lldb_private::CompilerDecl const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ClangUtil.cpp:32:3
# | #10 0x0000000007e39a61 lldb_private::npdb::PdbAstBuilderClang::GetOrCreateClangDeclContextForUid(lldb_private::npdb::PdbSymUid) /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilderClang.cpp:316:8
# | #11 0x0000000007e3877a lldb_private::npdb::PdbAstBuilderClang::GetOrCreateVariableDecl(lldb_private::npdb::PdbCompilandSymId, lldb_private::npdb::PdbCompilandSymId) /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilderClang.cpp:716:8
# | #12 0x0000000007e78e84 __shared_count /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1077:12
# | #13 0x0000000007e78e84 __shared_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1522:7
# | #14 0x0000000007e78e84 shared_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr.h:204:7
# | #15 0x0000000007e78e84 lldb_private::npdb::SymbolFileNativePDB::CreateLocalVariable(lldb_private::npdb::PdbCompilandSymId, lldb_private::npdb::PdbCompilandSymId, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp:2240:15
# | #16 0x0000000007e798f3 lldb_private::npdb::SymbolFileNativePDB::GetOrCreateLocalVariable(lldb_private::npdb::PdbCompilandSymId, lldb_private::npdb::PdbCompilandSymId, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp:2257:1
# | #17 0x0000000007e7a74e __shared_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1532:20
# | #18 0x0000000007e7a74e operator= /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1620:2
# | #19 0x0000000007e7a74e operator= /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr.h:440:27
# | #20 0x0000000007e7a74e lldb_private::npdb::SymbolFileNativePDB::ParseVariablesForBlock(lldb_private::npdb::PdbCompilandSymId) /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp:2376:16
# | #21 0x0000000007e7a632 at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/BinaryStreamArray.h:135:12
# | #22 0x0000000007e7a632 lldb_private::npdb::SymbolFileNativePDB::ParseVariablesForBlock(lldb_private::npdb::PdbCompilandSymId) /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp:2366:19
# | #23 0x0000000007e7ac93 lldb_private::npdb::SymbolFileNativePDB::ParseVariablesForContext(lldb_private::SymbolContext const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp:0:0
# | #24 0x0000000005965d8c bool llvm::function_ref<bool (std::shared_ptr<lldb_private::Function> const&)>::callback_fn<lldb_private::Module::ParseAllDebugSymbols()::$_0>(long, std::shared_ptr<lldb_private::Function> const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:5
# | #25 0x0000000005a6f3c9 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:0:12
# | #26 0x0000000005a6f3c9 lldb_private::CompileUnit::ForeachFunction(llvm::function_ref<bool (std::shared_ptr<lldb_private::Function> const&)>) const /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Symbol/CompileUnit.cpp:77:9
# | #27 0x000000000595e500 lldb_private::Module::ParseAllDebugSymbols() /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Core/Module.cpp:411:5
# | #28 0x00000000058323f9 opts::symbols::dumpModule(lldb_private::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/tools/lldb-test/lldb-test.cpp:700:10
# | #29 0x000000000582c8c3 getPtr /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:278:42
# | #30 0x000000000582c8c3 operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:241:16
# | #31 0x000000000582c8c3 dumpSymbols /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/tools/lldb-test/lldb-test.cpp:988:13
# | #32 0x000000000582c8c3 main /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/tools/lldb-test/lldb-test.cpp:1280:12
# | #33 0x00007f4819aa91ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #34 0x00007f4819aa928b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #35 0x0000000005823925 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/lldb-test+0x5823925)
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0. Program arguments: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/lldb-test symbols /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/test/Shell/SymbolFile/NativePDB/Output/invalid-inlinee-not-in-ipi.yaml.tmp
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/Shell/SymbolFile/NativePDB/invalid-inlinee-not-in-ipi.yaml
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/Shell/SymbolFile/NativePDB/invalid-inlinee-not-in-ipi.yaml
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/166455
More information about the lldb-commits
mailing list