[GHC] #9253: "internal error: evacuate(static): strange closure type 0" when running in QEMU

#9253: "internal error: evacuate(static): strange closure type 0" when running in QEMU ------------------------------------+------------------------------------- Reporter: ocharles | Owner: simonmar Type: bug | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 7.8.2 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: Runtime crash Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- We're trying to use NixOS to automatically run our acceptance tests in a VM on commit, in order to guarantee system stability. However, we're periodically seeing our web server component, compiled with GHC 7.8.2 is failing to start up. When it fails, the error message is always: {{{ internal error: evacuate(static): strange closure type 0 (GHC version 7.8.2 for x86_64_unknown_linux) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} Happy to do more debugging on this, but I'll need to be pointed in the right direction. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9253 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9253: "internal error: evacuate(static): strange closure type 0" when running in QEMU -------------------------------------+------------------------------------ Reporter: ocharles | Owner: simonmar Type: bug | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by ocharles): I should point out that the exact same code doesn't fail when we run it on bare metal, so it seems to be something specific to running in QEMU. This also doesn't always happen, but it certainly feels like it happens more often than not. We're building this executable with: {{{ ghc-options: -Wall -O2 -threaded -rtsopts }}} We run the server with: {{{ ${metronomeConfig.package}/bin/metronome-server -c ${config.services.fynder.configFile} +RTS -k1M }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9253#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9253: "internal error: evacuate(static): strange closure type 0" when running in QEMU -------------------------------------+------------------------------------ Reporter: ocharles | Owner: simonmar Type: bug | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by ocharles): Here's the compiler flags that were used: {{ configure flags: --disable-split-objs --disable-library-profiling --enable-shared --enable-library-vanilla --enable-executable-dynamic --disable-tests -fsystemdLogging --ghc- option=-optl=-Wl,-rpath=/nix/store/blagiv17bwhqhnpqv6jbkyhd8i1dnig5-metronome-0.1.0/lib/ghc-7.8.2/metronome-0.1.0 Configuring metronome-0.1.0... }}} The full build log can be seen at http://hydra.fynder.io/build/86/log/raw -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9253#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9253: "internal error: evacuate(static): strange closure type 0" when running in QEMU -------------------------------------+------------------------------------ Reporter: ocharles | Owner: simonmar Type: bug | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by simonmar): Debugging this will require a fair bit of knowledge of GHC internals, so if you want to tackle it yourself then head over to Commentary/Rts and Debugging/CompiledCode. If you can find a smaller test case that demonstrates the problem and you can distribute, please add it here and I'll take a look. I'm wondering whether this is the same thing as #7320. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9253#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9253: "internal error: evacuate(static): strange closure type 0" when running in QEMU -------------------------------------+------------------------------------- Reporter: ocharles | Owner: simonmar Type: bug | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by ocharles): I am no longer working at the same job where we were seeing this error. Perhaps this ticket should be closed and re-opened if it happens again (either by me or someone else), as I'll be unable to provide any extra information. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9253#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9253: "internal error: evacuate(static): strange closure type 0" when running in QEMU -------------------------------------+------------------------------------- Reporter: ocharles | Owner: simonmar Type: bug | Status: closed Priority: normal | Milestone: Component: Runtime System | Version: 7.8.2 Resolution: worksforme | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonmar): * status: new => closed * resolution: => worksforme Comment: Thanks @ocharles, feel free to re-open if it happens again. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9253#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC