[GHC] #8834: 64-bit windows cabal.exe segfaults in GC

GHC ghc-devs at haskell.org
Thu Mar 13 14:07:29 UTC 2014


#8834: 64-bit windows cabal.exe segfaults in GC
----------------------------------+----------------------------------
        Reporter:  awson          |            Owner:
            Type:  bug            |           Status:  patch
        Priority:  highest        |        Milestone:  7.8.1
       Component:  Compiler       |          Version:  7.8.1-rc2
      Resolution:                 |         Keywords:
Operating System:  Windows        |     Architecture:  x86_64 (amd64)
 Type of failure:  Runtime crash  |       Difficulty:  Unknown
       Test Case:                 |       Blocked By:
        Blocking:                 |  Related Tickets:
----------------------------------+----------------------------------

Comment (by awson):

 Yes, they are in RTS. More precise location is rts/sm/Evac.c line 390.

 Also I think this bug is triggered near foreign `memchr` call in function
 `elemIndex` from `Data.ByteString` module in `bytestring` package, which
 is inlined down to `lines` function from `Data.ByteString.Char8`.

 Also I checked this bug is not triggered if relevant modules from
 `bytestring` package are compiled with `-O` flag instead of `-O2`, hence
 this bug could be more ubiquitous if more applications code was compiled
 with `-O2`, perhaps.

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


More information about the ghc-tickets mailing list