[llvm-bugs] [Bug 41795] New: Many tests fail when using PDB_ReaderType::Native in llvm-symbolizer

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 8 06:16:25 PDT 2019


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: unassignedbugs at nondot.org
          Reporter: hans at chromium.org
                CC: htmldeveloper at gmail.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190508/540b9b41/attachment.html>


More information about the llvm-bugs mailing list