Adding heap profiling RTS options causes segfault
Adding either -hy or -hc causes a segfault in the thread-delay benchmark. To reproduce:
git clone git://github.com/tibbe/event.git
cd event
autoreconf
cabal configure --enable-library-profiling
cabal build
$EDITOR benchmarks/Makefile
Change the last line in the following section:
thread-delay: ghc-flags += -package stm
thread-delay: $(lib) Args.o ThreadDelay.o
ranlib $(lib)
$(ghc) $(ghc-flags) -threaded -o $@ $(filter %.o,$^) $(lib)
to
$(ghc) $(ghc-flags) -threaded -rtsopts -o $@ $(filter %.o,$^) $(lib)
This enables the +RTS options. Finally, run:
make -C benchmarks/ clean thread-delay ENABLE_PROFILING=1
./benchmarks/thread-delay -n50000 +RTS -hy
This gives me a segfault.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.13 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Profiling |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |