[llvm-bugs] [Bug 24408] New: [mingw64] unordered_map throws segv from libstdc++-6.dll when app is compiled with Clang 3.6.2
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Aug 9 12:53:17 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24408
Bug ID: 24408
Summary: [mingw64] unordered_map throws segv from
libstdc++-6.dll when app is compiled with Clang 3.6.2
Product: clang
Version: 3.6
Hardware: PC
OS: other
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: iamvfx at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
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.
--
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/20150809/aed569a7/attachment.html>
More information about the llvm-bugs
mailing list