[GHC] #9078: Segfault with makeStableName

GHC ghc-devs at haskell.org
Tue May 6 10:55:45 UTC 2014


#9078: Segfault with makeStableName
-------------------------------------+------------------------------------
        Reporter:  robertce          |            Owner:
            Type:  bug               |           Status:  new
        Priority:  normal            |        Milestone:
       Component:  Compiler          |          Version:  7.8.2
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------

Comment (by ezyang):

 This patch seems to do the trick.

 {{{
 diff --git a/rts/Stable.c b/rts/Stable.c
 index ec74b0d..431b7c6 100644
 --- a/rts/Stable.c
 +++ b/rts/Stable.c
 @@ -246,6 +246,7 @@ STATIC_INLINE void
  freeSnEntry(snEntry *sn)
  {
    ASSERT(sn->sn_obj == NULL);
 +  removeHashTable(addrToStableHash, (W_)sn->old, NULL);
    sn->addr = (P_)stable_name_free;
    stable_name_free = sn;
  }
 }}}

 Alas, there are a bunch of validate failures at the moment.

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


More information about the ghc-tickets mailing list