AIX memory leakage

Jobst Heinrich Koehne (kohne@mail.desy.de)
Tue, 9 Dec 1997 15:51:56 +0100 (MET)


Dear Rene and Fons,

Starting from the Event example in //root/test
I've written a copy program with an Event object containing some 40
pointers to TClonesArrays corresponding to our BOS banks.

Everything works fine on SGI with g++. However as soon as I went to IBM
AIX I had trouble. I couldn't run with options

CXXFLAGS = -O -w -qnoro -qnoroconst -qmaxmem=-1 -I$(ROOTSYS)/include

because the EventCint.cxx file (15000 lines) compiling didn't come to an
end (after 5h I gave up). Only with

CXXFLAGS = -w -qnoro -qnoroconst -qmaxmem=-1 -I$(ROOTSYS)/include

it works at all. But at runtime (with top) one sees the job memory
continuosly increasing and finally it aborts with

Fatal in <TStorage::ReAlloc>: storage exhausted

This happens in the end phase of the job when the tree->Fill() statements
of every event are already done. So it must be sth with the
hfile->Write().

ahoi
Jobst

The machine:
a dual processor IBM RS6000 with 320 Mb RAM running two 233 MHz PowerPC
root:
Version 1.03/08 5 December 1997