[GHC] #15038: Memory Corruption (strange closure type)

GHC ghc-devs at haskell.org
Mon Apr 16 12:03:45 UTC 2018


#15038: Memory Corruption (strange closure type)
-------------------------------------+-------------------------------------
        Reporter:  andrewthad        |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.6.1
       Component:  Compiler          |              Version:  8.4.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Runtime crash     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by andrewthad):

 I have gotten it a little smaller. I've removed some functions from
 `Packed.Bytes.Parser`, and there are also no more levity polymorphic
 functions. Reminder about weird things:

 1. Problems only happen when using `cabal` or `stack` to build, not when
 using ghc on its own.
 2. Collapsing all modules into a single module (which affects inlining)
 makes the crash disappear.
 3. This happens with `-O0` and `-O2`.

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


More information about the ghc-tickets mailing list