[GHC] #10445: Wrong stack space size when using -Ksize

GHC ghc-devs at haskell.org
Tue Jun 2 18:45:32 UTC 2015


#10445: Wrong stack space size when using -Ksize
-------------------------------------+-------------------------------------
        Reporter:  asr               |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:  7.10.2
       Component:  Compiler          |                 Version:  7.10.1
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  None/Unknown      |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 I have a vague recollection (from the time that the default stack size
 limit was effectively removed) that GHC 7.6.3 was lying and would display
 the stack size limit as the current stack size in that error message
 regardless of the actual current stack size.

 I don't understand though why you are seeing a stack size that is so much
 larger than the limit though; and I also notice that even when increasing
 the stack size limit to much more than the reported stack size (like
 `-K1M`) the reported stack size does not change (and then the error
 message becomes rather confusing). So it does seem likely there is some
 sort of bug here.

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


More information about the ghc-tickets mailing list