[GHC] #9011: panic - interactiveUI:setBuffering2

#9011: panic - interactiveUI:setBuffering2 ----------------------------------+------------------------------- Reporter: irneb | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.6.3 Keywords: | Operating System: Linux Architecture: x86_64 (amd64) | Type of failure: GHCi crash Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ----------------------------------+------------------------------- I've looked through some other tickets and tried installing libffi5, though in my distro (Kubuntu 13.10 x86-64) only libffi6 is available. Even after installing that I get the following: {{{ $ ghci GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help ghc: panic! (the 'impossible' happened) (GHC version 7.6.3 for x86_64-unknown-linux): interactiveUI:setBuffering2 Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9011 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9011: panic - interactiveUI:setBuffering2 -------------------------------+---------------------------------- Reporter: irneb | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.6.3 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------+---------------------------------- Comment (by rwbarton): Is there some context missing here? What have you done exactly and what are you trying to do? What is the relevance of libffi? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9011#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9011: panic - interactiveUI:setBuffering2 -------------------------------+---------------------------------- Reporter: irneb | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.6.3 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------+---------------------------------- Comment (by irneb): Sorry, it seems I did omit a bit. I'm only starting with Haskell as my next language to learn. So first step: install the needed tools. Did a bit of searching and got various answers ranging from compiling from source to installing from the repo. Anyhoo ... the source idea made for lots of extra manual downloads because these dependencies simply are not available by default. Gave up on that since it simply didn't want to work after about 2 days of trying. Then installed from the repo after adding the universe site to the aps list. Seemed to install properly, but the interactive REPL gives this error message. Then I searched through this forum for the error in question. Found a few threads which stated that installing LibFFI5 solved it and then they were closed. No further info or comments. Then I tried installing this, found that it's not available in the repo, did a search and found that libffi6 superseded libffi5 since Ubuntu 10 (I'm now on 13.10). So installed the new libffi6 and tried again ... no dice, same error. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9011#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9011: panic - interactiveUI:setBuffering2 -------------------------------------+---------------------------------- Reporter: irneb | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.6.3 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | -------------------------------------+---------------------------------- Comment (by monoidal): irneb: Could you check if the issue still persists in GHC 7.8? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9011#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9011: panic - interactiveUI:setBuffering2 -------------------------------------+---------------------------------- Reporter: irneb | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.6.3 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | -------------------------------------+---------------------------------- Comment (by gnezdo): I just hit the same problem when I had years worth of leftovers in /usr/local/lib/ghc on OpenBSD 5.6 amd64 with ghc-7.6.3. In particular, base package was probably messed up (as I surmise from complaints by cabal about base-loghexadecimal). This suggests this bug is a different manifestation of #7692. The workaround for me was to uninstall ghc package, remove everything under /usr/local/lib/ghc and reinstall again. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9011#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9011: panic - interactiveUI:setBuffering2 -------------------------------------+---------------------------------- Reporter: irneb | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.6.3 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | -------------------------------------+---------------------------------- Comment (by HairyDude): Got this in 7.6.3 (Linux Mint 17) with an easy reproduction method: 1. `mkdir tmp && cd tmp` 1. `cabal sandbox init` 1. `echo 'module Test where main = putStrLn "Hello world"' > Test.hs` 1. `GHC_PACKAGE_PATH=.cabal-sandbox/x86_64-linux-ghc-7.6.3-packages.conf.d runghc Test.hs` -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9011#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9011: panic - interactiveUI:setBuffering2 -------------------------------------+---------------------------------- Reporter: irneb | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: GHCi | Version: 7.6.3 Resolution: duplicate | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: #7692 Differential Revisions: | -------------------------------------+---------------------------------- Changes (by thomie): * status: new => closed * resolution: => duplicate * related: => #7692 Comment: The bug of the confusing panic message has been fixed, somewhere between version 7.6.3 and version 7.8.3. Repeating the steps from comment:5, or just `ghci -ignore-package base`, now prints: {{{ GHCi, version 7.8.3: http://www.haskell.org/ghc/ :? for help Top level: Failed to load interface for ‘Prelude’ Use -v to see a list of the files searched for. }}} @irneb. I'm sorry you ran into this problem. I understand you tried solving the problem by installing libffi from looking at #3144, but that is a 6 year ticket. For anyone else running into problems like this: try installng the most recent version of GHC first, and start over with new `.ghc` and `.cabal` directories in your home directory. Also make sure there is no strange GHC_PACKAGE_PATH variable in your shell environment (maybe from a previous installation). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9011#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC