Ticket #2783 (closed merge: fixed)

Opened 5 years ago

Last modified 5 years ago

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

Changed 5 years ago by j.waldmann

  • architecture changed from Unknown/Multiple to x86

Changed 5 years ago by simonmar

  • owner set to simonmar
  • difficulty set to Unknown

Changed 5 years ago by simonmar

  • owner changed from simonmar to igloo
  • type changed from bug to merge
  • component changed from Compiler to Runtime System
  • milestone set to 6.10.2

Fixed:

Mon Nov 17 06:45:15 PST 2008  Simon Marlow <marlowsd@gmail.com>
  * Fix #2783: detect black-hole loops properly
  At some point we regressed on detecting simple black-hole loops.  This
  happened due to the introduction of duplicate-work detection for
  parallelism: a black-hole loop looks very much like duplicate work,
  except it's duplicate work being performed by the very same thread.
  So we have to detect and handle this case.

Changed 5 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

Merged

Note: See TracTickets for help on using tickets.