Closed janvogt closed 2 years ago
I think given GHC 8.10.7 is quite old now, and Apple Silicon improvements were advertised in the later 9.0 and 9.2 releases, I'd suggest trying one of those. Ghcid does a lot of :reload
and that can stress the runtime linker, which is both pretty custom and a fertile source of bugs.
Ok, got you. Thanks for the quick response!
I have to wait a little bit longer to switch to ghc 9.0, but a wontfix here is fine for me. I will just use x86_64 till I am able to upgrade.
Observation
When using ghcid natively on apple silicon (using nix with
system = "aarch64-darwin"
), ghcid crashes after all tests ran.What I've tried
system = "x86_64-darwin"
. Doing this the crash disappears.Conclusion
This points to ghcid triggering a GHC bug. Presumably, when watching for file changes, as the tests complete successfully befor crashing and using cabal directly works fine.
Next steps
To report the GHC bug, I'd need to provide a minimal repro of the relevant ghcid part... Unfortunately, I am not confident I'll be able to produce this myself. For now, using ghcid through rossetta 2 is an easy solution, so it's not a high priority issue, I guess. However, I'd be happy to help in any way I can to further research this.