[GHC] #8189: Default to infinite stack size?

GHC ghc-devs at haskell.org
Wed Aug 28 11:34:22 UTC 2013


#8189: Default to infinite stack size?
-------------------------------------+------------------------------------
        Reporter:  nh2               |            Owner:
            Type:  bug               |           Status:  new
        Priority:  normal            |        Milestone:
       Component:  Compiler          |          Version:  7.6.3
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  Runtime crash     |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------

Comment (by simonpj):

 I think that's a very reasonable position.   It seems odd that you can
 have a very big list with no problem but not a very big stack.

 The only point I'd make is that if we make the stack infinite by default,
 and there's a stack overflow, the error message should say "Stack overflow
 on a stack of size 300Mbytes", not simply "Heap exhausted".

 Simon

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8189#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler




More information about the ghc-tickets mailing list