Ticket #1397 (closed bug: fixed)

Opened 6 years ago

Last modified 5 years ago

GHC blows up while compiling Language.Haskell.TH.Syntax with -O2

Reported by: simonmar Owned by:
Priority: high Milestone: 6.8.1
Component: Compiler Version: 6.7
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

When compiling Language.Haskell.TH.Syntax, GHC grows to over 2Gb here on x86-64. This is a stage1 compiler, built by GHC 6.6.1. This bug has apparently been introduced recently, because we're seeing out-of-memory errors where we weren't previously, but I haven't been able to track down when it was introduced yet.

Looking at the -v2 output, the Core size jumps first for FloatInward? (3x), and then for LiberateCase? (10x). After LiberateCase?, GHC keeps on growing - perhaps there's also a space leak exacerbating the problem.

Change History

Changed 6 years ago by simonmar

  • status changed from new to closed
  • resolution set to fixed

Fixed by this patch:

Wed Jun 20 00:56:48 PDT 2007  simonpj@microsoft.com
  * Fix egregious sharing bug in LiberateCase

Changed 6 years ago by igloo

  • milestone changed from 6.8 branch to 6.8.1

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.