(Address boundary error) in Haskell application

一笑奈何 提交于 2019-12-11 07:52:00

问题


I'm trying to develop haskell replacement for less pager.

Full code is here https://github.com/purpleP/pager.git

buildInitialState :: IO TuiState
buildInitialState = do
    (file : args) <- getArgs
    bs <- mmapFileByteStringLazy file Nothing
    pure (TuiState (V.fromList (BC.lines bs)) 0)

That's how I read file. It works fine with files of 20Mb but doesn't work for 100Mb file. Am I doing something wrong or is this a bug in mmap library?

terminated by signal SIGSEGV (Address boundary error) Is the exact error I get.

来源:https://stackoverflow.com/questions/53715138/address-boundary-error-in-haskell-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!