Skip to content

-falignment-sanitisation unconditionally panics on aarch64

A module main = pure () crashes with when compiled with ghc -falignment-sanitisation on 9.6.1 on aarch64

[1 of 2] Compiling Main             ( A.hs, A.o )

<no location info>: error:
    panic! (the 'impossible' happened)
  GHC version 9.6.1:
	getRegister' (monadic CmmMachOp):
  %MO_AlignmentCheck_8_W64(_rgU::P64)
  Call stack:
      CallStack (from HasCallStack):
        callStackDoc, called at compiler/GHC/Utils/Panic.hs:189:37 in ghc:GHC.Utils.Panic
        pprPanic, called at compiler/GHC/CmmToAsm/AArch64/CodeGen.hs:653:14 in ghc:GHC.CmmToAsm.AArch64.CodeGen
  CallStack (from HasCallStack):
    panic, called at compiler/GHC/Utils/Error.hs:454:29 in ghc:GHC.Utils.Error


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

GHC: 9.6.1

On: aarch64-apple-darwin

Edited by Rodrigo Mesquita
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information