<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Many tests fail when using PDB_ReaderType::Native in llvm-symbolizer"
   href="https://bugs.llvm.org/show_bug.cgi?id=41795">41795</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Many tests fail when using PDB_ReaderType::Native in llvm-symbolizer
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows 2000
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>hans@chromium.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>