[llvm-bugs] [Bug 41451] New: clang-cl and libc++ produce PDBs that confuse windbg / cdb

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 10 07:27:27 PDT 2019


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

            Bug ID: 41451
           Summary: clang-cl and libc++ produce PDBs that confuse windbg /
                    cdb
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MachO
          Assignee: unassignedbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: llvm-bugs at lists.llvm.org

C:\src\chrome\src>type test.cc
#include <string>

int main() {
  std::string s = "hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii";
  std::string s2 = "hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii";
  return s.size() + s2.size();
}



>"third_party\llvm-build\Release+Asserts\bin\clang-cl.exe" test.cc /I "buildtools\third_party\libc++\trunk\include" -D_LIBCPP_NO_AUTO_LINK -D_LIBCPP_ABI_UNSTABLE libc++.dll.lib /Zi


>cdb -c "bp `test.cc:6`; g; dv; q" test.exe


[...]
Breakpoint 0 hit
              s = class
std::__1::basic_string<char,std::__1::char_traits<char>,std::__1::allocator<char>
>
             s2 = <unknown base type 80000013>





Note missing output for s2. Works fine without libc++:

>"third_party\llvm-build\Release+Asserts\bin\clang-cl.exe" test.cc /Zi

>cdb -c "bp `test.cc:6`; g; dv; q" test.exe


Breakpoint 0 hit
              s = "hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii"
             s2 = "hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii"



I have a local natvis thing that makes cdb print "hiiiiiii..." with libc++, but
this bug happens without that too. This is about the "<unknown base type>"
error.



Seems to happen with both link.exe and lld-link.

-- 
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/20190410/7ffc7720/attachment.html>


More information about the llvm-bugs mailing list