
Markus Barenhoff wrote:
On Fri 28.11 09:42, Simon Marlow wrote:
Markus Barenhoff wrote:
On Thu 27.11 09:49, Simon Marlow wrote:
Hi!
I checked out and translated the head version of ghc today from darcs. It compiled fine. When I now try to start the ghci I get the following:
---- snip ---- GHCi, version 6.11.20081126: http://www.haskell.org/ghc/ :? for help ghc: internal error: loadObj: failed to mmap() memory below 2Gb; asked for 626688 bytes at 0x40000000, got 0x801635000. Try specifying an address with +RTS -xm<addr> -RTS (GHC version 6.11.20081126 for x86_64_unknown_freebsd) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug Abort (core dumped) ---- snip ----
If it helps somehow, you can find the core dump here: http://www.alios.org/~alios/ghc.core.bz2 That's odd, because 6.8.3 is using 0x40000000 on FreeBSD and is working fine (or is it?).
yes, it worked, but I haven't installed anymore - so I'am not sure, where it does maps its stuff into memory.
The memory map shows that there's nothing mapped in at the place we're
asking for memory, but still FreeBSD decides to give us memory somewhere
else. I checked back in 6.8.3 and it looks like we were using MAP_FIXED -
now MAP_FIXED is dangerous, because it will overwrite existing mappings
(like the binary itself!), which is why we're not doing that now.
I've committed a patch that uses MAP_FIXED on FreeBSD if other attempts to
get memory below 2Gb fail. I'd be grateful if you could test it out, the
patch is this one, pushed to HEAD today:
Wed Dec 10 11:57:51 GMT 2008 Simon Marlow