[GHC] #9446: Segfault when using unsafe vector operations

GHC ghc-devs at haskell.org
Fri Aug 15 13:31:47 UTC 2014


#9446: Segfault when using unsafe vector operations
----------------------------------------+----------------------------------
              Reporter:  snoyberg       |            Owner:
                  Type:  bug            |           Status:  closed
              Priority:  normal         |        Milestone:
             Component:  Compiler       |          Version:  7.8.3
            Resolution:  invalid        |         Keywords:
      Operating System:  Linux          |     Architecture:  x86_64 (amd64)
       Type of failure:  Runtime crash  |       Difficulty:  Unknown
             Test Case:                 |       Blocked By:
              Blocking:                 |  Related Tickets:
Differential Revisions:                 |
----------------------------------------+----------------------------------
Changes (by rwbarton):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 `slice` is non-copying, and so `unsafeFreeze` on a `slice` freezes the
 underlying vector. You can't then later write to the mutable vector that
 has been frozen without confusing the GC.

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


More information about the ghc-tickets mailing list