[Gluster-devel] catching unitialized structures

Emmanuel Dreyfus manu at netbsd.org
Tue Apr 30 02:53:07 UTC 2013

Vijay Bellur <vbellur at redhat.com> wrote:

> There are a lot of places where we make an implicit assumption that
> GF_CALLOC and the likes memset the memory area to zero.

The problem I refer to is that on current Linux systems,
pthread_mutex_lock() will work on a zero'ed area where
pthread_mutex_init() was not called. That behavior should not be taken
for granted in the future on Linux, and it is likely to break on any non
Linux system.

Emmanuel Dreyfus
manu at netbsd.org

More information about the Gluster-devel mailing list