Skip to content
  • Moritz Angermann's avatar
    Do not segfault if no common root can be found · bcd34451
    Moritz Angermann authored and Ben Gamari's avatar Ben Gamari committed
    When trying to profile a plugin, ghc mysteriously segfaulted.  Upon
    closer examination the segfault happend due to a `->prevStack` lookup
    on a NULL pointer.
    
    A new CostCentre: Unknown is introduced that is set, if ccsapp and
    ccsfn are of equal depth (e.g. 0), and do not have a common CostCentre
    in their stacks.
    
    Reviewers: bgamari, simonmar, austin, erikd
    
    Reviewed By: simonmar
    
    Subscribers: Phyx, thomie
    
    Differential Revision: https://phabricator.haskell.org/D2551
    bcd34451