Bus error (signal 10) on macOS (Apple M4) Julia 1.12.5
- Dominant language
- Julia
- Stars
- 586
- Forks
- 108
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 44
Description
**System:**
- Julia 1.12.5
- macOS (Apple M4)
- Enzyme version: [run `Pkg.status("Enzyme")`]
- Flux version: [run `Pkg.status("Flux")`]
**Minimal reproducer:**
```julia
using Flux, Enzyme
model = Chain(Dense(28^2 => 32, sigmoid), Dense(32 => 10), softmax)
dup_model = Enzyme.Duplicated(model)
x1 = randn32(28*28, 1)
y1 = [i==3 for i in 0:9]
grads_f = Flux.gradient((m,x,y) -> sum(abs2, m(x) .- y), dup_model, Const(x1), Const(y1))
julia> versioninfo()
Julia Version 1.12.5
Commit 5fe89b8ddc1 (2026-02-09 16:05 UTC)
Build Info:
Official https://julialang.org release
Platform Info:
OS: macOS (arm64-apple-darwin24.0.0)
CPU: 10 × Apple M4
WORD_SIZE: 64
LLVM: libLLVM-18.1.7 (ORCJIT, apple-m4)
GC: Built with stock GC
Threads: 1 default, 1 interactive, 1 GC (on 4 virtual cores)
(lux_work) pkg> status Enzyme
Project lux_work v0.1.0
Status `~/prj/juliaing/luxing/lux_work/Project.toml`
⌃ [7da242da] Enzyme v0.13.118
Info Packages marked with ⌃ have new versions available and may be upgradable.
(lux_work) pkg> status Flux
Project lux_work v0.1.0
Status `~/prj/juliaing/luxing/lux_work/Project.toml`
[587475ba] Flux v0.16.9
Contributor guide
Assessment
This issue has not been assessed yet.