[GHC] #5188: Runtime error when allocating lots of memory
GHC
ghc-devs at haskell.org
Sun Aug 25 23:38:13 UTC 2013
#5188: Runtime error when allocating lots of memory
---------------------------------+---------------------------
Reporter: knyblad | Owner:
Type: bug | Status: new
Priority: low | Milestone: 7.6.2
Component: GHCi | Version: 6.12.1
Resolution: | Keywords:
Operating System: Linux | Architecture: x86
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
---------------------------------+---------------------------
Changes (by rwbarton):
* difficulty: => Unknown
Comment:
I was able to reproduce this (Linux 2.6.32-5-686, GHC 7.4.2). Here is the
offending mmap call, from strace:
`mmap2(0x8d900000, 0, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = -1 EINVAL (Invalid argument)`
... which is certainly invalid (from the mmap man page: "EINVAL (since
Linux 2.6.12) length was 0.")
I'll try to figure out why it is mmapping 0 bytes. Could be an integer
overflow, when `size` is computed in `osGetMBlocks`...
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/5188#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list