[GHC] #13233: typePrimRep panic while compiling GHC with profiling

GHC ghc-devs at haskell.org
Mon May 22 07:32:32 UTC 2017


#13233: typePrimRep panic while compiling GHC with profiling
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  highest           |            Milestone:  8.4.1
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
                                     |  LevityPolymorphism
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Compile-time      |            Test Case:
  crash or panic                     |  codeGen/should_fail/T13233
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D3490
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by akio):

 * cc: akio (added)


Comment:

 The panic still happens for me, with 6f8c3ce4b1.

 {{{
 ghc-stage1: panic! (the 'impossible' happened)
   (GHC version 8.3.20170522 for x86_64-unknown-linux):
         runtimeRepPrimRep
   typePrimRep (a_12 :: TYPE k0_10)
   k0_10
   Call stack: Call stack unavailable

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

 <<ghc: 1000824544 bytes, 140 GCs, 17039727/57741696 avg/max bytes
 residency (8 samples), 118M in use, 0.000 INIT (0.000 elapsed), 1.240 MUT
 (1.260 elapsed), 0.822 GC (0.826 elapsed) :ghc>>
 compiler/ghc.mk:591: recipe for target
 'compiler/stage2/build/StgCmmMonad.p_o' failed
 }}}

 My build.mk is:

 {{{
 BuildFlavour = prof

 ifneq "$(BuildFlavour)" ""
 include mk/flavours/$(BuildFlavour).mk
 endif

 STRIP_CMD = :

 GhcStage2HcOpts += -fprof-auto-top
 }}}

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


More information about the ghc-tickets mailing list