fkt-devel
[Top][All Lists]
Advanced

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

Re: [Fkt-devel] Missing initialization ?


From: François Trahay
Subject: Re: [Fkt-devel] Missing initialization ?
Date: Tue, 28 Aug 2012 10:38:27 +0200
User-agent: KMail/1.13.7 (Linux/3.2.0-3-amd64; KDE/4.8.4; x86_64; ; )

On Tuesday 28 August 2012 10:28:13 Samuel Thibault wrote:
> François Trahay, le Tue 28 Aug 2012 10:20:33 +0200, a écrit :
> > A simple fix for this problem is to add :
> >         if (!(fxt = calloc(1,sizeof(*fxt))))
> >         
> >                 goto out;
> > 
> > +       memset(fxt, 0, sizeof(*fxt));
> 
> calloc is supposed to have zeroed-out the structure already.
> 
> > However, this problem seems to happen only when EZTrace does nasty things
> > (redefine malloc + uses OpenMPI that also tend to do crappy hacks), so
> > I'm not sure whether it's FxT's fault or EZTrace's.
> 
> so I'd say it's EZTrace's fault.

Good point, it's EZTrace's fault. In some cases EZTrace's calloc did not zero 
the allocated buffer.

Thanks !

François



reply via email to

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