Opened 12 months ago

Closed 7 months ago

Last modified 6 months ago

#8980 closed bug (fixed)

ghc-7.8.1 -O2 eats excessive amounts of RAM, highlighting-kate and pandoc-citeproc

Reported by: slyfox Owned by:
Priority: normal Milestone: 7.8.4
Component: Compiler Version: 7.8.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:


It's mostly a
rechecked on ghc-7.8.1:

I attempted to leave original packages as-is.

Steps to reproduce:

$ cd /tmp/
$ wget -c
$ tar -xzf selfcontained-eater-ghc-7.8-rc2.tar.gz
$ cd selfcontained-eater-ghc-7.8-rc2
$ ./
[279 of 452] Compiling Text.Highlighting.Kate.Syntax.Asp ( highlighting-kate-, highlighting-kate- )
stack overflow: use +RTS -K<size> to increase it

I did prepare this testcase for ghc-7.6.3 where it failed only on last 452 module.
./ is a dumb script calling ghc -O2 + cabal-generated bits.

Change History (4)

comment:1 Changed 12 months ago by simonpj

So this is another example of the SpecConstr blow-up, cf #7898, #7068, #7944, #5550, #8836.

comment:2 Changed 7 months ago by simonpj

  • Status changed from new to infoneeded

I believe this is fixed; see #8852. Can you try now, with HEAD?

comment:3 Changed 7 months ago by slyfox

  • Resolution set to fixed
  • Status changed from infoneeded to closed

Now all builds fine and does not crash ghc!

Some stats (both runs are -O2 -j4 --make):

highlighting-kate alone now takes about

~3.7GBs RAM

'selfcontained-eater-ghc-7.8-rc2.tar.gz' now takes

~7.1GBs RAM

and contains 452 modules

Which is very sane for amd64.

comment:4 Changed 6 months ago by tibbe

  • Milestone set to 7.8.4
Note: See TracTickets for help on using tickets.