Windows 64-bit GHC HEAD segfaults on the code with a lot of TH stuff.
Currently GHC HEAD segfaults on Windows 64-bit when compiling language-c-quote-0.11.7.1 package.
It spits something like Access violation in generated code when executing data at 0000000102fbcf40 (I'm using my #13108 (closed) patch here).
After repeated run, when GHC hasn't recompile all files, but only part of them, it succeeds.
If I delete intermediate files and repeat clean compilation, it segfaults again.
Haddock always segfaults (since it always recompile all files), more details here: https://github.com/haskell/haddock/pull/568.
Since these access violations consistently happen on executable data at virtual addresses above 4GB mark, this very much smells as a GHC bytecode generator/linker issue.
I believe, GHC and Haddock succeed exactly when all executable addresses stay below 4GB mark.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |