
#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: | -------------------------------------+------------------------------------- Changes (by bgamari): * differential: => Phab:D4021 Comment: Hmm, so the `i#` argument of `bitBigNat` is `0x7fffffffffffffff` in the failing call. The crash can be easily reproduced with simply `Data.Bits.bit 0x7fffffffffffffff`. Phab:D4021 should make the heap overflow a proper exception instead of bringing down the entire process (making debugging much easier). I still have yet to figure out exactly how the simplifier is producing this huge literal but regardless GHC should clearly behave a bit better here. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14272#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler