[GHC] #10375: arm: ghci hits an illegal instruction
GHC
ghc-devs at haskell.org
Tue May 26 00:08:45 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):
With the `DYNAMIC_GHC_PROGRAMS = NO` version of `ghc-stage2` I can
actually run it under GDB directly, instead of running it in one terminal
and attaching GDB to it from another terminal. However, if I try to set a
breakpoint suddenly GDB and `ghc-stage2`'s terminal manipulation start
fighting each other again.
The above problem means I'm back to attaching GDB to `ghc-stage2` from a
separate terminal, but I can't do it with a `getChar` in the `.gchi` file
because the statically linked `ghc-stage2` is crashing before it loads the
`.ghci` file. Instead, I have hacked `ghc/Main.hs` as follows:
{{{
main :: IO ()
main = do
+ args <- getArgs
+ if "--interactive" `elem` args
+ then do
+ putStr "Continue ... "
+ hFlush stdout
+ _ <- getChar
+ putStrLn "done"
+ else return ()
initGCStatistics -- See Note [-Bsymbolic and hooks]
hSetBuffering stdout LineBuffering
hSetBuffering stderr LineBuffering
}}}
This does allow me to attach GDB, but then I'm stuck with the same problem
as before, attaching GDB changes the state of the program to an extent
where I can't catch the problem.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10375#comment:24>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list