#3967: Adding heap profiling RTS options causes segfault
-------------------------------+--------------------------------------------
    Reporter:  tibbe           |       Owner:               
        Type:  bug             |      Status:  new          
    Priority:  normal          |   Component:  Profiling    
     Version:  6.13            |    Keywords:               
          Os:  Linux           |    Testcase:               
Architecture:  x86_64 (amd64)  |     Failure:  Runtime crash
-------------------------------+--------------------------------------------
 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.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3967>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to