-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
lots of valgrind warnings from adding a seemingly unrelated line of code #2061
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
Comments
I can reproduce this with 85d0f0d and Valgrind 3.14 on x86_64-linux-gnu and x86_64-linux-musl. Some observations:
This is either a bug in Zig or in Valgrind, and based on the fact that it still happens with
|
This is actually #591. Can't believe I thought it was a Valgrind bug for a hot minute! Sorry to any Valgrind developers reading this. - var rnd = default_prng.random;
+ const rnd = &default_prng.random; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Build with
zig build-exe main.zig --library c
and runvalgrind ./main
to get lots of errors. Then comment outconst lel = Lel.init(&rnd);
and build and valgrind again, no errors.zig version:
0.3.0+d495dcc3
The text was updated successfully, but these errors were encountered: