https://bugs.llvm.org/show_bug.cgi?id=41795

            Bug ID: 41795
           Summary: Many tests fail when using PDB_ReaderType::Native in
                    llvm-symbolizer
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: h...@chromium.org
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org

llvm-symbolize currently uses DIA for getting symbols from PDBs on Windows.

But we also have native PDB reading capabilities now, and it would be nice not
having to depend on DIA.

Unfortunately, symbolization with PDB_ReaderType::Native doesn't seem to work,
see the attached test log.

diff --git a/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
b/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
index 7e91a20416b..1ad18ff6e28 100644
--- a/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
+++ b/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
@@ -411,7 +411,7 @@ LLVMSymbolizer::getOrCreateModuleInfo(const std::string
&ModuleName,
     if (!EC && DebugInfo != nullptr && !PDBFileName.empty()) {
       using namespace pdb;
       std::unique_ptr<IPDBSession> Session;
-      if (auto Err = loadDataForEXE(PDB_ReaderType::DIA,
+      if (auto Err = loadDataForEXE(PDB_ReaderType::Native,
                                     Objects.first->getFileName(), Session)) {
         Modules.insert(
             std::make_pair(ModuleName,
std::unique_ptr<SymbolizableModule>()));


ninja -C build.release check-all > \src\log.txt 2>&1


  Expected Passes    : 47543
  Expected Failures  : 252
  Unsupported Tests  : 1857
  Unexpected Failures: 20

Looking at some of the outputs from the asan tests indicates that we're not
getting symbolized stack traces.




Does anyone know what the status is of the native PDB reader?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to