[GHC] #10656: Ability to get stack traces from Haskell code

#10656: Ability to get stack traces from Haskell code -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Tarrasch Type: feature | Status: new request | Milestone: 7.12.1 Priority: normal | Version: 7.10.1 Component: Compiler | Operating System: Unknown/Multiple Keywords: | Type of failure: None/Unknown Architecture: | Blocked By: Unknown/Multiple | Related Tickets: #3693 Test Case: | Blocking: | Differential Revisions: Phab:D963 | -------------------------------------+------------------------------------- With the merge of Phab:D169 and Phab:D396 (included in GHC 7.10.1) GHC now has the ability to produce DWARF debugging information in compiled binaries. It would be nice if Haskell programs could request stack backtraces from the RTS. Tarrasch has some work in this direction in Phab:D963 however there are a number of questions that remain outstanding, * do we want to rely on an external library for parsing DWARF information? If so, how do we address portability concerns? * What should the Haskell-land interfaces look like? Writing down some concrete use-cases would help here. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10656 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10656: Ability to get stack traces from Haskell code -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Tarrasch Type: feature request | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: #3693 | Blocking: | Differential Revisions: Phab:D963 -------------------------------------+------------------------------------- Description changed by bgamari: Old description:
With the merge of Phab:D169 and Phab:D396 (included in GHC 7.10.1) GHC now has the ability to produce DWARF debugging information in compiled binaries.
It would be nice if Haskell programs could request stack backtraces from the RTS. Tarrasch has some work in this direction in Phab:D963 however there are a number of questions that remain outstanding,
* do we want to rely on an external library for parsing DWARF information? If so, how do we address portability concerns?
* What should the Haskell-land interfaces look like? Writing down some concrete use-cases would help here.
New description: With the merge of Phab:D169 and Phab:D396 (included in GHC 7.10.1, see #3693 for details) GHC now has the ability to produce DWARF debugging information in compiled binaries. It would be nice if Haskell programs could request stack backtraces from the RTS. Tarrasch has some work in this direction in Phab:D963 however there are a number of questions that remain outstanding, * do we want to rely on an external library for parsing DWARF information? If so, how do we address portability concerns? * What should the Haskell-land interfaces look like? Writing down some concrete use-cases would help here. -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10656#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10656: Ability to get stack traces from Haskell code -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Tarrasch Type: feature request | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #3693 | Differential Revisions: Phab:D963 -------------------------------------+------------------------------------- Comment (by Tarrasch): Thanks for the rescoping @bgmari! Once we've merged something like Phab:D963. Then we can create new tickets for (i) getting it to use DWARF and a ticket for (ii) giving stack traces to Haskell land exception handlers. Phab:D963 does actually not even use the DWARF stuff. See the abandoned patch Phab:D662 for an implementation using that. Phab:D662 got abandoned since it did too much at once. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10656#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10656: Ability to get stack traces from Haskell code
-------------------------------------+-------------------------------------
Reporter: bgamari | Owner: Tarrasch
Type: feature request | Status: new
Priority: normal | Milestone: 8.0.1
Component: Compiler | Version: 7.10.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: #3693 | Differential Rev(s): Phab:D963
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#10656: Ability to get stack traces from Haskell code -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Tarrasch Type: feature request | Status: closed Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #3693 | Differential Rev(s): Phab:D963 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => fixed Comment: This has been addressed in Phab:D1196. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10656#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC