Skip to content

InexactError: Int64(1.0) on macOS Apple Silicon CI runners when using an x86_64 julia binary (via. rosetta) #55878

@lmiq

Description

@lmiq

I experienced this (non-reproducible) error in a CI run on the pre release (1.11 now), in the MacOS platform:

 ERROR: LoadError: TaskFailedException

    nested task error: InexactError: Int64(1.0)

The line where the error occurred was:

            index = floor(Int, xi) + 1

in which xi is a Float64. As far as I understand, the result of floor should always return an exactly representable Int, so the error should not occur.

When reporting this on Zulip, it, @jlumpe (sorry if the tag is wrong), reported having observed two times similar errors:

https://github.com/mikeingold/MeshIntegrals.jl/actions/runs/10965929580/job/30452792024?pr=73#step:7:191
https://github.com/JoshuaLampert/DispersiveShallowWater.jl/actions/runs/10811172112/job/29990016675?pr=150#step:7:8511

But these with 1.10.

Thus, although hard to reproduce, might be something worth investigating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compiler:effectseffect analysisheisenbugThis bug occurs unpredictablykernel bug 🤯This is really a bug in the underlying OS kernelrr trace wantedAn rr trace would help with debugging this issue - you can help out by creating onesystem:apple silicon rosettaAffects Apple Silicon (e.g. M1), but only when running under Rosetta 2

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions