
#15032: GHCi panics when attempting to load archives ----------------------------------+-------------------------------------- Reporter: vanessamchale | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: GHCi | Version: 8.4.2-rc1 Resolution: | 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: | ----------------------------------+-------------------------------------- Description changed by vanessamchale: Old description:
If I have the following module:
{{{#!hs module Numeric.Integer ( is_prime_ats ) where
import Foreign.C
foreign import ccall is_prime_ats :: CInt -> CBool }}}
and I attempt to open it in GHCi with the following
{{{ /opt/ghc/bin/ghci-8.4.2 -lnumbertheory -L../dist-newstyle/lib Numeric.Common }}}
(with a file `libnumertheory.a` in `../dist-newstyle/lib`)
If I instead place a shared library (i.e. `libnumbertheory.so`) in `../dist-newstyle/lib`) then this does not panic.
I get a panic and a request to open a bug report. I am guessing that at the least this supposed to be a different error message.
{{{ GHCi, version 8.4.1.20180329: http://www.haskell.org/ghc/ :? for help ghc: panic! (the 'impossible' happened) (GHC version 8.4.1.20180329 for x86_64-unknown-linux): Loading archives not supported Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}}
New description: If I have the following module: {{{#!hs module Numeric.Integer ( is_prime_ats ) where import Foreign.C foreign import ccall is_prime_ats :: CInt -> CBool }}} and I attempt to open it in GHCi with the following {{{ /opt/ghc/bin/ghci-8.4.2 -lnumbertheory -L../dist-newstyle/lib Numeric.Common }}} (with a file `libnumertheory.a` in `../dist-newstyle/lib`) I get a panic and a request to open a bug report. I am guessing that at the least this supposed to be a different error message. {{{ GHCi, version 8.4.1.20180329: http://www.haskell.org/ghc/ :? for help ghc: panic! (the 'impossible' happened) (GHC version 8.4.1.20180329 for x86_64-unknown-linux): Loading archives not supported Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} If I instead place a shared library (i.e. `libnumbertheory.so`) in `../dist-newstyle/lib`) then this does not panic. -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15032#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler