xiph / rav1e

The fastest and safest AV1 encoder.
BSD 2-Clause "Simplified" License
3.69k stars 252 forks source link

Process killed with `illegal hardware instruction` on Apple M1 #3392

Open Shnatsel opened 2 months ago

Shnatsel commented 2 months ago

Describe the bug

Running a trivial program that uses rav1e results in zsh: illegal hardware instruction.

This issue was originally reported against the image crate, but was later isolated to rav1e: https://github.com/image-rs/image/issues/2108

To Reproduce cargo run in this repository: https://github.com/astral4/avif-ub

Expected behavior The process should not crash.

Required Information Originally observed on Mac OS, on rustc 1.75.0 (82e1608df 2023-12-21), with rav1e v0.7.1. You can find the full Cargo.lock in the repository.

lu-zero commented 2 months ago

I cannot reproduce the problem with rustc 1.79.0 (129f3b996 2024-06-10) on an Apple M2.

Shnatsel commented 2 months ago

Thank you for investigating!

@astral4 can you confirm whether you are still experiencing this issue?