[GHC] #15443: ghc panic when running GI.init on intero REPL
GHC
ghc-devs at haskell.org
Fri Jul 27 00:29:19 UTC 2018
#15443: ghc panic when running GI.init on intero REPL
--------------------------------------+-------------------------------
Reporter: esclerofilo | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.6.1
Component: GHCi | Version: 8.4.3
Keywords: | Operating System: Linux
Architecture: x86_64 (amd64) | Type of failure: GHCi crash
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
--------------------------------------+-------------------------------
I cloned the [https://github.com/haskell-gi/gi-gtk-examples] repo to learn
to use gi-gtk, deleted all version numbers in the .cabal file to make it
build with the latest stack resolver (lts-12.2) and then opened
ButtonBox.hs in emacs (spacemacs) with intero, opened the intero repl
(without actually loading the buffer into the repl*) and what happened
follows:
{{{
Starting:
stack ghci --with-ghc ghci "--docker-run-args=--interactive=true
--tty=false" --no-build --no-load gi-gtk-examples
GHCi, version 8.4.3: http://www.haskell.org/ghc/ :? for help
Loaded GHCi configuration from /home/vicente/Escritorio/gi-gtk-examples
/.stack-work/intero/intero-scriptBbJ8Bq
λ import qualified GI.Gtk as GI (main, init)
λ GI.init Nothing
ghc: panic! (the 'impossible' happened)
(GHC version 8.4.3 for x86_64-unknown-linux):
nameModule
system $dShow_a8qH
Call stack:
CallStack (from HasCallStack):
callStackDoc, called at compiler/utils/Outputable.hs:1150:37 in
ghc:Outputable
pprPanic, called at compiler/basicTypes/Name.hs:241:3 in ghc:Name
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
}}}
the contents of {{{/home/vicente/Escritorio/gi-gtk-examples/.stack-
work/intero/intero-scriptBbJ8Bq}}} are:
{{{
:set prompt ""
:set -fbyte-code
:set -fdefer-type-errors
:set -fdiagnostics-color=never
:set prompt "\4 "
}}}
Note: It happens on a terminal ghci invocation too, given the same
parameters and configuration.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15443>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list