<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Compiler crash when compiling seh0034.c of github microsoft compiler-tests"
   href="https://bugs.llvm.org/show_bug.cgi?id=50855">50855</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Compiler crash when compiling seh0034.c of github microsoft compiler-tests
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tao.pan@intel.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The test c file is in
<a href="https://github.com/microsoft/compiler-tests/blob/master/seh/seh0034.c">https://github.com/microsoft/compiler-tests/blob/master/seh/seh0034.c</a>

$ /c/work/llvm/llvm-project-4/build/Release/bin/clang-cl.exe seh0034.c
-fuse-ld=lld
seh0034.c(33,7): warning: jump out of __finally block has undefined behavior
[-Wjump-seh-finally]
      continue;
      ^
seh0034.c(40,48): warning: format specifies type 'int' but the argument has
type 'LONG' (aka 'long') [-Wformat]
    printf("TEST 34 FAILED. Counter = %d\n\r", Counter);
                                      ~~       ^~~~~~~
                                      %ld
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments:
C:\\work\\llvm\\llvm-project-4\\build\\Release\\bin\\clang-cl.exe -cc1 -triple
x86_64-pc-windows-msvc19.29.30037 -emit-obj -mrelax-all
-mincremental-linker-compatible --mrelax-relocations -disable-free
-disable-llvm-verifier -discard-value-names -main-file-name seh0034.c
-mrelocation-model pic -pic-level 2 -mframe-pointer=none -relaxed-aliasing
-fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables
-target-cpu x86-64 -mllvm -x86-asm-syntax=intel -tune-cpu generic -D_MT
-flto-visibility-public-std --dependent-lib=libcmt --dependent-lib=oldnames
-stack-protector 2 -fms-volatile -fdiagnostics-format msvc
-fcoverage-compilation-dir=D:\\llvm\\compiler-tests\\seh-clang-cl -resource-dir
C:\\work\\llvm\\llvm-project-4\\build\\Release\\lib\\clang\\13.0.0
-internal-isystem
C:\\work\\llvm\\llvm-project-4\\build\\Release\\lib\\clang\\13.0.0\\include
-internal-isystem "C:\\Program Files (x86)\\Microsoft Visual
Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30037\\include"
-internal-isystem "C:\\Program Files (x86)\\Microsoft Visual
Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30037\\atlmfc\\include"
-internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\10\\Include\\10.0.19041.0\\ucrt" -internal-isystem "C:\\Program Files
(x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\shared" -internal-isystem
"C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\um"
-internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\10\\Include\\10.0.19041.0\\winrt"
-fdebug-compilation-dir=D:\\llvm\\compiler-tests\\seh-clang-cl -ferror-limit 19
-fno-use-cxa-atexit -fms-extensions -fms-compatibility
-fms-compatibility-version=19.29.30037 -fdelayed-template-parsing -faddrsig -o
C:\\Users\\taopan\\AppData\\Local\\Temp\\seh0034-4bae21.obj -x c seh0034.c
1.      <eof> parser at end of file
2.      seh0034.c:15:5: LLVM IR generation of declaration 'main'
3.      seh0034.c:15:5: Generating code for declaration 'main'
4.      seh0034.c:23:46: LLVM IR generation of compound statement ('{}')
5.      seh0034.c:30:13: LLVM IR generation of compound statement ('{}')
 #0 0x00007ff6f005b150
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x70b150)
 #1 0x00007ff6f009e719
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x74e719)
 #2 0x00007ff6efdf1c6c
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x4a1c6c)
 #3 0x00007ff6f0a5cc80
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x110cc80)
 #4 0x00007ff6f0a5712b
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x110712b)
 #5 0x00007ff6f0a573f5
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x11073f5)
 #6 0x00007ff6f0a56f96
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x1106f96)
 #7 0x00007ff6f0a573f5
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x11073f5)
 #8 0x00007ff6f0838dd7
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0xee8dd7)
 #9 0x00007ff6f083856a
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0xee856a)
#10 0x00007ff6f0a57728
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x1107728)
#11 0x00007ff6f0a56f96
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x1106f96)
#12 0x00007ff6f0a573f5
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x11073f5)
#13 0x00007ff6f0a54de8
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x1104de8)
#14 0x00007ff6f0a5754c
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x110754c)
#15 0x00007ff6f0a53c80
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x1103c80)
#16 0x00007ff6f085a2fe
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0xf0a2fe)
#17 0x00007ff6f075d0a8
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0xe0d0a8)
#18 0x00007ff6f075cc9f
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0xe0cc9f)
#19 0x00007ff6f075c8fa
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0xe0c8fa)
#20 0x00007ff6f075ef24
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0xe0ef24)
#21 0x00007ff6f2568a8f
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x2c18a8f)
#22 0x00007ff6f2564716
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x2c14716)
#23 0x00007ff6f171c127
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x1dcc127)
#24 0x00007ff6f0cb1797
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x1361797)
#25 0x00007ff6f2563bf8
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x2c13bf8)
#26 0x00007ff6f0cb1212
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x1361212)
#27 0x00007ff6f0c7bbcf
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x132bbcf)
#28 0x00007ff6f0d1458c
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x13c458c)
#29 0x00007ff6ef9ae3f4
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x5e3f4)
#30 0x00007ff6ef9a94a7
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x594a7)
#31 0x00007ff6ef9aac30
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x5ac30)
#32 0x00007ff6f22d2c10
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x2982c10)
#33 0x00007fff29c87034 (C:\Windows\System32\KERNEL32.DLL+0x17034)
#34 0x00007fff2b0e2651 (C:\Windows\SYSTEM32\ntdll.dll+0x52651)
clang-cl: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 13.0.0 (<a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
30f591c3869f3bbe6eca1249dcef1b8337312de6)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\work\llvm\llvm-project-4\build\Release\bin
clang-cl: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-cl: note: diagnostic msg:
C:\Users\taopan\AppData\Local\Temp\seh0034-1b2e4e.c
clang-cl: note: diagnostic msg:
C:\Users\taopan\AppData\Local\Temp\seh0034-1b2e4e.sh
clang-cl: note: diagnostic msg:

********************</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>