[ROOT] segmentation violation in THashTable::FindObject

From: Michael Groys (michaelg@alzt.tau.ac.il)
Date: Thu Mar 04 2004 - 12:00:48 MET

Dear rooters,
When I run my script I got a  segmentation violation in 
THashTable::FindObject function.
This is big piece of code that creates in a loop a lot of histograms.
At some stage segmentation violation happens.
The last words are:
Creating Hist _hF23nn()
Creating tmphupF23nn
Creating tmphdownF23nn

 *** Break *** segmentation violation
 Generating stack trace...
 0x0065f8cd in THashTable::FindObject(char const*) const + 0x47 from 
 0x0065eda3 in THashList::FindObject(char const*) const + 0x17 from 
 0x00321fb7 in TH1::Build() + 0x24f from 
 0x003214bd in TH1::TH1[not-in-charge](char const*, char const*, int, 
double const*) + 0x121 from /data/alzt7/michaelg/root/lib/libHist.so
 0x0033370c in TH1F::TH1F[in-charge](char const*, char const*, int, 
double const*) + 0x2a from /data/alzt7/michaelg/root/lib/libHist.so
 0x0551ef45 in MF1::CreateErrorBand(TH1F*) at 

Before this the 22 sets of histograms were successfully created.
The following lines of code are executed before the segmentation violation:
    int nbins = hist->GetNbinsX();
    const Double_t* xbins=hist->GetXaxis()->GetXbins()->GetArray();
    sprintf(buf, "tmphup%s", GetName());
    printf("Creating %s\n", buf);
    TH1F hup(buf, buf, nbins, xbins);
    sprintf(buf, "tmphdown%s", GetName());
    printf("Creating %s\n", buf);
    TH1F hdown(buf, buf, nbins, xbins);

I would very appreciate any proposes and suggestions.

Best regards and thanks in advance,

PS. I'm using root 3.10/02 on RH10

This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET