gluster-devel
[Top][All Lists]
Advanced

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

Re: [Gluster-devel] catching unitialized structures


From: Kaleb Keithley
Subject: Re: [Gluster-devel] catching unitialized structures
Date: Mon, 29 Apr 2013 22:08:08 -0400 (EDT)

I don't suppose anyone has run any of gluster under the helgrind option of 
valgrind?

----- Original Message -----
From: "Vijay Bellur" <address@hidden>
To: "Vijay Bellur" <address@hidden>
Cc: address@hidden
Sent: Monday, April 29, 2013 1:38:34 PM
Subject: Re: [Gluster-devel] catching unitialized structures

On 04/29/2013 11:05 PM, Vijay Bellur wrote:
> On 04/29/2013 10:31 PM, Emmanuel Dreyfus wrote:
>> Hi
>>
>> I found an uninitialized mutex and I am tracking another one. This is
>> not the first time I hit this kind of problem, which is invisible to
>> Linux developpers since Linux allows using an uninitialized mutex.
>>
>> I suggest chaning GF_CALLOC and friends so that it fills memory
>> with 0xdeadbeef during developement cycles. That would help people
>> catching that kind og issues earlier.
>>
>
> Maybe with -DDEBUG?
>

Hit send a bit too fast. There are a lot of places where we make an 
implicit assumption that GF_CALLOC and the likes memset the memory area 
to zero. It might not be an easy thing to achieve after all.

-Vijay


_______________________________________________
Gluster-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/gluster-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]