internal error when I pass -hT to a profiling build
Summary
I get
decompress/compress
lzlib-test: internal error: dumpCensus; doHeapProfile
(GHC version 8.8.1 for x86_64_unknown_linux)
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
Aborted (core dumped)
when trying to run a test suite with +RTS -hT
Steps to reproduce
Build lzlib with
cabal test --enable-profiling
and download test data with
make
Then run the generated executable with:
dist-newstyle/build/x86_64-linux/ghc-8.8.1/lzlib-0.3.0.5/t/lzlib-test/build/lzlib-test/lzlib-test +RTS -hT
Expected behavior
It should generate a heap profile and not fail with such an error.
It works fine if I pass -h
instead of -hT
.
Environment
- GHC version used: 8.8.1, 8.8.2 release candidate
I can't reproduce this with 8.6.5 or earlier. It seems to be fixed in 8.10.1
Optional:
- Operating System: Linux
- System Architecture: x86_64, aarch64