GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » problem with optical process in accessing the file
problem with optical process in accessing the file [message #10542] Fri, 16 April 2010 10:34 Go to previous message
Vanniarajan Suyam Jothi is currently offline  Vanniarajan Suyam Jothi
Messages: 35
Registered: October 2007
Location: Groningen
continuous participant

From: *KVI.nl
Hello all,

I was switching on the emStandard+optical process in the Geant4.
And then, I was accessing the file using a simple script below

TFile f("sim_emc.root","READ");

TTree *t=(TTree *) f.Get("cbmsim");

TClonesArray* track_array=new TClonesArray("TGeoTrack");
t->SetBranchAddress("GeoTracks",&track_array);

if (t) cout<<"here is t" <<endl;

cout<< t->GetEntriesFast()<<endl;
for(int i = 0; i < t->GetEntriesFast() ; i++)
{
cout << "Before " << i << endl;
t->GetEntry(i);
cout << "After " << i << endl;
}



And I got the Error below.
I do not get this error
when I do simulation with default hadron physics list.
I am not sure if it is already known problem, can anybody help me?


here is t
10
Before 0
After 0
Before 1
*** glibc detected *** /home/vanni/fairJan10/tools/root/bin/root.exe: double free or corruption (!prev): 0x08e0a320 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb6d8aa85]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb6d8e4f0]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb6f6db11]
/home/vanni/fairJan10/tools/root/lib/libCore.so.5.26(_ZN8TStorage13Objec tDeallocEPv+0x64)[0xb796be84]
/home/vanni/fairJan10/tools/root/lib/libCore.so.5.26(_ZN7TObjectdlEPv+0x 27)[0xb7949e07]
/home/vanni/fairJan10/tools/root/lib/libCore.so.5.26(_ZN7TObjectD0Ev+0x6 8)[0xb794a728]
/home/vanni/fairJan10/tools/root/lib/libCore.so.5.26[0xb7b35de1]
/home/vanni/fairJan10/tools/root/lib/libCore.so.5.26(_ZN6TClass10Destruc torEPvb+0x41)[0xb79c6391]
/home/vanni/fairJan10/tools/root/lib/libRIO.so(_ZN11TBufferFile13ReadFas tArrayEPPvPK6TClassibP15TMemberStreamerS4_+0xf9)[0xb6b10379]
/home/vanni/fairJan10/tools/root/lib/libRIO.so(_ZN13TStreamerInfo10ReadB ufferIPPcEEiR7TBufferRKT_iiii+0x3b37)[0xb6bd45e7]
/home/vanni/fairJan10/tools/root/lib/libRIO.so(_ZN13TStreamerInfo16ReadB ufferClonesER7TBufferP12TClonesArrayiii+0x61)[0xb6b5ba71]
/home/vanni/fairJan10/tools/root/lib/libTree.so(_ZN14TBranchElement10Rea dLeavesER7TBuffer+0x6bc)[0xb5894b1c]
/home/vanni/fairJan10/tools/root/lib/libTree.so(_ZN7TBranch8GetEntryExi+ 0x1ce)[0xb588909e]
/home/vanni/fairJan10/tools/root/lib/libTree.so(_ZN14TBranchElement8GetE ntryExi+0x1b8)[0xb588f308]
/home/vanni/fairJan10/tools/root/lib/libTree.so(_ZN14TBranchElement8GetE ntryExi+0x13a)[0xb588f28a]
/home/vanni/fairJan10/tools/root/lib/libTree.so(_ZN5TTree8GetEntryExi+0x ba)[0xb58e5a6a]
/home/vanni/fairJan10/tools/root/lib/libTree.so[0xb59657d4]
/home/vanni/fairJan10/tools/root/lib/libCint.so.5.26(_ZN4Cint19G__Except ionWrapperEPFiP8G__valuePKcP8G__paramiES1_PcS5_i+0x65)[0xb721f655]
/home/vanni/fairJan10/tools/root/lib/libCint.so.5.26(G__exec_asm+0x4801) [0xb7233571]
/home/vanni/fairJan10/tools/root/lib/libCint.so.5.26[0xb731110f]
/home/vanni/fairJan10/tools/root/lib/libCint.so.5.26(G__exec_statement+0 x883c)[0xb730b79c]
/home/vanni/fairJan10/tools/root/lib/libCint.so.5.26(G__interpret_func+0 x383e)[0xb72b11ee]
/home/vanni/fairJan10/tools/root/lib/libCint.so.5.26(G__getfunction+0x21 7f)[0xb729b6ff]
/home/vanni/fairJan10/tools/root/lib/libCint.so.5.26(G__getitem+0x62d)[0 xb72704dd]
/home/vanni/fairJan10/tools/root/lib/libCint.so.5.26(G__getexpr+0x3cc5)[ 0xb7274d65]
/home/vanni/fairJan10/tools/root/lib/libCint.so.5.26(G__calc_internal+0x 352)[0xb7281cf2]
/home/vanni/fairJan10/tools/root/lib/libCint.so.5.26(G__process_cmd+0x39 87)[0xb73182b7]
/home/vanni/fairJan10/tools/root/lib/libCore.so.5.26(_ZN5TCint11ProcessL ineEPKcPN12TInterpreter10EErrorCodeE+0x320)[0xb79f9eb0]
/home/vanni/fairJan10/tools/root/lib/libCore.so.5.26(_ZN5TCint16ProcessL ineSynchEPKcPN12TInterpreter10EErrorCodeE+0x9f)[0xb79f9b6f]
/home/vanni/fairJan10/tools/root/lib/libCore.so.5.26(_ZN12TApplication11 ExecuteFileEPKcPib+0x767)[0xb791c627]
/home/vanni/fairJan10/tools/root/lib/libCore.so.5.26(_ZN12TApplication11 ProcessFileEPKcPib+0x2c)[0xb791cc1c]
/home/vanni/fairJan10/tools/root/lib/libCore.so.5.26(_ZN12TApplication11 ProcessLineEPKcbPi+0x7ce)[0xb7919f5e]
/home/vanni/fairJan10/tools/root/lib/libRint.so.5.26(_ZN5TRint15HandleTe rmInputEv+0x1e1)[0xb6fd4891]
/home/vanni/fairJan10/tools/root/lib/libRint.so.5.26(_ZN17TTermInputHand ler6NotifyEv+0x25)[0xb6fd24e5]
/home/vanni/fairJan10/tools/root/lib/libRint.so.5.26(_ZN17TTermInputHand ler10ReadNotifyEv+0x14)[0xb6fd53c4]
/home/vanni/fairJan10/tools/root/lib/libCore.so.5.26(_ZN11TUnixSystem16C heckDescriptorsEv+0x175)[0xb7a102c5]
/home/vanni/fairJan10/tools/root/lib/libCore.so.5.26(_ZN11TUnixSystem16D ispatchOneEventEb+0xef)[0xb7a10d9f]
/home/vanni/fairJan10/tools/root/lib/libCore.so.5.26(_ZN7TSystem9InnerLo opEv+0x21)[0xb797d3a1]
/home/vanni/fairJan10/tools/root/lib/libCore.so.5.26(_ZN7TSystem3RunEv+0 x81)[0xb79814d1]
/home/vanni/fairJan10/tools/root/lib/libCore.so.5.26(_ZN12TApplication3R unEb+0x37)[0xb7918157]
/home/vanni/fairJan10/tools/root/lib/libRint.so.5.26(_ZN5TRint3RunEb+0x3 bb)[0xb6fd4e8b]
/home/vanni/fairJan10/tools/root/bin/root.exe(main+0x85)[0x8048eb5]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb6d35450]
/home/vanni/fairJan10/tools/root/bin/root.exe(__gxx_personality_v0+0x69) [0x8048d61]
======= Memory map: ========
08048000-0804a000 r-xp 00000000 08:11 18063361
 
Read Message
Read Message
Read Message
Previous Topic: Genfit server is down
Next Topic: PndLhePidTrack
Goto Forum:
  


Current Time: Sat Oct 12 20:56:54 CEST 2024

Total time taken to generate the page: 0.00771 seconds