[llvm-bugs] [Bug 43175] New: clang 9 rc2, openmp, regex from Visual Studio: Assertion failed: Ty && "Invalid GetElementPtrInst indices for type!"

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 30 02:53:50 PDT 2019


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

            Bug ID: 43175
           Summary: clang 9 rc2, openmp, regex from Visual Studio:
                    Assertion failed: Ty && "Invalid GetElementPtrInst
                    indices for type!"
           Product: clang
           Version: 9.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david.gabor.bodor at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Clang crashes when using openmp with the regex header from the Visual Studio
stdlib.

PS C:\git\crash> C:\PROGRA~1\LLVM_P~1\bin\clang++.exe -fopenmp -O0 -emit-llvm
-save-temps -c CrashWithRegex.cpp
Assertion failed: Ty && "Invalid GetElementPtrInst indices for type!", file
C:\src\llvm_package_900-rc2\llvm\include\llvm/IR/Instructions.h, line 868
Stack dump:
0.      Program arguments: C:\PROGRA~1\LLVM_P~1\bin\clang++.exe -cc1 -triple
x86_64-pc-windows-msvc19.22.27905 -emit-llvm-bc -emit-llvm-uselists
-save-temps=cwd -disable-free -main-file-name CrashWithRegex.cpp
-mrelocation-model pic -pic-level 2 -mthread-model posix -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64
-dwarf-column-info -coverage-notes-file C:\git\crash\CrashWithRegex.gcno
-resource-dir C:\PROGRA~1\LLVM_P~1\lib\clang\9.0.0 -O0 -fdeprecated-macro
-fdebug-compilation-dir C:\git\crash -ferror-limit 19 -fmessage-length 237
-fopenmp -fno-use-cxa-atexit -fms-extensions -fms-compatibility
-fms-compatibility-version=19.22.27905 -std=c++14 -fdelayed-template-parsing
-fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -disable-llvm-passes -faddrsig -o CrashWithRegex.tmp.bc -x
c++-cpp-output CrashWithRegex.ii
1.      <eof> parser at end of file
2.      Per-file LLVM IR generation
3.      C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\VC\Tools\MSVC\14.22.27905\include\regex:566:13:
Generating code for declaration 'std::_Is_word'
 #0 0x00007ff6696715d6 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x1de15d6)
 #1 0x00007ffacdccc31d (C:\Windows\System32\ucrtbase.dll+0x6c31d)
 #2 0x00007ffacdccd321 (C:\Windows\System32\ucrtbase.dll+0x6d321)
 #3 0x00007ffacdcced5e (C:\Windows\System32\ucrtbase.dll+0x6ed5e)
 #4 0x00007ffacdccec55 (C:\Windows\System32\ucrtbase.dll+0x6ec55)
 #5 0x00007ffacdccefe1 (C:\Windows\System32\ucrtbase.dll+0x6efe1)
 #6 0x00007ff6679b9474 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x129474)
 #7 0x00007ff6679b92a1 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x1292a1)
 #8 0x00007ff6679b9219 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x129219)
 #9 0x00007ff669922043 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x2092043)
#10 0x00007ff669bf77d3 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x23677d3)
#11 0x00007ff669a976a8 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x22076a8)
#12 0x00007ff669a85af3 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x21f5af3)
#13 0x00007ff669a7a64d (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x21ea64d)
#14 0x00007ff669a847d8 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x21f47d8)
#15 0x00007ff669c01d85 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x2371d85)
#16 0x00007ff669c073e7 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x23773e7)
#17 0x00007ff669bef450 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x235f450)
#18 0x00007ff669b8f276 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x22ff276)
#19 0x00007ff669b8c381 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x22fc381)
#20 0x00007ff669b95a22 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x2305a22)
#21 0x00007ff669a70d2f (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x21e0d2f)
#22 0x00007ff669a71774 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x21e1774)
#23 0x00007ff6698ae46f (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x201e46f)
#24 0x00007ff6698a675f (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x201675f)
#25 0x00007ff66989a9c2 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x200a9c2)
#26 0x00007ff66989a9ee (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x200a9ee)
#27 0x00007ff66989a9ee (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x200a9ee)
#28 0x00007ff66989a9ee (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x200a9ee)
#29 0x00007ff66989a9ee (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x200a9ee)
#30 0x00007ff66989a9ee (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x200a9ee)
#31 0x00007ff66989a9ee (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x200a9ee)
#32 0x00007ff6698998f1 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x20098f1)
#33 0x00007ff66bb2c4f5 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x429c4f5)
#34 0x00007ff66bb29a8b (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x4299a8b)
#35 0x00007ff66ab924d3 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x33024d3)
#36 0x00007ff669e30175 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x25a0175)
#37 0x00007ff669deb51a (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x255b51a)
#38 0x00007ff669e92ab8 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x2602ab8)
#39 0x00007ff66789771f (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x771f)
#40 0x00007ff667894c2d (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x4c2d)
#41 0x00007ff66bb4a608 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x42ba608)
#42 0x00007ffad0217bd4 (C:\Windows\System32\KERNEL32.DLL+0x17bd4)
#43 0x00007ffad076ce71 (C:\Windows\SYSTEM32\ntdll.dll+0x6ce71)
clang++: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 9.0.0 (tags/RELEASE_900/rc2)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\PROGRA~1\LLVM_P~1\bin
clang++: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang++: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg:
C:\Users\dragonfi\AppData\Local\Temp\CrashWithRegex-307288.cpp
clang++: note: diagnostic msg:
C:\Users\dragonfi\AppData\Local\Temp\CrashWithRegex-307288.sh
clang++: 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/20190830/1f08cbd9/attachment-0001.html>


More information about the llvm-bugs mailing list