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
When running a smithay compositor, or an example like list_modes in valgrind, various uninitialized memory errors are reported in drm-rs, like Syscall param ioctl(generic) points to uninitialised byte(s) and Conditional jump or move depends on uninitialised value(s).
I think Valgrind may be overly strict about arbitrary ioctls that it isn't familiar with, but it would be good to fix or suppress this in some way so that valgrind can be used for testing without dealing with a bunch of spurious messages.
It might make sense to change things like map_reserve! to zero initialize memory.
The text was updated successfully, but these errors were encountered:
Things like mem::zeroed() and MaybeUninit::zeroed() don't seem to actually initialize padding bytes either. But ptr::write_bytes can be used to memset the bytes to 0. #197 does this for the dynamic allocations, where it is fairly clean.
This is more awkward with the stack allocated ioctl parameters. This seems to work, but is not... ideal:
I think Box is necessary to do this and also abstract it, since copying won't initialize the padding. Otherwise I guess a macro could work...
With the change in #197, there seems to only be the Syscall param ioctl(generic) points to uninitialised byte(s) errors. Not sure if valgrind has a way to supress those.
Well, at least I have something to test Smithay/cosmic-comp in valgrind. I'll see what else I find doing that.
When running a smithay compositor, or an example like
list_modes
in valgrind, various uninitialized memory errors are reported in drm-rs, likeSyscall param ioctl(generic) points to uninitialised byte(s)
andConditional jump or move depends on uninitialised value(s)
.I think Valgrind may be overly strict about arbitrary ioctls that it isn't familiar with, but it would be good to fix or suppress this in some way so that valgrind can be used for testing without dealing with a bunch of spurious messages.
It might make sense to change things like
map_reserve!
to zero initialize memory.The text was updated successfully, but these errors were encountered: