<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 --- - [mingw64] unordered_map throws segv from libstdc++-6.dll when app is compiled with Clang 3.6.2"
href="https://llvm.org/bugs/show_bug.cgi?id=24408">24408</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[mingw64] unordered_map throws segv from libstdc++-6.dll when app is compiled with Clang 3.6.2
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.6
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</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>iamvfx@gmail.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>Repro code:
```
#include <unordered_map>
#include <string>
int main()
{
std::unordered_map<std::string, int> test;
test["cool"] = 5;
}
```
Used commands to compile and run executable:
```
clang++ -std=c++11 main.cpp
a.exe
```
Backtrace:
```
Program received signal SIGSEGV, Segmentation fault.
0x000000006fc9a07b in ?? () from C:\msys64\mingw64\bin\libstdc++-6.dll
(gdb) bt
#0 0x000000006fc9a07b in ?? () from C:\msys64\mingw64\bin\libstdc++-6.dll
#1 0x00000000004019c6 in _M_insert_unique_node ()
at C:\msys64\mingw64\bin/../include/c++/5.2.0\bits/hashtable.h:1594
#2 0x0000000000401962 in operator[] ()
at C:\msys64\mingw64\bin/../include/c++/5.2.0\bits/hashtable_policy.h:625
#3 0x0000000000401622 in operator[] ()
at C:\msys64\mingw64\bin/../include/c++/5.2.0\bits/unordered_map.h:672
#4 main () at ../src\main.cpp:7
```
Clang version:
```
clang version 3.6.2 (tags/RELEASE_362/final)
Target: x86_64-w64-windows-gnu
Thread model: posix
```
Clang and GCC were installed from MSYS2.</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>