Skip to content

internal error: getMBlock: mmap: Operation not permitted

I get the following:

<interactive>: internal error: getMBlock: mmap: Operation not permitted
    (GHC version 7.4.2 for i386_unknown_linux)
    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
Aborted (core dumped)

when running

parseOnly queryKeyParse (Data.Text.pack "hello")

where:

queryKeyParse :: Attoparsec.Parser [T.Text]
queryKeyParse = do
   top <- Attoparsec.takeTill (=='[')
   keys <- many key
   return (top:keys)
   where
   key = many (Attoparsec.char '[') *>
      Attoparsec.takeTill (==']') <* many (Attoparsec.char ']')
Trac metadata
Trac field Value
Version 7.4.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information