Hi Heather, This problem had already been reported by Maarten Balintijn and fixed in version 3.04/02 Rene Brun On Tue, 4 Feb 2003, Heather Kelly wrote: > Hi, > > I'm using ROOT 3.03.09b on both windows and linux. > One of my GLAST colleagues produced the following when running our code > through valgrind. > I was wondering if there are any known memory allocation issues with > TObjArray in 3.03.09? > And were they addressed in 3.04.02? > > Thanks, > Heather > > ==4819== > ==4819== Mismatched free() / delete / delete [] > ==4819== at 0x4004931E: __builtin_vec_delete (vg_clientfuncs.c:214) > ==4819== by 0x4094A26F: TStorage::ReAlloc(void *, unsigned int, > unsigned int) (in > /a/sulky07/g.glast.u05/GLAST_EXT/rh72_gcc2952/ROOT/v3.03.09/root/lib/libCore > .so) > ==4819== by 0x40973B67: TObjArray::Expand(int) (in > /a/sulky07/g.glast.u05/GLAST_EXT/rh72_gcc2952/ROOT/v3.03.09/root/lib/libCore > .so) > ==4819== by 0x40973791: TObjArray::AddAtAndExpand(TObject *, int) > (in/a/sulky07/g.glast.u05/GLAST_EXT/rh72_gcc2952/ROOT/v3.03.09/root/lib/lib > Core.so) > ==4819== Address 0x55520D70 is 0 bytes inside a block of size 64 alloc'd > ==4819== at 0x40048FE8: __builtin_new (vg_clientfuncs.c:125) > ==4819== by 0x40973FD4: TObjArray::Init(int, int) (in > /a/sulky07/g.glast.u05/GLAST_EXT/rh72_gcc2952/ROOT/v3.03.09/root/lib/libCore > .so) > ==4819== by 0x409732F3: TObjArray::TObjArray(int, int) (in > /a/sulky07/g.glast.u05/GLAST_EXT/rh72_gcc2952/ROOT/v3.03.09/root/lib/libCore > .so) > ==4819== by 0x403D59A7: McEvent::McEvent(void) (in > /afs/slac.stanford.edu/u/ec/cohen/glast/mcRootData/v2r9/rh72_gcc2953/libmcRo > otData.so) > ==4819== epoch 56429 (bb 2821450k): thresh 19999, out 53557 (904k -> > 12535k), new TT 83394, TC 18610k > ==4819== > > ==4819== 9 errors in context 45 of 64: > ==4819== Mismatched free() / delete / delete [] > ==4819== at 0x4004931E: __builtin_vec_delete (vg_clientfuncs.c:214) > ==4819== by 0x4094A26F: TStorage::ReAlloc(void *, unsigned int, unsigned > int) (in > /a/sulky07/g.glast.u05/GLAST_EXT/rh72_gcc2952/ROOT/v3.03.09/root/lib/libCore > .so) > ==4819== by 0x40973B67: TObjArray::Expand(int) (in > /a/sulky07/g.glast.u05/GLAST_EXT/rh72_gcc2952/ROOT/v3.03.09/root/lib/libCore > .so) > ==4819== by 0x40973791: TObjArray::AddAtAndExpand(TObject *, int) (in > /a/sulky07/g.glast.u05/GLAST_EXT/rh72_gcc2952/ROOT/v3.03.09/root/lib/libCore > .so) > ==4819== Address 0x55520D70 is 0 bytes inside a block of size 64 > alloc'd > ==4819== at 0x40048FE8: __builtin_new (vg_clientfuncs.c:125) > ==4819== by 0x40973FD4: TObjArray::Init(int, int) (in > /a/sulky07/g.glast.u05/GLAST_EXT/rh72_gcc2952/ROOT/v3.03.09/root/lib/lib > Core.so) > ==4819== by 0x409732F3: TObjArray::TObjArray(int, int) (in > /a/sulky07/g.glast.u05/GLAST_EXT/rh72_gcc2952/ROOT/v3.03.09/root/lib/libCore > .so) > ==4819== by 0x403D59A7: McEvent::McEvent(void) (in > /afs/slac.stanford.edu/u/ec/cohen/glast/mcRootData/v2r9/rh72_gcc2953/libmcRo > otData.so) >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET