GHC HEAD crashes during profiling when compiled with the `ipe` flavour transformer
Summary
Running ghc in profiling mode crashes ghci
with an SIGSEGV (Address boundary error) signal.
Steps to reproduce
Compile ghc like this:
> ./hadrian/build -j12 --flavour=perf+profiled_ghc+no_dynamic_ghc+no_dynamic_libs+ipe
Haskell file:
module MyLib (someFunc) where
someFunc :: IO ()
someFunc = putStrLn "someFunc"
Run ghci
on this file many times with profiling:
for i in (seq 1 10) 14:42:04
echo ":q" | _build/stage1/bin/ghc --interactive -O0 MyLib.hs +RTS -hi -l
end
(Alternative instructions)
> mkdir ghc-address-boundary-err
> cd ghc-address-boundary-err
> cabal init --lib -n --no-comments
# run this command repeatedly
> echo ":q" | <ghc-dir>/_build/stage1/bin/ghc --interactive -O0 src/MyLib.hs +RTS -hi -l
This will sometimes print terminated by signal SIGSEGV (Address boundary error)
.
Expected behavior
Shouldn't crash.
Environment
- GHC version used: GHC HEAD bc1d435e
Optional:
- Operating System: Linux hugin 6.9.7-arch1-1
- System Architecture: x86_64 GNU/Linux
Edited by Hannes Siebenhandl