Skip to content

Segment fault on Windows #126814

@angelog0

Description

@angelog0

I installed flang on Windows with MSYS2/UCRT64 and trying to build a simple program produced the following:

$ flang earth_gravit.f90 -o earth_gravit-flang.out
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Exception Code: 0xC0000005
 #0 0x00007ff62ca72038 (C:\msys64\ucrt64\bin\flang.exe+0x7f2038)
 #1 0x00007ff62ca4076c (C:\msys64\ucrt64\bin\flang.exe+0x7c076c)
 #2 0x00007ff62ca40157 (C:\msys64\ucrt64\bin\flang.exe+0x7c0157)
 #3 0x00007ff62ca499e0 (C:\msys64\ucrt64\bin\flang.exe+0x7c99e0)
 #4 0x00007ff62dbb34f4 (C:\msys64\ucrt64\bin\flang.exe+0x19334f4)
 #5 0x00007ff62cf3b7a7 (C:\msys64\ucrt64\bin\flang.exe+0xcbb7a7)
 #6 0x00007ff62cac4cfc (C:\msys64\ucrt64\bin\flang.exe+0x844cfc)
 #7 0x00007ff62cac539d (C:\msys64\ucrt64\bin\flang.exe+0x84539d)
 #8 0x00007ff62cf3c434 (C:\msys64\ucrt64\bin\flang.exe+0xcbc434)
 #9 0x00007ff62cf3b6c2 (C:\msys64\ucrt64\bin\flang.exe+0xcbb6c2)
#10 0x00007ff62cab59ee (C:\msys64\ucrt64\bin\flang.exe+0x8359ee)
#11 0x00007ff62cab876d (C:\msys64\ucrt64\bin\flang.exe+0x83876d)
#12 0x00007ff62cab81ea (C:\msys64\ucrt64\bin\flang.exe+0x8381ea)
#13 0x00007ff62cab813e (C:\msys64\ucrt64\bin\flang.exe+0x83813e)
#14 0x00007ffe108654bc (C:\msys64\ucrt64\bin\libwinpthread-1.dll+0x54bc)
#15 0x00007ff62cab808f (C:\msys64\ucrt64\bin\flang.exe+0x83808f)
#16 0x00007ff62cab84de (C:\msys64\ucrt64\bin\flang.exe+0x8384de)
#17 0x00007ff62cab85b0 (C:\msys64\ucrt64\bin\flang.exe+0x8385b0)
#18 0x00007ffda1b4e6e8 (C:\msys64\ucrt64\bin\libLLVM-19.dll+0x17be6e8)
#19 0x00007ffda2c862b6 (C:\msys64\ucrt64\bin\libLLVM-19.dll+0x28f62b6)
#20 0x00007ffe238737b0 (C:\WINDOWS\System32\ucrtbase.dll+0x37b0)
#21 0x00007ffe242de8d7 (C:\WINDOWS\System32\KERNEL32.DLL+0x2e8d7)
#22 0x00007ffe2637bf2c (C:\WINDOWS\SYSTEM32\ntdll.dll+0xbbf2c)
flang: error: flang frontend command failed due to signal (use -v to see invocation)
flang version 19.1.7
Target: x86_64-w64-windows-gnu
Thread model: posix
InstalledDir: C:/msys64/ucrt64/bin
flang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
flang: note: diagnostic msg: C:/msys64/tmp/earth_gravit-fc2427
flang: note: diagnostic msg: C:/msys64/tmp/earth_gravit-fc2427.sh
flang: note: diagnostic msg:

********************
Segmentation fault

Trying for a second time the same command worked and produced a working executable.

All the needed files in the tarball

earth_gravit.tar.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashPrefer [crash-on-valid] or [crash-on-invalid]flangFlang issues not falling into any other category

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions