Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,382
    • Issues 4,382
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 368
    • Merge Requests 368
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #7844

Closed
Open
Opened Apr 17, 2013 by parcs@trac-parcs

Panic messages raised from GHCi don't include details

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
Trac metadata
Trac field Value
Version 7.7
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHCi
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#7844