Uh oh!
There was an error while loading. Please reload this page.
Conversation
jedisct1
commented
Aug 13, 2025
That fix doesn't make sense. Maybe move |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
rpkak
commented
Aug 13, 2025
I also just fixed the IOUring errors. This is my diff: diff --git a/lib/std/os/linux/IoUring.zig b/lib/std/os/linux/IoUring.zig
index 62a87ac103..5c7e5ff1c2 100644
--- a/lib/std/os/linux/IoUring.zig+++ b/lib/std/os/linux/IoUring.zig@@ -1692,7 +1692,9 @@ pub const BufferGroup = struct {
pub fn get(self: *BufferGroup, cqe: linux.io_uring_cqe) ![]u8 {
const buffer_id = try cqe.buffer_id();
const used_len = @as(usize, @intCast(cqe.res));
- return self.get_by_id(buffer_id)[0..used_len];+ const buf = self.get_by_id(buffer_id)[0..used_len];+ std.valgrind.memcheck.makeMemDefinedIfAddressable(buf);+ return buf;
}
// Release buffer from CQE to the kernel.
@@ -4404,9 +4406,7 @@ fn expect_buf_grp_cqe(
try testing.expectEqual(posix.E.SUCCESS, cqe.err());
// get buffer from pool
- const buffer_id = try cqe.buffer_id();- const len = @as(usize, @intCast(cqe.res));- const buf = buf_grp.get_by_id(buffer_id)[0..len];+ const buf = try buf_grp.get(cqe);
try testing.expectEqualSlices(u8, expected, buf);
return cqe; |
ghost
commented
Aug 13, 2025
I committed it, feel free to change the author |
rpkak
commented
Aug 13, 2025
That's not important to me. |
rpkak
commented
Aug 13, 2025
ghost
commented
Aug 13, 2025
andrewrk
commented
Aug 13, 2025
I edited the title to better reflect the task: fixing things, not suppressing warnings |
| .graph = graph, | ||
| .build_root = build_root, | ||
| .cache_root = cache_root, | ||
| .debug_stack_frames_count = std.Build.debug_stack_frames_count, // strange: errors out as undeclared without the prefixes |
There was a problem hiding this comment.
this also errors out when running the std lib test suite
how do I fix this?
There was a problem hiding this comment.
@jedisct1 any ideas on this? I could just hardcode 8, but that seems like a bug waiting to happen.
ghost
commented
Aug 14, 2025
no valgrind errors on linux, tested with .debug_stack_frames_count = 8 (don't know how to fix that) |
Uh oh!
There was an error while loading. Please reload this page.
we don't care about the contents, we just need a file
…UEUE fixes a valgrind warning
…re buffer fixes a valgrind warning
the buffers are set to 0 after reading provide_buffers: triggered when checking cqe.user_data remove_buffers: expectEqualSlices
it is used to allocate something later, triggering a valgrind warning
…y fix valgrind warning
disabling the false positive warning is a bit tricky
andrewrk
commented
Aug 18, 2025
I have a feeling this is never going to get merged. Please do one at a time, and no drafts |
Uh oh!
There was an error while loading. Please reload this page.
this addresses some of the warnings in #24753