[GHC] #8866: scavenge_stack: weird activation record found on stack on "cabal install -j"

#8866: scavenge_stack: weird activation record found on stack on "cabal install -j" ----------------------------------+---------------------------------- Reporter: adinapoli | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Keywords: | Operating System: MacOS X Architecture: x86_64 (amd64) | Type of failure: Runtime crash Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ----------------------------------+---------------------------------- Hello everyone, sorry if this was reported somewhere else. I know that the dreadful "scavenge_stack" is nothing new, but it's the first time I see it on Mac OS X (I'm on Maverick, OS X 10.9.2). This is a "stacktrace" of the problem. It seems to happen almost consistently if I try to do a parallel installation: {{{ [hsenv]☁ ~HSENV cabal install -j snap Resolving dependencies... Configuring HUnit-1.2.5.2... Downloading MonadRandom-0.1.13... Downloading logict-0.6.0.2... cabal: internal error: scavenge_stack: weird activation record found on stack: 415597384 (GHC version 7.8.0.20140228 for x86_64_apple_darwin) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug [1] 2328 abort cabal install -j snap [hsenv]☁ ~HSENV }}} The concerning thing is that it doesn't seem to be deterministic. After issuing that command, I have tried again and it worked this time: {{{ [hsenv]☁ ~HSENV cabal install -j snap Resolving dependencies... Configuring HUnit-1.2.5.2... Downloading MonadRandom-0.1.13... Configuring SHA-1.6.4... Downloading logict-0.6.0.2... Downloading process-1.1.0.2... [...] }}} It seems to happen with every package and I have tried to install snap just for the sake of reproducing it. Thanks! ps. Cross-posted on Github into the cabal issue tracker: https://github.com/haskell/cabal/issues/1716 Alfredo -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8866 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8866: scavenge_stack: weird activation record found on stack on "cabal install -j" ----------------------------------+---------------------------------- Reporter: adinapoli | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------+---------------------------------- Comment (by carter): which build of GHC did you use? Austin's official RC2 build? whats the output of your `ghc --info` -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8866#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8866: scavenge_stack: weird activation record found on stack on "cabal install -j" ----------------------------------+---------------------------------- Reporter: adinapoli | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------+---------------------------------- Comment (by adinapoli): Replying to [comment:1 carter]:
which build of GHC did you use? Austin's official RC2 build?
Yes, it was Austin's official RC2 build for Mavericks.
whats the output of your `ghc --info`
I don't have access to that machine now, I'll edit the ticket this evening adding the relevant info :) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8866#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8866: scavenge_stack: weird activation record found on stack on "cabal install -j" ----------------------------------+---------------------------------- Reporter: adinapoli | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------+---------------------------------- Comment (by simonpj): Austin says he can't reproduce this on the latest MacOS, 10.9. Can anyone else? Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8866#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8866: scavenge_stack: weird activation record found on stack on "cabal install -j" ----------------------------------+---------------------------------- Reporter: adinapoli | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.2 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------+---------------------------------- Changes (by thoughtpolice): * milestone: 7.8.1 => 7.8.2 Comment: I've been testing a Cabal built with RC2 on OS X for quite a long time now and cannot reproduce this on Lion or Mavericks, so I'm punting this bug. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8866#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8866: scavenge_stack: weird activation record found on stack on "cabal install -j" ----------------------------------+---------------------------------- Reporter: adinapoli | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.2 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------+---------------------------------- Comment (by adinapoli): Replying to [comment:4 thoughtpolice]:
I've been testing a Cabal built with RC2 on OS X for quite a long time now and cannot reproduce this on Lion or Mavericks, so I'm punting this bug.
Fair enough, I'll keep you guys posted on whether or not it will show up more aggressively on my machine and if I can come up with a reproducible scenario :) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8866#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8866: scavenge_stack: weird activation record found on stack on "cabal install -j" ----------------------------------+---------------------------------- Reporter: adinapoli | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.3 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------+---------------------------------- Comment (by adinapoli): Hi guys, I've installed GHC 7.8.1 (official release) and I'm still experiencing this on my 2009 MacPro (with Mavericks). This is the output of "cabal install -v3 -j", hoping we could extract some meaningful info out of this. {{{ Using a sandbox located at /Users/adinapoli/programming/haskell/Tidal/.cabal-sandbox Searching for ghc in path. Found ghc at /Users/adinapoli/Library/Haskell/current/bin/ghc ("/Users/adinapoli/Library/Haskell/current/bin/ghc",["--numeric-version"]) /Users/adinapoli/Library/Haskell/current/bin/ghc is version 7.8.1 looking for tool ghc-pkg near compiler in /Users/adinapoli/Library/Haskell/current/bin found ghc-pkg in /Users/adinapoli/Library/Haskell/current/bin/ghc-pkg ("/Users/adinapoli/Library/Haskell/current/bin/ghc-pkg",["--version"]) /Users/adinapoli/Library/Haskell/current/bin/ghc-pkg is version 7.8.1 ("/Users/adinapoli/Library/Haskell/current/bin/ghc",["--supported- languages"]) ("/Users/adinapoli/Library/Haskell/current/bin/ghc",["--info"]) The package database already exists: /Users/adinapoli/programming/haskell/Tidal/.cabal-sandbox/x86_64-osx- ghc-7.8.1-packages.conf.d Reading available packages... Reading available packages... Reading installed packages... ("/Users/adinapoli/Library/Haskell/current/bin/ghc-pkg",["dump ","--package-db=/Users/adinapoli/programming/haskell/Tidal/.cabal- sandbox/x86_64-osx-ghc-7.8.1-packages.conf.d","-v0"]) ("/Users/adinapoli/Library/Haskell/current/bin/ghc",["--print-libdir"]) Reading installed packages... ("/Users/adinapoli/Library/Haskell/current/bin/ghc-pkg",["dump","-- global","-v0"]) ("/Users/adinapoli/Library/Haskell/current/bin/ghc-pkg",["dump ","--package-db=/Users/adinapoli/programming/haskell/Tidal/.cabal- sandbox/x86_64-osx-ghc-7.8.1-packages.conf.d","-v0"]) ("/Users/adinapoli/Library/Haskell/current/bin/ghc",["--print-libdir"]) Reading available packages... Choosing modular solver. Resolving dependencies... [__0] trying: tidal-0.3.5 (user goal) [__1] trying: base-4.7.0.0/installed-0e1... (dependency of tidal-0.3.5) [__2] trying: rts-1.0/installedbuil... (dependency of base-4.7.0.0 /installed-0e1...) [__3] trying: integer-gmp-0.5.1.0/installed-557... (dependency of base-4.7.0.0/installed-0e1...) [__4] trying: ghc-prim-0.3.1.0/installed-68a... (dependency of base-4.7.0.0/installed-0e1...) [__5] trying: bytestring-0.10.4.0/installed-294... (dependency of tidal-0.3.5) [__6] trying: deepseq-1.3.0.2/installed-355... (dependency of bytestring-0.10.4.0/installed-294...) [__7] trying: array-0.5.0.0/installed-867... (dependency of deepseq-1.3.0.2/installed-355...) [__8] trying: binary-0.7.1.0/installed-619... (dependency of tidal-0.3.5) [__9] trying: mersenne-random-pure64-0.2.0.4 (dependency of tidal-0.3.5) [_10] trying: mersenne-random-pure64-0.2.0.4:-small_base [_11] trying: random-1.0.1.1 (dependency of mersenne-random- pure64-0.2.0.4:-small_base) [_12] trying: old-time-1.1.0.2/installed-9cc... (dependency of mersenne- random-pure64-0.2.0.4:-small_base) [_13] trying: old-locale-1.0.0.6/installed-ab7... (dependency of old- time-1.1.0.2/installed-9cc...) [_14] trying: transformers-0.3.0.0/installed-aab... (dependency of tidal-0.3.5) [_15] trying: mtl-2.1.3.1 (dependency of tidal-0.3.5) [_16] trying: text-1.1.0.1 (dependency of tidal-0.3.5) [_17] trying: text-1.1.0.1:-integer-simple [_18] trying: text-1.1.0.1:-developer [_19] trying: text-1.1.0.1:!test [_20] trying: websockets-0.8.2.1 (dependency of tidal-0.3.5) [_21] trying: websockets-0.8.2.1:!test [_22] trying: entropy-0.2.2.4 (dependency of websockets-0.8.2.1) [_23] trying: unix-2.7.0.1/installed-a02... (dependency of entropy-0.2.2.4) [_24] trying: SHA-1.6.4 (dependency of websockets-0.8.2.1) [_25] trying: SHA-1.6.4:-test [_26] trying: SHA-1.6.4:-exe [_27] trying: SHA-1.6.4:+decoderinterface [_28] trying: directory-1.2.1.0/installed-8da... (dependency of SHA-1.6.4) [_29] trying: filepath-1.3.0.2/installed-ea3... (dependency of directory-1.2.1.0/installed-8da...) [_30] trying: network-2.4.2.2 (dependency of websockets-0.8.2.1) [_31] trying: network-2.4.2.2:!test [_32] trying: io-streams-1.1.4.2 (dependency of websockets-0.8.2.1) [_33] trying: io-streams-1.1.4.2:-nointeractivetests [_34] trying: io-streams-1.1.4.2:!test [_35] trying: zlib-bindings-0.1.1.5 (dependency of io-streams-1.1.4.2) [_36] trying: zlib-bindings-0.1.1.5:!test [_37] trying: zlib-0.5.4.1 (dependency of zlib-bindings-0.1.1.5) [_38] trying: vector-0.10.9.1 (dependency of io-streams-1.1.4.2) [_39] trying: vector-0.10.9.1:-unsafechecks [_40] trying: vector-0.10.9.1:-internalchecks [_41] trying: vector-0.10.9.1:+boundschecks [_42] trying: primitive-0.5.2.1 (dependency of io-streams-1.1.4.2) [_43] trying: case-insensitive-1.2.0.0 (dependency of websockets-0.8.2.1) [_44] trying: case-insensitive-1.2.0.0:!bench [_45] trying: case-insensitive-1.2.0.0:!test [_46] trying: blaze-builder-0.3.3.2 (dependency of websockets-0.8.2.1) [_47] trying: base64-bytestring-1.0.0.1 (dependency of websockets-0.8.2.1) [_48] trying: base64-bytestring-1.0.0.1:!test [_49] trying: attoparsec-0.11.2.1 (dependency of websockets-0.8.2.1) [_50] trying: attoparsec-0.11.2.1:-developer [_51] trying: attoparsec-0.11.2.1:!bench [_52] trying: attoparsec-0.11.2.1:!test [_53] trying: scientific-0.2.0.2 (dependency of attoparsec-0.11.2.1) [_54] trying: scientific-0.2.0.2:!bench [_55] trying: scientific-0.2.0.2:!test [_56] trying: time-1.4.2/installed-b6e... (dependency of tidal-0.3.5) [_57] trying: containers-0.5.5.1/installed-b57... (dependency of tidal-0.3.5) [_58] trying: colour-2.3.3 (dependency of tidal-0.3.5) [_59] trying: hashable-1.2.1.0 (dependency of tidal-0.3.5) [_60] trying: hashable-1.2.1.0:-sse41 [_61] trying: hashable-1.2.1.0:+sse2 [_62] trying: hashable-1.2.1.0:+integer-gmp [_63] trying: hashable-1.2.1.0:!bench [_64] trying: hashable-1.2.1.0:!test [_65] trying: hosc-0.14 (dependency of tidal-0.3.5) [_66] trying: hosc-0.14:!bench [_67] trying: hosc-0.14:!test [_68] trying: data-binary-ieee754-0.4.4 (dependency of hosc-0.14) [_69] trying: parsec-3.1.5 (dependency of tidal-0.3.5) [_70] trying: parsec-3.1.5:+base4 [_71] next goal: process (dependency of tidal-0.3.5) [_71] trying: process-1.2.0.0/installed-a5a... [_72] done Notice: installing into a sandbox located at /Users/adinapoli/programming/haskell/Tidal/.cabal-sandbox Ready to install SHA-1.6.4 cabal: internal error: scavenge_stack: weird activation record found on stack: 54 (GHC version 7.8.1 for x86_64_apple_darwin) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug [1] 3861 abort cabal install -v3 -j }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8866#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8866: scavenge_stack: weird activation record found on stack on "cabal install -j" ----------------------------------+---------------------------------- Reporter: adinapoli | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.3 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------+---------------------------------- Comment (by adinapoli): Interestingly enough, now I can't reproduce it anymore with 7.8.2. Keep you posted. Alfredo -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8866#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8866: scavenge_stack: weird activation record found on stack on "cabal install -j" ----------------------------------+---------------------------------- Reporter: adinapoli | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.3 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------+---------------------------------- Comment (by joelteon): This also happens to me on OSX 10.9 with the GHC 7.8.2 binary distribution. Using `-j1` when using cabal prevents the bug. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8866#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8866: scavenge_stack: weird activation record found on stack on "cabal install -j" ----------------------------------+---------------------------------- Reporter: adinapoli | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: 7.8.3 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------+---------------------------------- Changes (by thoughtpolice): * status: new => infoneeded -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8866#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8866: scavenge_stack: weird activation record found on stack on "cabal install -j" ----------------------------------+---------------------------------- Reporter: adinapoli | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.8.3 Component: Build System | Version: 7.8.1-rc2 Resolution: fixed | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------+---------------------------------- Changes (by simonmar): * status: infoneeded => closed * resolution: => fixed Comment: I think this is #9045, which I've just fixed in HEAD and will be in 7.8.3. Optimistically closing; please re-open if the problem is in 7.8.3 RC. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8866#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC