[GHC] #13527: ghc has a stack space leak when prints warnings

GHC ghc-devs at haskell.org
Mon Apr 10 23:55:04 UTC 2017


#13527: ghc has a stack space leak when prints warnings
-------------------------------------+-------------------------------------
        Reporter:  slyfox            |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by bgamari):

 The issue with `utf8DecodeString` is that we need to decode all `len`
 characters before we can return; we cannot do the decoding lazily as the
 list is demanded since the `Ptr Word8` may be freed. Phab:D3442 adds such
 a variant..

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


More information about the ghc-tickets mailing list