[GHC] #10852: ghc 7.8.4 on arm - panic: Simplifier ticks exhausted

GHC ghc-devs at haskell.org
Tue Sep 8 00:44:13 UTC 2015


#10852: ghc 7.8.4 on arm - panic: Simplifier ticks exhausted
-------------------------------------+-------------------------------------
        Reporter:  andrewufrank      |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.10.2
      Resolution:                    |                Keywords:
Operating System:  Linux             |            Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  crash                              |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:  #5642, #9675      |  Differential Revisions:
-------------------------------------+-------------------------------------
Changes (by thomie):

 * related:   => #5642, #9675


Comment:

 I can't reproduce that panic on x86-64 Linux with ghc-7.10.2, but do
 notice GHC needs an awful lot of memory to compile `chatter`. My laptop
 starts swapping.

 I extracted an example. Run `cabal install cereal-0.4.1.0` first (`cereal`
 doesn't have dependencies itself, and doesn't take long to build).

 {{{
 $ ghc-7.10.2 -fforce-recomp InstanceSerialize.hs -dshow-passes -O +RTS -s

  105,749,837,048 bytes allocated in the heap
   34,168,091,184 bytes copied during GC
    1,094,766,416 bytes maximum residency (31 sample(s))
       13,390,536 bytes maximum slop
             2797 MB total memory in use (0 MB lost due to fragmentation)

                                      Tot time (elapsed)  Avg pause  Max
 pause
   Gen  0      2770 colls,     0 par   109.295s  117.115s     0.0423s
 2.0924s
   Gen  1        31 colls,     0 par   124.908s  198.248s     6.3951s
 25.1279s

   TASKS: 4 (1 bound, 3 peak workers (3 total), using -N1)

   SPARKS: 0 (0 converted, 0 overflowed, 0 dud, 0 GC'd, 0 fizzled)

   INIT    time    0.001s  (  0.001s elapsed)
   MUT     time  284.506s  (326.497s elapsed)
   GC      time  234.203s  (315.363s elapsed)
   EXIT    time    0.001s  (  0.001s elapsed)
   Total   time  518.747s  (641.862s elapsed)

   Alloc rate    371,696,208 bytes per MUT second

   Productivity  54.9% of total user, 44.3% of total elapsed

 gc_alloc_block_sync: 0
 whitehole_spin: 0
 gen[0].sync: 0
 gen[1].sync: 0
 }}}

 The full log is attached.

 I notice the number of terms increases by a factor of 8 after the first
 simplifier pass. I don't know if that is normal.

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


More information about the ghc-tickets mailing list