[GHC] #13820: GHC goes out of memory while compiling nothing

#13820: GHC goes out of memory while compiling nothing -------------------------------------+------------------------------------- Reporter: seunje | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Compiling this results in GHC using all memory and eventually segfaulting {{{#!haskell f = id id id id id id id id id id id id id id id id id id id id id id id id id id id main = print 1 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13820 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13820: GHC goes out of memory while compiling nothing -------------------------------------+------------------------------------- Reporter: seunje | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): The fact that this uses a lot of memory is entirely unsurprising, as https://stackoverflow.com/questions/23746852/why-does-haskells-do-nothing- function-id-consume-tons-of-memory documents. I'm surprised that it segfaults, however. How much memory does your system have? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13820#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13820: GHC goes out of memory while compiling nothing -------------------------------------+------------------------------------- Reporter: seunje | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by seunje): Segfaults on Linux x64 with 8GB memory, no swap file. It works (n=27) on 16GB OSX machine, peeking at 11GB. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13820#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC