
#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