zig
zig copied to clipboard
Soft AEGIS-256 crashes on Raspberry Pi 4B with optimization
Zig Version
0.11.0
Steps to Reproduce and Observed Behavior
On Raspberry Pi 4B, run
zig build-exe lib/std/crypto/benchmark.zig -mcpu=baseline -OReleaseSafe --zig-lib-dir lib
./benchmark --filter aegis-256
Will crash with log:
pi@raspberrypi ~/zig ((0.11.0))> zig build-exe lib/std/crypto/benchmark.zig -mcpu=baseline -OReleaseSafe --zig-lib-dir lib && ./benchmark --filter aegis-256
Segmentation fault at address 0x72892c42
/home/pi/zig/lib/std/crypto/aes/soft.zig:736:25: 0x2311e8 in benchmarkAead__anon_5835 (benchmark)
t[1][i] = tx[of1];
^
/home/pi/zig/lib/std/crypto/benchmark.zig:532:49: 0x26bf4f in main (benchmark)
const throughput = try benchmarkAead(E.ty, mode(128 * MiB));
^
Unwind error at address `exe:0x26bf4f` (error.InvalidRegister), trace may be incomplete
???:?:?: 0x7fec66641f in ??? (???)
fish: “./benchmark --filter aegis-256” terminated by signal SIGABRT (Abort)
Expected Behavior
The benchmark code should not crash.