[GHC] #15595: Stack overflow in withArgs leads to infinite memory-consuming loop
GHC
ghc-devs at haskell.org
Mon Sep 3 12:32:26 UTC 2018
#15595: Stack overflow in withArgs leads to infinite memory-consuming loop
----------------------------------+--------------------------------------
Reporter: NeilMitchell | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.6.1
Component: Compiler | Version: 8.5
Resolution: | Keywords:
Operating System: Windows | Architecture: x86_64 (amd64)
Type of failure: Runtime crash | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
----------------------------------+--------------------------------------
Comment (by osa1):
Here's another reproducer:
{{{#!haskell
import Control.Exception (mask_)
main :: IO ()
main = mask_ (print (foldl (+) 0 [0 .. 1000000]))
}}}
If you remove `mask_` this fails with stack overflow (add `+RTS -K1K`).
With `mask_` it gets stuck in the same loop as the original program.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15595#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list