[GHC] #15032: GHCi panics when attempting to load archives

#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 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: --------------------------------------+------------------------------- 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 is 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 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15032 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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 is 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 }}}
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 }}} -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15032#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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`)
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`) 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 }}} -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15032#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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

#15032: GHCi panics when attempting to load archives ----------------------------------+-------------------------------------- Reporter: vanessamchale | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.6.1 Component: GHCi | Version: 8.4.2-rc1 Resolution: duplicate | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: #9438 | Differential Rev(s): Wiki Page: | ----------------------------------+-------------------------------------- Changes (by RyanGlScott): * status: new => closed * resolution: => duplicate * related: => #9438 Comment: This is a duplicate of #9438, so closing. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15032#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15032: GHCi panics when attempting to load archives ----------------------------------+-------------------------------------- Reporter: vanessamchale | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.6.1 Component: GHCi | Version: 8.4.2-rc1 Resolution: duplicate | 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: | ----------------------------------+-------------------------------------- Changes (by vanessamchale): * related: #9438 => 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`)
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.
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.Integer }}} (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:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15032: GHCi panics when attempting to load archives ----------------------------------+-------------------------------------- Reporter: vanessamchale | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.6.1 Component: GHCi | Version: 8.4.2-rc1 Resolution: duplicate | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: #9438 | Differential Rev(s): Wiki Page: | ----------------------------------+-------------------------------------- Changes (by dfeuer): * related: => #9438 Comment: I think the related tickets field probably got wiped by mistake. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15032#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15032: GHCi panics when attempting to load archives
----------------------------------+--------------------------------------
Reporter: vanessamchale | Owner: (none)
Type: bug | Status: closed
Priority: normal | Milestone: 8.6.1
Component: GHCi | Version: 8.4.2-rc1
Resolution: duplicate | Keywords:
Operating System: Linux | Architecture: x86_64 (amd64)
Type of failure: GHCi crash | Test Case:
Blocked By: | Blocking:
Related Tickets: #9438 | Differential Rev(s):
Wiki Page: |
----------------------------------+--------------------------------------
Comment (by Ben Gamari
participants (1)
-
GHC