[GHC] #11047: Provide call stacks in GHCi

GHC ghc-devs at haskell.org
Wed Jan 13 13:06:23 UTC 2016


#11047: Provide call stacks in GHCi
-------------------------------------+-------------------------------------
        Reporter:  simonmar          |                Owner:  simonmar
            Type:  task              |               Status:  closed
        Priority:  high              |            Milestone:  8.0.1
       Component:  GHCi              |              Version:  7.11
      Resolution:  fixed             |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #545, #4837,      |  Differential Rev(s):  Phab:D1407,
  #11100                             |  Phab:D1595, Phab:D1747
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Simon Marlow <marlowsd@…>):

 In [changeset:"6cb860a9a154847906868ac0be93d750f99dac86/ghc"
 6cb860a9/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="6cb860a9a154847906868ac0be93d750f99dac86"
 Add -prof stack trace to assert

 Summary:
 So that assertion failures have full call stack information attached
 when using `ghc -fexternal-interpreter -prof`.  Here's one I just
 collected by inserting a dummy assert in Happy:

 ```
 *** Exception: Assertion failed
 CallStack (from ImplicitParams):
   assert, called at ./First.lhs:37:11 in main:First
 CallStack (from -prof):
   First.mkFirst (First.lhs:37:11-27)
   First.mkFirst (First.lhs:37:11-93)
   Main.main2.runParserGen.first (Main.lhs:107:48-56)
   Main.main2.runParserGen.first (Main.lhs:107:27-57)
   Main.main2.runParserGen (Main.lhs:(96,9)-(276,9))
   Main.main2.runParserGen (Main.lhs:(90,9)-(276,10))
   Main.main2.runParserGen (Main.lhs:(86,9)-(276,10))
   Main.main2.runParserGen (Main.lhs:(85,9)-(276,10))
   Main.main2 (Main.lhs:74:20-43)
   Main.main2 (Main.lhs:(64,9)-(78,61))
   Main.main (Main.lhs:57:9-18)
 ```

 Test Plan: validate

 Reviewers: erikd, hvr, austin, bgamari

 Reviewed By: bgamari

 Subscribers: thomie

 Differential Revision: https://phabricator.haskell.org/D1765

 GHC Trac Issues: #11047
 }}}

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


More information about the ghc-tickets mailing list