[bug] windows-2022 can no longer run applications compiled with included mingw64 #6412
Closed
2 of 11 tasks
Labels
Area: C/C++
bug report
investigate
Collect additional information, like space on disk, other tool incompatibilities etc.
OS: Windows
Description
When you run a C/C++ executable compiled with the included mingw64, you would expect it to run without any issues on the same machine, instead of
silentlyfailing.My particular workflow was working completely fine, but now, without any changes to my workflow, everything I build with mingw64 on Github runners
silentlycrashes immediately.Solution:
It's probably an issue with the MinGW DLLs not being included in the path.
(not having access or having outdated versions of MinGW DLLs can cause the executable to crash)
MinGW DLLs live at
C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin
.Benefits of keeping change
Not having the DLLs in the path would make for more realistic testing.
Consequences of keeping change
The drawback is that you can't use mingw64 to easily test C/C++ code without manually changing the path yourself or searching for and copying the DLLs before running your code. This requirement is not made clear in build logs
(completely silent error).Platforms affected
Runner images affected
Image version and build link
Broken as of 2.298.2
Is it regression?
Yes, but hard to tell what runner version it broke due to caching.
My cache recently expired, so it could be any version after
windows-latest
Jun 8.windows-latest
Jun 8 - last successful build with cache misswindows-2022
2.297.0 - last successful build with cache hitExpected behavior
When you run a C/C++ executable compiled with the included mingw64, you would expect it to run without any issues on the same machine, instead of
silentlyfailing.Actual behavior
In a workflow, attempting run a C/C++ executable compiled with the included mingw64
silentlyfails (even if done immediately after building).Repro steps
Steps to reproduce the behavior:
Edit:
This doesn't solve the issue of the resulting executables immediately crashing, but a slight correction:
Maybe the workflow will stop. The executable would crash with an exitcode of something like -12345. It's just that it doesn't stop my workflow because of how I invoke them.
TL;DR - The runner cannot run executables compiled with the included mingw64. If you try to run a resulting executable, the executable will instantly crash.
The text was updated successfully, but these errors were encountered: