[llvm-bugs] [Bug 30706] New: Fatal crash when targeting thumbv7-windows-msvc

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 14 13:49:53 PDT 2016


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

            Bug ID: 30706
           Summary: Fatal crash when targeting thumbv7-windows-msvc
           Product: clang
           Version: 3.9
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: emmanuel.stapf at xenko.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17449
  --> https://llvm.org/bugs/attachment.cgi?id=17449&action=edit
Crash Dump file

The following piece of code (also attached) cause the clang compiler to crash
when targeting thumbv7-windows-msvc when using anything but -O0 optimization:

struct pool
{
    pool* next;
};

struct field
{
    ~field();
    pool* pools;
};

void free(void* ptr);

field::~field()
{
    free(pools);
}

Here is the output
clang --target=thumbv7-windows-msvc -O1 -Wall -c test.cpp
Wrote crash dump file "C:\Users\XXX\AppData\Local\Temp\clang.exe-948387.dmp"
0x00F7A2FD (0x038DC360 0x00000002 0x03936E48 0x0378E700)
0x00F78BF3 (0x038DC360 0x038982F0 0x00000004 0x0378E700)
0x01064360 (0x038DC360 0x03898078 0x038DC360 0x0378E700)
0x01067700 (0x038DC360 0x00000000 0x038DC330 0x0378E7F8)
0x01067209 (0x038DC360 0x038DC360 0x038A47E0 0x0388DF40)
0x0138186F (0x00000005 0x038A4468 0x0388DEA0 0x0388DF40)
0x01381955 (0x038A47E0 0x038A2E20 0x03881A00 0x0387E968)
0x0200BD67 (0x038D1200 0x038801F0 0x03883088 0x038801F0)
0x018ABDB5 (0x038F5BF8 0x00000000 0x00000000 0x038801F0)
0x01577A71 (0x038A2CD4 0x038A2CB0 0x03883088 0x0155A142)
0x015779AF (0x038801F0 0x0387E490 0x03883088 0x03883088)
0x015A7EC9 (0x03883088 0x038A0EF0 0x00000000 0x0378F7A4)
0x0090E681 (0x0378F678 0x0000004B 0x038A0EC8 0x0090B4C0)
0x0090B387 (0x0378F670 0x0000004D 0x038A0EF3 0x00000000)
0x0090CC70 (0x0000004D 0x0388F7F8 0x0388B070 0x14BBA078)
0x01F70B97 (0x02CEF000 0x755D62A0 0x634323AB 0x0378FC9C)
0x755D62C4 (0x02CEF000 0x61461D6F 0x00000000 0x00000000), BaseThreadInitThunk()
+ 0x24 bytes(s)
0x77570609 (0xFFFFFFFF 0x77592514 0x00000000 0x00000000),
RtlSubscribeWnfStateChangeNotification() + 0x439 bytes(s)
0x775705D4 (0x01F70C0D 0x02CEF000 0x00000000 0x00000000),
RtlSubscribeWnfStateChangeNotification() + 0x404 bytes(s)
clang.exe: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.9.0 (tags/RELEASE_390/final 280336)
Target: thumbv7--windows-msvc
Thread model: posix
InstalledDir: C:\Dev\LLVM
clang.exe: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang.exe: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang.exe: note: diagnostic msg:
C:\Users\XXX\AppData\Local\Temp\test-381485.cpp
clang.exe: note: diagnostic msg: C:\Users\XXX\AppData\Local\Temp\test-381485.sh
clang.exe: note: diagnostic msg:

********************

-- 
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/20161014/b6dd204e/attachment.html>


More information about the llvm-bugs mailing list