<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - Fatal crash when targeting thumbv7-windows-msvc"
href="https://llvm.org/bugs/show_bug.cgi?id=30706">30706</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Fatal crash when targeting thumbv7-windows-msvc
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.9
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>release blocker
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>emmanuel.stapf@xenko.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=17449" name="attach_17449" title="Crash Dump file">attachment 17449</a> <a href="attachment.cgi?id=17449&action=edit" title="Crash Dump file">[details]</a></span>
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
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> 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:
********************</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>