[GHC] #8402: throwTo segfaults under -prof -threaded -with-rtsopts=N2

GHC ghc-devs at haskell.org
Tue Oct 22 19:54:31 UTC 2013


#8402: throwTo segfaults under -prof -threaded -with-rtsopts=N2
----------------------------------+----------------------------------
        Reporter:  akio           |            Owner:
            Type:  bug            |           Status:  new
        Priority:  highest        |        Milestone:  7.8.1
       Component:  Profiling      |          Version:  7.7
      Resolution:                 |         Keywords:
Operating System:  Linux          |     Architecture:  x86_64 (amd64)
 Type of failure:  Runtime crash  |       Difficulty:  Unknown
       Test Case:                 |       Blocked By:
        Blocking:  8453           |  Related Tickets:
----------------------------------+----------------------------------

Comment (by simonmar):

 You're right.  I think the code should be:

 {{{
 #if defined(PROFILING) && (!defined(DEBUG) || defined(THREADED_RTS))
     // see Note [zeroing slop]
     if (era <= 0) return;
 #endif
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8402#comment:19>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list