"Access violation in generated code when reading 0xffffffffffffffff" on windows
When trying to port ghcup to windows, I have many cases of defunct binaries.
But most of the time they don't output anything and have non-zero exit status. When I run them via
strace however, they do work.
These were built with cabal-install-220.127.116.11 and GHC-8.10.4, 8.10.5, 9.0.1. All the same. A custom msys2 was installed as per https://gitlab.haskell.org/haskell/ghcup-hs/-/blob/0bc5c6a0fe98c956f267ce63bb5f3f63fdf1252b/bootstrap-haskell.ps1#L124
This binary seems unaffected: https://downloads.haskell.org/~ghcup/tmp/x86_64-mingw64-ghcup-5.exe
These are all affected: https://downloads.haskell.org/ghcup/tmp/defunct/
It's basically the same code.
Here's a gdb trace: https://gist.github.com/hasufell/8ba1e2041dda7163561a759b0446c1fa