id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
3967,Adding heap profiling RTS options causes segfault,tibbe,,"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.
",bug,closed,normal,,Profiling,6.13,worksforme,,,Linux,x86_64 (amd64),Runtime crash,,,,,
