#4021: Problem of Interaction Between the FreeBSD Kernel and the GHC RTS
---------------------------------+------------------------------------------
Reporter: pgj | Owner: pgj
Type: bug | Status: new
Priority: normal | Component: Runtime System
Version: 6.13 | Keywords: threading, exceptions,
pthreads, FreeBSD
Os: FreeBSD | Testcase: throwto003
Architecture: Unknown/Multiple | Failure: Runtime performance bug
Patch: 0 |
---------------------------------+------------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4021>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs