Hi,
I'm testing a program that reads a rootfile and makes histograms from a tree. The program fails with a seg fault at the marked line:
const Long64_t nenergies = v1.size();
#ifdef DEBUG
cout << "Nenergies = " << nenergies << " at " << "line " << __LINE__ << endl;
#endif
Int_t word[nenergies][48]; // <---------- SEG FAULT
#ifdef DEBUG
cout << "Line = " << __LINE__ << endl;
#endif
The value of nenergies at that point is 104554, much smaller than the maximum size of a Long64_t.
I'd apperciate suggestions on how to debug this further.
Thanks,
Roger
ROOT 5.20/00 (trunk_at_24524, Oct 01 2008, 15:00:00 on linux) Received on Thu Nov 06 2008 - 16:44:31 CET
This archive was generated by hypermail 2.2.0 : Thu Nov 06 2008 - 17:50:02 CET