[GHC] #15728: Program with safe array operations triggers debug runtime assertion

GHC ghc-devs at haskell.org
Tue Oct 9 20:44:28 UTC 2018


#15728: Program with safe array operations triggers debug runtime assertion
-------------------------------------+-------------------------------------
        Reporter:  osa1              |                Owner:  (none)
            Type:  bug               |               Status:  closed
        Priority:  highest           |            Milestone:
       Component:  Runtime System    |              Version:  8.6.1
      Resolution:  invalid           |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 So why don't we get an array-bounds check?

 Or is there no check?  In which case it should be `unsafeWriteSmallArray`!

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


More information about the ghc-tickets mailing list