Re: Fatal in <operator new>: storage exhausted WARNING

Rene Brun (Rene.Brun@cern.ch)
Fri, 20 Feb 1998 10:40:57 +0100


Patrice Lebrun wrote:
>
> Hello,
>
> I work on 10 files. This is about 150 Mo size.
> For this, I use TChain objects created by load_bg(), see bellow.
>
> When the following commands are entered, root crashes and this is
> reproductible.
> After each draw the process data size increase.
> Starting at 25 Mo to end at about 62 Mo before the crashe.
> Do you have a solution to solve this ?
>
> Thank you dear Rooters.
>
> root [1] .L util.C; load_bg();
> root [2] bhab->Draw("mdilept",elec);
> root [3] dimu->Draw("mdilept",elec);
> root [4] ditau->Draw("mdilept",elec);
> root [5] dinu->Draw("mdilept",elec);
> root [6] zz->Draw("mdilept",elec);
> root [7] ww->Draw("mdilept",elec);
> root [8] zee->Draw("mdilept",elec);
> root [9] eemm->Draw("mdilept",elec);
>
>
> Fatal in <operator new>: storage exhausted
> aborting

Patrice,
Apologies!
deleting the chain does not delete the current file and the Tree.
In the TChain destructor, the current file is not deleted.
I have fixed the problem in the development version.
Meanwhile, you can solve this memory leak problem. Instead
of deleting the chain, do:
delete chain->GetFile();

Thanks for reporting this problem.

Rene Brun