[llvm-bugs] [Bug 25537] New: [mingw] unordered_map crashes clang with -O2 optimisation

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Nov 15 11:16:24 PST 2015


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

            Bug ID: 25537
           Summary: [mingw] unordered_map crashes clang with -O2
                    optimisation
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: vit9696 at avp.su
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15292
  --> https://llvm.org/bugs/attachment.cgi?id=15292&action=edit
t-089b7b

Clang appears to badly dislike -O2 (and higher) when compiling code with
unordered_maps. My package manager is msys2 on Windows 8.1, and I do not have
debug symbols for the binary. Postprocessed code and expanded arguments are
included in the attachement. Could be a duplicate, but I failed to find any.

#include <unordered_map>

int main() {
        std::unordered_map <int, int> m;
}

clang++ -c  -std=c++11 -O2  t.cpp
0x04F7D8D8 (0x04F7D8D1 0x00000001 0x0028E040 0x04FA3C38) <unknown module>
0x0028E409 (0x00000001 0x0028E040 0x04FA3C38 0x0000000A) <unknown module>
0x04F7D8D1 (0x01000000 0x00000000 0xFC000000 0x00FFFFFF) <unknown module>
clang++.exe: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.7.0 (tags/RELEASE_370/final)
Target: i686-w64-windows-gnu
Thread model: posix
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:\msys64\tmp\t-089b7b.cpp
clang++.exe: note: diagnostic msg: C:\msys64\tmp\t-089b7b.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/20151115/5e68c631/attachment-0001.html>


More information about the llvm-bugs mailing list