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

GHC ghc-devs at haskell.org
Tue Oct 9 20:50:45 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 osa1):

 That's because the `primitive` library is a very thin wrapper around GHC
 primops, and GHC primops (`readArray#` etc.) don't do bounds checking.

 FWIW I just opened a ticket:
 https://github.com/haskell/primitive/issues/212 at the very least we
 should mention this in primitive's haddocks.

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


More information about the ghc-tickets mailing list