[GHC] #8960: SpecConstr usage explodes beyond 4GB with GHC 7.8.1 rc 2

#8960: SpecConstr usage explodes beyond 4GB with GHC 7.8.1 rc 2 -----------------------------------+--------------------------------------- Reporter: MichalGajda | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.8.1-rc2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Compile-time crash Unknown/Multiple | Test Case: cabal install hPDB Difficulty: Unknown | Blocking: Blocked By: | Related Tickets: | -----------------------------------+--------------------------------------- GHC 7.8 rc2 exhausts all memory on `Bio.PDB.EventParser.PDBEventParser` module in -O3 mode, but not in -O2 mode. The tail of ''-v3'' input seems to indicate that it dies during SpecConstr phase. The module successfully compiled with below 2GB RAM since GHC 6.12, so I wonder why the memory use exploded with the most recent version. *** SpecConstr: ==================== SpecConstr ==================== Result size of SpecConstr STEPS TO REPRODUCE: 1. `cabal install hPDB` RESULT EXPECTED: Successful compilation and installation CURRENT RESULT: Exhausts available memory and crashes when compiling `Bio.PDB.EventParser.PDBEventParser`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8960 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8960: SpecConstr usage explodes beyond 4GB with GHC 7.8.1 rc 2 ---------------------------------------+----------------------------------- Reporter: MichalGajda | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time crash | Unknown/Multiple Test Case: cabal install hPDB | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ---------------------------------------+----------------------------------- Comment (by MichalGajda): Note that -O3 is indicated as default build parameter in the package .cabal file. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8960#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8960: SpecConstr usage explodes beyond 4GB with GHC 7.8.1 rc 2 ---------------------------------------+----------------------------------- Reporter: MichalGajda | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time crash | Unknown/Multiple Test Case: cabal install hPDB | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: 7068, 7898 ---------------------------------------+----------------------------------- Changes (by quantheory): * related: => 7068, 7898 Comment: I guess SpecConstr seems to cause this sort of problem at times, so adding related bugs. I'm confused about -O2 vs. -O3, though. I thought that -O2 was the maximum, so -O3 and -O2 should be exactly the same? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8960#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8960: SpecConstr usage explodes beyond 4GB with GHC 7.8.1 rc 2 ---------------------------------------+----------------------------------- Reporter: MichalGajda | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time crash | Unknown/Multiple Test Case: cabal install hPDB | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: #7068, #7898 ---------------------------------------+----------------------------------- Changes (by quantheory): * related: 7068, 7898 => #7068, #7898 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8960#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8960: SpecConstr usage explodes beyond 4GB with GHC 7.8.1 rc 2 ---------------------------------------+----------------------------------- Reporter: MichalGajda | Owner: Type: bug | Status: new Priority: high | Milestone: 7.8.3 Component: Compiler | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time crash | Unknown/Multiple Test Case: cabal install hPDB | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: #7068, #7898 ---------------------------------------+----------------------------------- Changes (by thoughtpolice): * priority: normal => high -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8960#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8960: SpecConstr usage explodes beyond 4GB with GHC 7.8.1 rc 2 ---------------------------------------+----------------------------------- Reporter: MichalGajda | Owner: Type: bug | Status: new Priority: high | Milestone: 7.8.3 Component: Compiler | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time crash | Unknown/Multiple Test Case: cabal install hPDB | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: #7068, #7898 ---------------------------------------+----------------------------------- Comment (by George): Works for me on 64 bit 7.8.2 on MacOS. I have 12gb RAM but that shouldn't matter, the amount of virtual memory would be the limiting factor, wouldn't it? {{{ ghc --info [("Project name","The Glorious Glasgow Haskell Compilation System") ,("GCC extra via C opts"," -fwrapv") ,("C compiler command","/usr/local/bin/gcc") ,("C compiler flags"," -m64 -fno-stack-protector") ,("C compiler link flags"," -m64") ,("ld command","/usr/bin/ld") ,("ld flags"," -arch x86_64") ,("ld supports compact unwind","YES") ,("ld supports build-id","NO") ,("ld supports filelist","YES") ,("ld is GNU ld","NO") ,("ar command","/usr/bin/ar") ,("ar flags","clqs") ,("ar supports at file","NO") ,("touch command","touch") ,("dllwrap command","/bin/false") ,("windres command","/bin/false") ,("libtool command","libtool") ,("perl command","/usr/bin/perl") ,("target os","OSDarwin") ,("target arch","ArchX86_64") ,("target word size","8") ,("target has GNU nonexec stack","False") ,("target has .ident directive","True") ,("target has subsections via symbols","True") ,("Unregisterised","NO") ,("LLVM llc command","llc") ,("LLVM opt command","opt") ,("Project version","7.8.2") ,("Booter version","7.6.3") ,("Stage","2") ,("Build platform","x86_64-apple-darwin") ,("Host platform","x86_64-apple-darwin") ,("Target platform","x86_64-apple-darwin") ,("Have interpreter","YES") ,("Object splitting supported","YES") ,("Have native code generator","YES") ,("Support SMP","YES") ,("Tables next to code","YES") ,("RTS ways","l debug thr thr_debug thr_l thr_p dyn debug_dyn thr_dyn thr_debug_dyn l_dyn thr_l_dyn") ,("Support dynamic-too","YES") ,("Support parallel --make","YES") ,("Dynamic by default","NO") ,("GHC Dynamic","YES") ,("Leading underscore","YES") ,("Debug on","False") ,("LibDir","/usr/local/lib/ghc-7.8.2") ,("Global Package DB","/usr/local/lib/ghc-7.8.2/package.conf.d") ] }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8960#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8960: SpecConstr usage explodes beyond 4GB with GHC 7.8.1 rc 2 -------------------------------------+------------------------------------- Reporter: | Owner: MichalGajda | Status: new Type: bug | Milestone: 7.8.4 Priority: high | Version: 7.8.1-rc2 Component: Compiler | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: Compile- | Related Tickets: #7068, #7898 time crash | Test Case: cabal | install hPDB | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by simonpj): I believe this is finally fixed; see #8852. Can you try now, with HEAD? Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8960#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8960: SpecConstr usage explodes beyond 4GB with GHC 7.8.1 rc 2 -------------------------------------+------------------------------------- Reporter: | Owner: MichalGajda | Status: closed Type: bug | Milestone: 7.8.4 Priority: high | Version: 7.8.1-rc2 Component: Compiler | Keywords: Resolution: fixed | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: Compile- | Related Tickets: #7068, #7898 time crash | Test Case: cabal | install hPDB | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: new => closed * resolution: => fixed Comment: This looks like it's now fixed in HEAD. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8960#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8960: SpecConstr usage explodes beyond 4GB with GHC 7.8.1 rc 2 -------------------------------------+------------------------------------- Reporter: | Owner: MichalGajda | Status: merge Type: bug | Milestone: 7.8.4 Priority: high | Version: 7.8.1-rc2 Component: Compiler | Keywords: Resolution: fixed | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: Compile- | Related Tickets: #7068, #7898 time crash | Test Case: cabal | install hPDB | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: closed => merge -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8960#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8960: SpecConstr usage explodes beyond 4GB with GHC 7.8.1 rc 2 -------------------------------------+------------------------------------- Reporter: | Owner: MichalGajda | Status: closed Type: bug | Milestone: 7.8.4 Priority: high | Version: 7.8.1-rc2 Component: Compiler | Keywords: Resolution: fixed | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: Compile- | Related Tickets: #7068, #7898 time crash | Test Case: cabal | install hPDB | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: merge => closed Comment: Merged to `ghc-7.8`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8960#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC