Ticket #2783 (closed merge: fixed)
RTS -K/-M options not honored
| Reported by: | j.waldmann | Owned by: | igloo |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.10.2 |
| Component: | Runtime System | Version: | 6.10.1 |
| Keywords: | Cc: | ||
| Operating System: | Linux | Architecture: | x86 |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
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.
Change History
Note: See
TracTickets for help on using
tickets.
