[GHC] #14043: GHC.Stack.callStack throws exception

GHC ghc-devs at haskell.org
Thu Jul 27 18:23:56 UTC 2017


#14043: GHC.Stack.callStack throws exception
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:  8.4.1
       Component:  Compiler          |              Version:  8.0.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 problem appears to be that `callStack` is defined directly in terms of
 `popCallStack`, which fails on an empty stack. Presumably we should just
 return an empty stack in this case.

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


More information about the ghc-tickets mailing list