RE: Problem running over chained ntuples. Get cannot seek to position error toward end of file

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Wed, 08 Aug 2007 12:31:59 -0500


Hi Paul,

Either your file are corrupted (aka you would never be able to read the specific entry
of the specific file whether you read them separately or in a chain) or you are
victim of some type of memory corruption.

I recommend that you re-run your example using valgrind (valgrind.kde.org) which is likely
to pin point where the problem occur.

If valgrind is unable to give you a good/useable answer, please provide us with a complete
running example of the failure and we will look into.

Cheers,
Philippe

-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Paul Prichard
Sent: Monday, August 06, 2007 7:03 AM
To: roottalk_at_pcroot.cern.ch
Subject: [ROOT] Problem running over chained ntuples. Get cannot seek to position error toward end of file

Hi

I am using root version 5.12 and have used dq2_get to get two different datasets. These are

user.JelenaKrstic.T1_McAtNlo_Jimmy.recon.v12000604.SV_HPTV

and

user.MarijaMilosavljevic.trig1_misal1_mc12.005200.T1_McAtNlo_Jimmy.recon.AOD .SUSYView_HPTV.v12000604

I have used Make Selector to make skeleton code and after commenting out a few lines, and hash including some things, and writing something to chain the ntuples together and call process i can get the code to compile and run. There are 5000 events in each ntuple. The problem is that when it gets to just over 4000 events i get the following error,

Event: 4000
-922
Event: 4100
922
Event: 4200
922
Event: 4300
922
SysError in <TFile::Seek>: cannot seek to position 7957708041173560937 in file
/batchstore/prichard/ttbarJelena/user.JelenaKrstic.T1_McAtNlo_Jimmy.recon.v1
2000604.SV_HPTV.AANT1._00071.root,
retpos=-1 (Invalid argument)
Error in <TFile::ReadBuffer>: error reading all requested bytes from file
/batchstore/prichard/ttbarJelena/user.JelenaKrstic.T1_McAtNlo_Jimmy.recon.v1
2000604.SV_HPTV.AANT1._00071.root,
got 13583148 of 1013673577
Error in <TBranchElement::GetBasket>: File:
/batchstore/prichard/ttbarJelena/user.JelenaKrstic.T1_McAtNlo_Jimmy.recon.v1
2000604.SV_HPTV.AANT1._00071.root
at byte:0, branch:Jet_C4_TracksInCone_qOverPErr, entry:4323, badread=0 Event: 4400
-922
Event: 4500
-922
Aborted

This is with the first dataset, with the second i get

Event: 4200
-92.2923
Event: 4300
92.2923
SysError in <TFile::Seek>: cannot seek to position 8237190870936595570 in file
/hepstore/store2/prichard/prentuple/ttbar/user.MarijaMilosavljevic.trig1_mis
al1_mc12.005200.T1_McAtNlo_Jimmy.recon.AOD.SUSYView_HPTV.v12000604.AANT0._00 020.root,
retpos=-1 (Invalid argument)
Event: 4400
92.2923
Event: 4500
-92.2923
Event: 4600
92.2923
SysError in <TFile::Seek>: cannot seek to position 1033926962010700984 in file
/hepstore/store2/prichard/prentuple/ttbar/user.MarijaMilosavljevic.trig1_mis
al1_mc12.005200.T1_McAtNlo_Jimmy.recon.AOD.SUSYView_HPTV.v12000604.AANT0._00 020.root,
retpos=-1 (Invalid argument)
Error in <TFile::ReadBuffer>: error reading all requested bytes from file
/hepstore/store2/prichard/prentuple/ttbar/user.MarijaMilosavljevic.trig1_mis
al1_mc12.005200.T1_McAtNlo_Jimmy.recon.AOD.SUSYView_HPTV.v12000604.AANT0._00 020.root,
got 9472147 of 238955664
Error in <TBranchElement::GetBasket>: File:
/hepstore/store2/prichard/prentuple/ttbar/user.MarijaMilosavljevic.trig1_mis
al1_mc12.005200.T1_McAtNlo_Jimmy.recon.AOD.SUSYView_HPTV.v12000604.AANT0._00 020.root
at byte:0, branch:Jet_Kt4_TracksInCone_DeltaR, entry:4640, badread=0 Event: 4700
92.2923
Event: 4800
92.2923
SysError in <TFile::Seek>: cannot seek to position 1033926962010700984 in file
/hepstore/store2/prichard/prentuple/ttbar/user.MarijaMilosavljevic.trig1_mis
al1_mc12.005200.T1_McAtNlo_Jimmy.recon.AOD.SUSYView_HPTV.v12000604.AANT0._00 020.root,
retpos=-1 (Invalid argument)
Error in <TFile::ReadBuffer>: error reading all requested bytes from file
/hepstore/store2/prichard/prentuple/ttbar/user.MarijaMilosavljevic.trig1_mis
al1_mc12.005200.T1_McAtNlo_Jimmy.recon.AOD.SUSYView_HPTV.v12000604.AANT0._00 020.root,
got 9472147 of 238955664
Error in <TBranchElement::GetBasket>: File:
/hepstore/store2/prichard/prentuple/ttbar/user.MarijaMilosavljevic.trig1_mis
al1_mc12.005200.T1_McAtNlo_Jimmy.recon.AOD.SUSYView_HPTV.v12000604.AANT0._00 020.root
at byte:0, branch:Jet_Kt6_TracksInCone_DeltaR, entry:4877, badread=0 Event: 4900
92.2923
Event: 5000
92.2923
Event: 5100
92.2923

If the program does not abort then i seem to get the same error after another 5000 events. I have got the second dataset twice and the second time i was using a different harddisk for the dq2_get command in case this was a related problem.

Any help would be greatly appreciated.

Paul Received on Wed Aug 08 2007 - 19:32:14 CEST

This archive was generated by hypermail 2.2.0 : Wed Aug 08 2007 - 23:50:02 CEST