You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In normal build mode, this runs fine. However, in release-safe build mode, I get the following error when I run the executable.
Segmentation fault at address 0x0
/.../zig/lib/zig/std/rand.zig:939:26: 0x214673 in std.rand.Isaac64.fill (repro)
buf[i] = @truncate(u8, n);
^
The process was killed by SIGABRT: Aborted
The text was updated successfully, but these errors were encountered:
This creates a fresh copy of the random interface that's detached from csprng. When you call int you're basically mangling some random stack region, hence the segfault.
Here is a repro I've just tested with the most recent master from ziglang.org:
In normal build mode, this runs fine. However, in
release-safe
build mode, I get the following error when I run the executable.The text was updated successfully, but these errors were encountered: