[GHC] #10784: ghci crashed when ``-with-rtsopts=-A64m'' is specified

GHC ghc-devs at haskell.org
Fri Aug 21 08:34:52 UTC 2015


#10784: ghci crashed when ``-with-rtsopts=-A64m'' is specified
-------------------------------+-------------------------------------------
        Reporter:  wangbj      |                   Owner:
            Type:  bug         |                  Status:  closed
        Priority:  normal      |               Milestone:
       Component:  Compiler    |                 Version:  7.10.2
      Resolution:  duplicate   |                Keywords:
Operating System:  Linux       |            Architecture:  Unknown/Multiple
 Type of failure:  GHCi crash  |               Test Case:
      Blocked By:              |                Blocking:
 Related Tickets:  #10549      |  Differential Revisions:
-------------------------------+-------------------------------------------
Changes (by thomie):

 * status:  new => closed
 * resolution:   => duplicate
 * related:   => #10549


Old description:

> $ cat /tmp/t1.hs
> {-# OPTIONS -O2 -with-rtsopts=-A64m #-}
>
> main = putStrLn "hello, world!"
> wangbj at nuc ~/hs $ runghc /tmp/t1.hs
> ghc: panic! (the 'impossible' happened)
>   (GHC version 7.10.2 for x86_64-unknown-linux):
>         floatExpr tick break<0>()
>
> Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

New description:

 {{{
 $ cat /tmp/t1.hs
 {-# OPTIONS -O2 -with-rtsopts=-A64m #-}

 main = putStrLn "hello, world!"
 wangbj at nuc ~/hs $ runghc /tmp/t1.hs
 ghc: panic! (the 'impossible' happened)
   (GHC version 7.10.2 for x86_64-unknown-linux):
         floatExpr tick break<0>()

 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
 }}}

--

Comment:

 The problem is `-O2` in combination with runghc. The `-O2` should be
 ignored, but ghc-7.10.2 has a bug and it crashes instead. Fixed in #10549.

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


More information about the ghc-tickets mailing list