Ticket #3967 (closed bug: worksforme)
Adding heap profiling RTS options causes segfault
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
