[GHC] #8941: Module that causes GHC-7.8 to exhaust memory compiled with -O2

#8941: Module that causes GHC-7.8 to exhaust memory compiled with -O2 ------------------------------------+--------------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.1-rc2 Keywords: | Operating System: Linux Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+--------------------------------- The module is JSON.Render in http://src.seereason.com/o2bug. When compiled ghc uses up at least 16GB of RAM and then dies. I haven't been able to simplify it very much, almost any change to JSON.Render causes it to start working properly. I did get it to fail using only packages available in hackage. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8941 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8941: Module that causes GHC-7.8 to exhaust memory when compiled with -O2 ---------------------------------+------------------------------------ Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8941#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8941: Module that causes GHC-7.8 to exhaust memory when compiled with -O2 ---------------------------------+------------------------------------ Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Changes (by gidyn): * cc: gideon@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8941#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8941: Module that causes GHC-7.8 to exhaust memory when compiled with -O2 ---------------------------------+------------------------------------ Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Changes (by guest): * cc: marco.vax91@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8941#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8941: Module that causes GHC-7.8 to exhaust memory when compiled with -O2 ---------------------------------+------------------------------------ Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Comment (by bjp): I had a similar problem one month ago and believe that it is caused by https://ghc.haskell.org/trac/ghc/ticket/7068 in my case. I temporarily fixed it by adding a `-fno-spec-constr` option, maybe you want to try that as well? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8941#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8941: Module that causes GHC-7.8 to exhaust memory when compiled with -O2 ---------------------------------+------------------------------------ Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Comment (by guest): I will give that a try. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8941#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8941: Module that causes GHC-7.8 to exhaust memory when compiled with -O2 ---------------------------------+------------------------------------ Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Changes (by jwlato): * cc: jwlato@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8941#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8941: Module that causes GHC-7.8 to exhaust memory when compiled with -O2 -------------------------------------+------------------------------------- Reporter: guest | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: | Difficulty: Unknown None/Unknown | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by simonpj): * status: new => infoneeded Comment: I believe this is finally fixed; see #8852. Can you try now, with HEAD? Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8941#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8941: Module that causes GHC-7.8 to exhaust memory when compiled with -O2 -------------------------------------+------------------------------------- Reporter: guest | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.8.1-rc2 Resolution: fixed | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: | Difficulty: Unknown None/Unknown | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: infoneeded => closed * resolution: => fixed Comment: Looks fixed now after a quick attempt. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8941#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8941: Module that causes GHC-7.8 to exhaust memory when compiled with -O2 -------------------------------------+------------------------------------- Reporter: guest | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.8.1-rc2 Resolution: fixed | Keywords: Operating System: Linux | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by gidyn): * cc: gideon@…, marco.vax91@…, jwlato@… (removed) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8941#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC