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

GHC ghc-devs at haskell.org
Thu May 10 08:53:55 UTC 2018


#15038: Memory Corruption (strange closure type)
-------------------------------------+-------------------------------------
        Reporter:  andrewthad        |                Owner:  (none)
            Type:  bug               |               Status:  patch
        Priority:  highest           |            Milestone:  8.4.3
       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:  #9718             |  Differential Rev(s):  Phab:D4680
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ömer Sinan Ağacan <omeragacan@…>):

 In [changeset:"b2ff5dde399cd012218578945ada1d9ff68daa35/ghc"
 b2ff5dde/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="b2ff5dde399cd012218578945ada1d9ff68daa35"
 Fix #15038

 We introduce a new Id for unused pointer values in unboxed sums that is
 not CAFFY. Because the Id is not CAFFY it doesn't make non-CAFFY
 definitions CAFFY, fixing #15038.

 To make sure anything referenced by the new id will be retained we get a
 stable pointer to in on RTS startup.

 Test Plan: Passes validate

 Reviewers: simonmar, simonpj, hvr, bgamari, erikd

 Reviewed By: simonmar

 Subscribers: rwbarton, thomie, carter

 GHC Trac Issues: #15038

 Differential Revision: https://phabricator.haskell.org/D4680
 }}}

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


More information about the ghc-tickets mailing list