[GHC] #14272: GHC goes out of memory while compiling simple program with optimizations

GHC ghc-devs at haskell.org
Mon Sep 25 19:49:07 UTC 2017


#14272: GHC goes out of memory while compiling simple program with optimizations
-------------------------------------+-------------------------------------
        Reporter:  39aldo39          |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:  8.4.1
       Component:  Compiler          |              Version:  7.10.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  crash or panic                     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D4021
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by bgamari):

 For the record, here is the full backtrace,
 {{{
 *** Exception (reporting due to +RTS -xc):
 (base:GHC.Exception.SomeException), stack trace:
   GhcMonad.gcatch,
   called from HscTypes.handleSourceError,
   called from GHC.Integer.Type.newBigNat#,
   called from GHC.Integer.Type.runS,
   called from GHC.Integer.Type.bitBigNat,
   called from GHC.Integer.Type.bitInteger,
   called from GHC.Integer.Type.shiftLInteger,
   called from PrelRules.intOp2',
   called from PrelRules.intOp2,
   called from PrelRules.primOpRules,
   called from MkId.mkPrimOpId,
   called from PrelInfo.primOpIds,
   called from Rules.matchRule,
   called from Rules.lookupRule,
   called from Simplify.tryRules,
   called from Simplify.rebuildCall,
   called from Simplify.rebuild,
   called from Simplify.simplExprF1,
   called from Simplify.simplExprF,
   called from Simplify.simplLazyBind,
   called from Outputable.pprDebugAndThen,
   called from Outputable.pprTrace,
   called from Simplify.simplRecOrTopPair,
   called from Simplify.simplRecBind,
   called from Simplify.simplTopBinds,
   called from SimplCore.SimplTopBinds,
   called from SimplMonad.initSmpl,
   called from SimplCore.simplifyPgmIO,
   called from CoreMonad.liftIO,
   called from CoreMonad.liftIOWithCount,
   called from SimplCore.simplifyPgm,
   called from SimplCore.Simplify,
   called from SimplCore.doCorePass,
   called from CoreLint.lintAnnots,
   called from SimplCore.runCorePasses,
   called from IOEnv.thenM,
   called from CoreMonad.>>=,
   called from IOEnv.runIOEnv,
   called from CoreMonad.runCoreM,
   called from SimplCore.core2core,
   called from HscTypes.liftIO,
   called from HscMain.Core2Core,
   called from HscTypes.>>=,
   called from HscTypes.runHsc,
   called from HscMain.hscIncrementalCompile,
   called from DriverPipeline.compileOne',
   called from GhcMake.upsweep_mod.compile_it,
   called from GhcMake.upsweep_mod,
   called from GhcMake.upsweep.upsweep',
   called from GhcMake.upsweep,
   called from GhcMake.load,
   called from GhcMonad.>>=,
 }}}

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


More information about the ghc-tickets mailing list