[GHC] #10375: arm: ghci hits an illegal instruction

GHC ghc-devs at haskell.org
Mon May 18 00:34:24 UTC 2015


#10375: arm: ghci hits an illegal instruction
-------------------------------------+---------------------------------
        Reporter:  erikd             |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:  7.10.2
       Component:  GHCi              |                 Version:  7.10.1
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:  arm
 Type of failure:  GHCi crash        |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+---------------------------------

Comment (by erikd):

 If I compile the RTS with `-debug` and run

 {{{
 inplace/bin/ghc-stage +RTS -DS -Dl -RTS --interactive
 }}}

 it fails as follows:

 {{{
 Prelude> data X = A | B deriving Eq
 lookupSymbol: looking up ghczmprim_GHCziTypes_True_closure
 lookupSymbol: symbol not found
 lookupSymbol: looking up ghczmprim_GHCziTypes_False_closure
 lookupSymbol: symbol not found
 lookupSymbol: looking up ghczmprim_GHCziTypes_False_closure
 lookupSymbol: symbol not found
 lookupSymbol: looking up ghczmprim_GHCziTypes_True_closure
 lookupSymbol: symbol not found
 lookupSymbol: looking up ghczmprim_GHCziClasses_DZCEq_con_info
 lookupSymbol: symbol not found
 lookupSymbol: looking up ghczmprim_GHCziClasses_zeze_closure
 lookupSymbol: symbol not found
 lookupSymbol: looking up ghczmprim_GHCziClasses_not_closure
 lookupSymbol: symbol not found
 Prelude> A == A
 lookupSymbol: looking up ghczmprim_GHCziClasses_zeze_closure
 lookupSymbol: symbol not found
 lookupSymbol: looking up ghczmprim_GHCziTypes_ZC_con_info
 lookupSymbol: symbol not found
 lookupSymbol: looking up ghczmprim_GHCziTypes_ZMZN_closure
 lookupSymbol: symbol not found
 lookupSymbol: looking up base_GHCziBase_returnIO_closure
 lookupSymbol: symbol not found
 lookupSymbol: looking up base_GHCziShow_zdfShowBool_closure
 lookupSymbol: symbol not found
 lookupSymbol: looking up base_SystemziIO_print_closure
 lookupSymbol: symbol not found
 lookupSymbol: looking up base_GHCziBase_thenIO_closure
 lookupSymbol: symbol not found
 Segmentation fault
 }}}

 This (apart from the segfault) is identical to what happens on
 x86_64/linux compiled the same way.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10375#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list