[GHC] #7844: Panic messages raised from GHCi don't include details

#7844: Panic messages raised from GHCi don't include details -----------------------------+---------------------------------------------- Reporter: parcs | Owner: Type: bug | Status: new Priority: normal | Component: GHCi Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: -----------------------------+---------------------------------------------- In GHC built the `devel2` way, compiling the following source file through GHC causes a compiler panic: {{{ f :: (Num Int => Num) () => () f = undefined }}} {{{ [1 of 1] Compiling Main ( tmp/xxx.hs, tmp/xxx.o ) ghc-stage2: panic! (the 'impossible' happened) (GHC version 7.7.20130416 for x86_64-unknown-linux): ASSERT failed! file compiler/types/Type.lhs line 1623 base:GHC.Num.Num{tc 2b} ghc-prim:GHC.Types.Int{(w) tc 3J} => base:GHC.Num.Num{tc 2b} ghc-prim:GHC.Prim.*{(w) tc 34d} -> ghc-prim:GHC.Prim.Constraint{(w) tc 34s} Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} However, if you try to compile the same file through GHCi, you get a panic message but without the important details: {{{ Prelude> :load tmp/xxx.hs [1 of 1] Compiling Main ( tmp/xxx.hs, interpreted ) ghc-stage2: panic! (the 'impossible' happened) (GHC version 7.7.20130416 for x86_64-unknown-linux): ASSERT failed! <<details unavailable>> Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7844 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7844: Panic messages raised from GHCi don't include details -----------------------------+---------------------------------------------- Reporter: parcs | Owner: Type: bug | Status: patch Priority: normal | Component: GHCi Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: -----------------------------+---------------------------------------------- Changes (by parcs): * status: new => patch Comment: I attached a patch that fixes this issue. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7844#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7844: Panic messages raised from GHCi don't include details
-----------------------------+----------------------------------------------
Reporter: parcs | Owner:
Type: bug | Status: patch
Priority: normal | Component: GHCi
Version: 7.7 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Blockedby:
Blocking: | Related:
-----------------------------+----------------------------------------------
Comment(by patrick@…):
commit 78d564483514e7e06cda95da7d0b51526ea2ba91
{{{
Author: Patrick Palka

#7844: Panic messages raised from GHCi don't include details -------------------------------+-------------------------------------------- Reporter: parcs | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: GHCi | Version: 7.7 Resolution: fixed | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Changes (by igloo): * status: patch => closed * difficulty: => Unknown * resolution: => fixed Comment: Applied, thanks! -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7844#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7844: Panic messages raised from GHCi don't include details -------------------------------+-------------------------------------------- Reporter: parcs | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: GHCi | Version: 7.7 Resolution: fixed | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Comment(by igloo): I've also filed #7852, as GHC panics on this code. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7844#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC