Skip to content

ghc crash on arm with -j2: internal error: scavenge: unimplemented/strange closure type

ghc: internal error: scavenge: unimplemented/strange closure type 0 @ 0xac103240

(GHC version 7.10.1 for arm_unknown_linux)

Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug

Aborted

I can consistently get either this crash, or a segfault from ghc, building git-annex on an arm system. Seems about 50/50. In either case, it crashes either before ghc has printed out any "Compiling" lines, or within the first 1 or 2 files compiled.

I got lucky and found out a way to avoid the crash.. cabal was passing -j2 to ghc. If I remove the -j2, the build proceeds without a crash.

The hardware is a CubieTruck arm board, with 2 gb of ram, and 1 cpu core, running Debian armel unstable, with kernel 3.4.103.

I was able to use cabal to install the entire dependencies of git-annex, all the way up to yesod, which takes hours on this hardware, and all that built ok.. so I think the hardware is pretty stable, but still cannot really rule out a hardware problem.

Happy to debug further, although this machine is a bit resource constrained to do things like building ghc on it.

ghc 7.8.4 and 7.10.1 both crash the same way.

Trac metadata
Trac field Value
Version 7.10.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information