Skip to content

Problem of Interaction Between the FreeBSD Kernel and the GHC RTS

There is a process (throwto003, test 173) during running gmake -C testsuite/tests/ghc-regress BINDIST=YES on FreeBSD which eats up all the available memory in the system and then killed by the kernel.

Excerpt from the log of testsuite:

...
cd ./concurrent/should_run && ./throwto003 +RTS -N2 -ls -RTS </dev/null >throwto003.run.stdout 2>throwto003.run.stderr
Wrong exit code (expected 0 , actual 1 )
Stdout:
Stderr:
throwto003: out of memory (requested 1048576 bytes)
*** unexpected failure for throwto003(threaded2)
...

Note that it works as expected when using WAY=normal or WAY=threaded1. It means that the -O flag may cause the problem. It appears on both x86 and x86_64. The log was generated on an Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz, inside a chroot(2) environment with a vanilla 8-STABLE kernel (as of February 17, 2010) and 8.0-RELEASE userland.

Trac metadata
Trac field Value
Version 6.13
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Runtime System
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