Re: [GHC] #2783: RTS -K/-M options not honored

#2783: RTS -K/-M options not honored -----------------------------------+------------------------------ Reporter: j.waldmann | Owner: igloo Type: merge | Status: closed Priority: normal | Milestone: 6.10.2 Component: Runtime System | Version: 6.10.1 Resolution: fixed | Keywords: Operating System: Linux | Architecture: x86 Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -----------------------------------+------------------------------ Old description:
I have this program
main = print $ do x <- [ 0 .. 5 ] ; let { y = 5 - y } ; return y
I compile with ghc-6.10.1 --make
and I execute with +RTS -M10m -K10m
but still the executable quickly eats up all my memory.
(I know the program is silly but still it should crash gracefully.)
When I do the same thing with ghc-6.8.3, I get "Heap exhausted", as it should be.
New description: I have this program {{{#!hs main = print $ do x <- [ 0 .. 5 ] ; let { y = 5 - y } ; return y }}} I compile with `ghc-6.10.1 --make` and I execute with `+RTS -M10m -K10m` but still the executable quickly eats up all my memory. (I know the program is silly but still it should crash gracefully.) When I do the same thing with ghc-6.8.3, I get "Heap exhausted", as it should be. -- Comment (by bgamari): Sounds like a bug to me, but it's not the bug covered by this ticket. Let's open a new ticket. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/2783#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC