[llvm-bugs] [Bug 32399] New: Clang fsanitize-coverage crashes on Windows

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 23 14:57:06 PDT 2017


            Bug ID: 32399
           Summary: Clang fsanitize-coverage crashes on Windows
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: adamf88 at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 18160
  --> https://bugs.llvm.org/attachment.cgi?id=18160&action=edit
Test data

If I compile my code on Windows with option: -fsanitize-coverage=trace-pc-guard
then I receive crash : 
Assertion failed: !NodePtr->isKnownSentinel(), file
D:\src\llvm_package_298093\llvm\include\llvm/ADT/ilist_iterator.h, line 139

Source Code:

struct A{
        A() {}
        ~A(){ delete[] d; }
        void PB(const int& value) {
                c *= 2;
                if(c) throw 0;
                d = new int[c];
        int* d;
        unsigned int c;
int main() {
        A v;
        try     {
        }catch (int e){}
        return 0;

Sample program in attachment

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/20170323/293b00d2/attachment.html>

More information about the llvm-bugs mailing list