id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
4021	Problem of Interaction Between the FreeBSD Kernel and the GHC RTS	pgj	pgj	"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.
"	bug	closed	normal	7.0.1	Runtime System	6.13	fixed	threading, exceptions, pthreads, FreeBSD		FreeBSD	Unknown/Multiple	Runtime performance bug		throwto003			
