
#8097: internal error: getMBlock: mmap: Operation not permitted ----------------------------------+--------------------------- Reporter: singpolyma | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.4.2 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------+--------------------------- Comment (by SirReal): I've experienced this as well: {{{ 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) }}} value in /proc/sys/vm/mmap_min_addr : 65536 Here's the code that caused it: {{{ import Data.Ratio import Data.List limit :: Integer limit = 1000000 main :: IO() main = print $ "The solution is: " ++ show (countUniques allFractions) allFractions :: [Ratio Integer] allFractions = [x % y | y <- [1..limit], x <- [1..y-1]] countUniques :: Ord a => [a] -> Int countUniques = length . group . sort }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8097#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler