-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault in release mode with std.rand.Csprng.int(u8) #6384
Comments
var rand = csprng.random; This creates a fresh copy of the Use this instead: var rand = &csprng.random; |
This is the second time I've come across someone having this problem in a week. My first thought: maybe |
Yeah looks like we need #3803 or some other protection |
It looks like this is covered by #591 and related proposals. |
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: