Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flang] Fir/memory-allocation-opt.fir started randomly failing in Windows pre-merge checks #83534

Closed
jeanPerier opened this issue Mar 1, 2024 · 2 comments

Comments

@jeanPerier
Copy link
Contributor

fir-opt crashes in memory-allocation-opt.fir test on windows in the Github pre-merge checks:

https://buildkite.com/llvm-project/github-pull-requests/builds/42658#018df0e3-9218-455d-be9f-2b531f77ac61

FAIL: Flang :: Fir/memory-allocation-opt.fir (359 of 2609)
******************** TEST 'Flang :: Fir/memory-allocation-opt.fir' FAILED ********************
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
fir-opt --memory-allocation-opt="dynamic-array-on-heap=true maximum-array-alloc-size=1024" C:\ws\src\flang\test\Fir\memory-allocation-opt.fir | c:\ws\src\build\bin\filecheck.exe C:\ws\src\flang\test\Fir\memory-allocation-opt.fir
# executed command: fir-opt '--memory-allocation-opt=dynamic-array-on-heap=true maximum-array-alloc-size=1024' 'C:\ws\src\flang\test\Fir\memory-allocation-opt.fir'
# .---command stderr------------
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
# | Exception Code: 0xC0000005Exception Code: 0xC0000005
# |
# |  #0 0x00007ff7fceb586b (c:\ws\src\build\bin\fir-opt.exe+0x17586b)
# |  #1 0x00007ff7fceb5719 (c:\ws\src\build\bin\fir-opt.exe+0x175719)
# |  #2 0x00007ff7fdbc4a28 (c:\ws\src\build\bin\fir-opt.exe+0xe84a28)
# |  #3 0x00007ff7fdbc62fa (c:\ws\src\build\bin\fir-opt.exe+0xe862fa)
# |  #4 0x00007ff7fdba4bac (c:\ws\src\build\bin\fir-opt.exe+0xe64bac)
# |  #5 0x00007ff7fdba00da (c:\ws\src\build\bin\fir-opt.exe+0xe600da)
# |  #6 0x00007ff7fdba09f5 (c:\ws\src\build\bin\fir-opt.exe+0xe609f5)
# |  #7 0x00007ff7fdb9c3a3 (c:\ws\src\build\bin\fir-opt.exe+0xe5c3a3)
# |  #8 0x00007ff7fceb654e (c:\ws\src\build\bin\fir-opt.exe+0x17654e)
# |  #9 0x00007ff7fd8c6cf7 (c:\ws\src\build\bin\fir-opt.exe+0xb86cf7)
# | #10 0x00007ff7fd8cc7c7 (c:\ws\src\build\bin\fir-opt.exe+0xb8c7c7)
# | #11 0x00007ff7fd8ce2d9 (c:\ws\src\build\bin\fir-opt.exe+0xb8e2d9)
# | #12 0x00007ff7fd8c8a8b (c:\ws\src\build\bin\fir-opt.exe+0xb88a8b)
# | #13 0x00007ff7fd8b615c (c:\ws\src\build\bin\fir-opt.exe+0xb7615c)
# | #14 0x00007ff7fdcc16bf (c:\ws\src\build\bin\fir-opt.exe+0xf816bf)
# | #15 0x00007ff7fdcc0bc8 (c:\ws\src\build\bin\fir-opt.exe+0xf80bc8)
# | #16 0x00007ffbd386268a (C:\Windows\System32\ucrtbase.dll+0x2268a)
# | #17 0x00007ffbd3a27ac4 (C:\Windows\System32\KERNEL32.DLL+0x17ac4)
# | #18 0x00007ffbddb7a4e1 (C:\Windows\SYSTEM32\ntdll.dll+0x5a4e1)
# `-----------------------------
# error: command failed with exit status: 0xc0000005
# executed command: 'c:\ws\src\build\bin\filecheck.exe' 'C:\ws\src\flang\test\Fir\memory-allocation-opt.fir'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  c:\ws\src\build\bin\filecheck.exe C:\ws\src\flang\test\Fir\memory-allocation-opt.fir
# `-----------------------------

The test and pass have not changed in a couple years, and valgrind is green on linux, so it is not immediately clear what is wrong. The pass is currently not used in flang end-to-end compilation flow.

jeanPerier added a commit to jeanPerier/llvm-project that referenced this issue Mar 1, 2024
It is randomly failing in windows pre-merge checks and
causing noise in Github PRs.

Not clear why it is crashing on windows, issue opened:
llvm#83534
@vzakhari
Copy link
Contributor

vzakhari commented Mar 2, 2024

I reproduced it today with VS2019 Release build. It does not reproduce with Debug and RelWithDebInfo builds.

jeanPerier added a commit that referenced this issue Mar 4, 2024
It is randomly failing in windows pre-merge checks and causing noise in
Github PRs.

Not clear why it is crashing on windows, issue opened:
#83534
@jeanPerier
Copy link
Contributor Author

Fixed by #83768. Thank you @matthias-springer !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants