JuliaApproximation / JuliaApproximation/FastTransforms.jl

jac2cheb: Crash on M1 (with Rosetta)

Open
#175 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
281
Forks
27
PR merge metrics
No merged PRs in 30d

Description

I am seeing a crash due to an illegal instruction when running jac2cheb.

FastTransforms: v0.14.0
Julia: v1.7.2
System: macOS Monterey 12.0.1
Chip: Apple M1 Pro

julia> using FastTransforms

julia> jac2cheb([1.0], 0, 0)

signal (4): Illegal instruction: 4
in expression starting at REPL[2]:1
ft_plan_jacobi_to_chebyshev at /Users/jack/.julia/artifacts/f0f10168612c9af7147248b10227d216ba47afd4/lib/libfasttransforms.dylib (unknown line)
#plan_jac2cheb#92 at /Users/jack/.julia/packages/FastTransforms/FzWUg/src/libfasttransforms.jl:515 [inlined]
plan_jac2cheb at /Users/jack/.julia/packages/FastTransforms/FzWUg/src/libfasttransforms.jl:515 [inlined]
#plan_jac2cheb#22 at /Users/jack/.julia/packages/FastTransforms/FzWUg/src/libfasttransforms.jl:400 [inlined]
plan_jac2cheb at /Users/jack/.julia/packages/FastTransforms/FzWUg/src/libfasttransforms.jl:400
unknown function (ip: 0x10fcbbdf3)
...

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the crash with jac2cheb([1.0], 0, 0) on the reported M1/Rosetta setup. Start at src/libfasttransforms.jl:400 and src/libfasttransforms.jl:515, where the stack trace enters plan_jac2cheb; investigate the illegal instruction from libfasttransforms.dylib. Done means the same call no longer crashes on the reported system.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.