[llvm-bugs] [Bug 43788] New: clang-cl crashes during optimization
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Oct 24 07:55:06 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43788
Bug ID: 43788
Summary: clang-cl crashes during optimization
Product: clang
Version: 9.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Driver
Assignee: unassignedclangbugs at nondot.org
Reporter: Zhuravlev at rutoken.ru
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
Created attachment 22716
--> https://bugs.llvm.org/attachment.cgi?id=22716&action=edit
command line
Works fine without optimization.
#include <vector>
#include <list>
#include <memory>
#include <exception>
int main() {
std::unique_ptr<std::vector<int>> kk;
try {
kk.reset(new std::vector<int>(2));
std::list<int> ll(kk->begin(), kk->end());
std::reverse(ll.begin(), ll.end());
}
catch (std::exception&) {
return 0;
}
return 1;
}
"C:\Program Files\LLVMv9\bin\clang-cl.exe" 1.cpp /EHsc /O2
Stack dump:
0. Program arguments: C:\Program Files\LLVMv9\bin\clang-cl.exe -cc1
-triple x86_64-pc-windows-msvc19.22.27905 -emit-obj
-mincremental-linker-compatible -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name 1.cpp -mrelocation-model pic -pic-level 2
-mthread-model posix -relaxed-aliasing -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -mllvm
-x86-asm-syntax=intel -D_MT -flto-visibility-public-std --dependent-lib=libcmt
--dependent-lib=oldnames -stack-protector 2 -fcxx-exceptions -fexceptions
-fexternc-nounwind -fms-volatile -fdiagnostics-format msvc -dwarf-column-info
-momit-leaf-frame-pointer -ffunction-sections -resource-dir C:\Program
Files\LLVMv9\lib\clang\9.0.0 -internal-isystem C:\Program
Files\LLVMv9\lib\clang\9.0.0\include -internal-isystem C:\Program Files
(x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.22.27905\include
-internal-isystem C:\Program Files (x86)\Windows
Kits\10\Include\10.0.18362.0\ucrt -internal-isystem C:\Program Files
(x86)\Windows Kits\10\include\10.0.18362.0\shared -internal-isystem C:\Program
Files (x86)\Windows Kits\10\include\10.0.18362.0\um -internal-isystem
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -O2
-fdeprecated-macro -fdebug-compilation-dir C:\Projects\test\clang -ferror-limit
19 -fmessage-length 120 -fno-use-cxa-atexit -fms-extensions -fms-compatibility
-fms-compatibility-version=19.22.27905 -std=c++14 -fdelayed-template-parsing
-fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-loops -vectorize-slp -faddrsig -o
C:\Users\ZHURAV~1\AppData\Local\Temp\1-caf219.obj -x c++ 1.cpp
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module '1.cpp'.
4. Running pass 'Combine redundant instructions' on function '@main'
#0 0x00007ff7722f011d C:\Program Files\LLVMv9\bin\clang-cl.exe 0x132011d
C:\Program Files\LLVMv9\bin\clang-cl.exe 0x1320bc3
#1 0x00007ff7722f011d C:\Program Files\LLVMv9\bin\clang-cl.exe 0x116d969
C:\Program Files\LLVMv9\bin\clang-cl.exe 0xe6f57b
#2 0x00007ff7722f011d C:\Program Files\LLVMv9\bin\clang-cl.exe 0x116e1b0
C:\Program Files\LLVMv9\bin\clang-cl.exe 0x1860f45
#3 0x00007ff7722f011d C:\Program Files\LLVMv9\bin\clang-cl.exe 0x33c9be2
C:\Program Files\LLVMv9\bin\clang-cl.exe 0x275b4c3
#4 0x00007ff7722f011d C:\Program Files\LLVMv9\bin\clang-cl.exe 0x1cb3492
C:\Program Files\LLVMv9\bin\clang-cl.exe 0x1c771cf
#5 0x00007ff7722f011d C:\Program Files\LLVMv9\bin\clang-cl.exe 0x1d09c87
C:\Program Files\LLVMv9\bin\clang-cl.exe 0x6e87
#6 0x00007ff7722f011d C:\Program Files\LLVMv9\bin\clang-cl.exe 0x4564
C:\Program Files\LLVMv9\bin\clang-cl.exe 0x33dda20
#7 0x00007ff7722f011d (C:\Program Files\LLVMv9\bin\clang-cl.exe+0x132011d)
#8 0x00007ff7722f0bc3 (C:\Program Files\LLVMv9\bin\clang-cl.exe+0x1320bc3)
0x00007FF7722F011D (0x0000024248BA2B48 0x000056A6D16F395C 0x0000000000000000
0x0000024248BA2B48)
0x00007FF7722F0BC3 (0x0000000000000000 0x00007FF772203DF6 0x000000BD5578C6F8
0x0000024248EABE70)
0x00007FF77213D969 (0x0000000000000000 0x0000000000000000 0x0000024248F9FD78
0x0000024248F9FD70)
0x00007FF771E3F57B (0x0000001000000000 0x000056A6D16F3F8C 0x0000000000000000
0x000000000000000F)
0x00007FF77213E1B0 (0x0000000000000000 0x0000024200000000 0x0000000000000000
0x0000024247B59140)
0x00007FF772830F45 (0x000056A6D16F461C 0x000000BD5578D6F8 0x000056A6D16F2FCC
0x000000BD5578D6F8)
0x00007FF774399BE2 (0x000000BD5578D918 0x000000BD5578D928 0x000000BD5578D958
0x00007FF772C442AA)
0x00007FF77372B4C3 (0x0000000000000020 0x000056A6D16F2DEC 0x0000000000000000
0x000000000000000F)
0x00007FF772C83492 (0x0000024247AB2370 0x00007FF7743AD7F3 0x00000000000000C0
0x000000BD5578D948)
0x00007FF772C471CF (0x0000024247AAE701 0x000000BD00000000 0x000000BD5578E801
0x0000000000000000)
0x00007FF772CD9C87 (0x000000BD5578DB70 0x000000000000007E 0x0000000000000000
0x0000024247A7A200)
0x00007FF770FD6E87 (0x0000000000000000 0x0000024247A70000 0x00000000F80000F8
0x00007FF8A30EDA21)
0x00007FF770FD4564 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000)
0x00007FF7743ADA20 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000)
0x00007FF8A0A47974 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000), BaseThreadInitThunk() + 0x14 bytes(s)
0x00007FF8A314A271 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000), RtlUserThreadStart() + 0x21 bytes(s)
clang-cl: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 9.0.0 (tags/RELEASE_900/final)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVMv9\bin
--
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/20191024/ab41cfdf/attachment.html>
More information about the llvm-bugs
mailing list