[LLVMbugs] [Bug 21528] New: [Windows] Stack traces don't contain namespaces in function names since r220544

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 11 06:55:39 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=21528

            Bug ID: 21528
           Summary: [Windows] Stack traces don't contain namespaces in
                    function names since r220544
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: timurrrr at google.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Stack traces contain mangled function names since r220544

Example:
--------------------------
#include <malloc.h>

namespace foo {
template<int x>
void bar(char *p) {
  *p = x;
}
}

int main() {
  char *buffer = (char*)malloc(42);
  free(buffer);
  foo::bar<42>(buffer);
}
--------------------------
$ clang-cl.exe -fsanitize=address -Zi test.cpp -Fezz.exe && zz.exe 2>&1 | head

Expected:
...
    #0 0x11d12d6 in foo::bar<42> ...
    #1 0x11d1153 in main ...

Actual:
...
    #0 0x3612d6 in bar<42> ...
    #1 0x361153 in main ...

-- 
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/20141111/6446353d/attachment.html>


More information about the llvm-bugs mailing list