Re: valgrind spews

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/22/18 11:27 AM, Bart Van Assche wrote:
> On Thu, 2018-03-22 at 11:23 -0600, Jens Axboe wrote:
>> On 3/22/18 11:12 AM, Bart Van Assche wrote:
>>> Where is the sk_out structure allocated? Can Valgrind know whether or not
>>> that structure has been initialized?
>>
>> In server.c:accept_loop() and that structure is memset at alloc
>> time as it's coming out of smalloc().
> 
> Would you be OK with changing that smalloc() call into scalloc() such that
> Valgrind knows that that structure is initialized? On my laptop the following
> is sufficient to suppress the complaints mentioned in my previous e-mail:

Sure, done.


-- 
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux