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

GHC ghc-devs at haskell.org
Thu Aug 29 02:27:38 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 nh2):

 Simon,

 > 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".

 I don't think I quite understand. If the stack size is unlimited, how can
 you get a stack overflow? Do you mean when all the memory is actually
 exhausted?

 Also in which cases would we simply print "Heap exhausted"?

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




More information about the ghc-tickets mailing list