Re: valgrind and root 4.02/00

From: Rene BRUN <brun_at_mail.cern.ch>
Date: Sat, 15 Jan 2005 23:14:41 +0100 (MET)


Thomas,

My usual request: I do not see any problems with TVector::Streamer. You probably see the side-effect of another problem (double delete). Send me the shortest possible system reproducing the problem.

Rene Brun

On
Fri,
14 Jan 2005, Thomas Bretz wrote:

> Hi Rene,
>
> > This is a typical sign of a dynamic array in one of your classes with a
> > pointer
> > that is not set or doubly deleted.
> > I suggest to run with gDebug=2 before reading your object.
>
> Sure, but for me it looked like it is in TVector, due to
> >> ==22326== by 0x351BA55D: TVector::Streamer(TBuffer&) (in
> That's why I thought it is something in the root code...
>
> Thomas.
>
> > Thomas Bretz wrote:
> >
> > > Hi,
> > >
> > > with valgrind and root 4.02/00 I get the following
> > > ==22326== Invalid free() / delete / delete[]
> > > ==22326== at 0x3414CDE1: operator delete[](void*)
> > > (vg_replace_malloc.c:162)
> > > ==22326== by 0x34312065: int
> > > TStreamerInfo::ReadBuffer<char**>(TBuffer&, char** const&, int, int, int,
> > > int) (in /data/cern/root-4.02.00/lib/libCore.so)
> > > ==22326== by 0x342F9962: TClass::ReadBuffer(TBuffer&, void*, int,
> > > unsigned, unsigned) (in /data/cern/root-4.02.00/lib/libCore.so)
> > > ==22326== by 0x351BA55D: TVector::Streamer(TBuffer&) (in
> > > /data/cern/root-4.02.00/lib/libMatrix.so)
> > > ==22326== by 0x34313D37: int
> > > TStreamerInfo::ReadBuffer<char**>(TBuffer&, char** const&, int, int, int,
> > > int) (in /data/cern/root-4.02.00/lib/libCore.so)
> > > ==22326== by 0x342F9B93: TClass::ReadBuffer(TBuffer&, void*) (in
> > > /data/cern/root-4.02.00/lib/libCore.so)
> > >
> > >
> > > Best regards,
> > > Thomas.
> > >
> >
>
Received on Sat Jan 15 2005 - 23:15:24 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET