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

GHC ghc-devs at haskell.org
Sun Aug 17 07:51:51 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:                 |
----------------------------------------+----------------------------------

Comment (by snoyberg):

 I've attached a new file, vector-bug-fixed.hs, which (inspired by some
 attoparsec code) thaws an immutable vector before writing to it, which
 seems to address the issue. I have not investigated the performance impact
 of this.

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


More information about the ghc-tickets mailing list