achirkin / easytensor

Many-dimensional type-safe numeric ops
https://hackage.haskell.org/package/easytensor
BSD 3-Clause "New" or "Revised" License
46 stars 2 forks source link

internal error: ARR_WORDS object entered #30

Open achirkin opened 3 years ago

achirkin commented 3 years ago

Function getBytes on ArrayBase type can crash with the following message:

internal error: ARR_WORDS object (0x...) entered!
    (GHC version 9.0.1 for x86_64_unknown_linux)
    Please report this as a GHC bug:  https://www.haskell.org/ghc/reportabug

I have a workaround for that, but sadly it does not work anymore with GHC 9.0.1.

Here is the related issue: https://gitlab.haskell.org/ghc/ghc/-/issues/19645

achirkin commented 3 years ago

A better workaround is now in place via a0ae7f5ff15d0f17d0754d283a26e0dadd1db110

A fix from GHC team is also coming; todo: remove the workaround conditionally on fixed GHC versions.