Hi Thomas, Could you send a small tar file with the strict minimum to reproduce the problem? Do you have this program running on lxplus? Do you use the same version of Root at DESY ? Rene Brun On Mon, 16 Jun 2003, Thomas Schoerner wrote: > Hello, > > I am a newcomer to ROOT and using v3.05_03 with gcc2.95.3. I have code > which runs (more or less beautifully in another enironment (CERN lxplus), > but I am having problems on the DESY AFS machines: > > I have a method: > > Double_t ZeusKtAlgo::distanceIJ(const TLorentzVector *pI, > const TLorentzVector *pJ) const > { > Double_t disIJ = 0.; > Double_t partIPt2 = pI->Perp2(); > Double_t partJPt2 = pJ->Perp2(); > Double_t minTraE2 = TMath::Min(partIPt2, partJPt2); > > // this is still okay > cout << pI->Perp2() << ' ' << pJ->Perp2() << ' ' > << TMath::Min(pI->Perp2(),pJ->Perp2()) << endl; > > // these printouts crash > cout << TMath::Min(partIPt2, partJPt2) << endl; > cout << partIPt2 << endl; > cout << partJPt2 << endl; > cout << minTraE2 << endl; > > // no chance to get into this if condition ... > if(minTraE2 != 0.) > { > cout << "mist" << endl; > } > > // cannot return this value > return disIJ; > } > > As stated in the piece of code I can do the first printout which accesses > the functions themselves, but as soon as I try to assign a value to a > variable and access (print ...) this later ... it crashes with some > cryptic error message which I print below. I have the following includes: > #include <TROOT.h> > #include <TObject.h> > #include <TObjArray.h> > #include <iostream.h> > #include <TArrayI.h> > #include <TArrayD.h> > #include <TLorentzVector.h> > #include "ZeusAlgo.h" > > Does anybody have any idea what I am doing wrong here? Is there some way > to get clearer debugging information? > > Thanks for your help. > > Cheers, > > Thomas > > *** Break *** segmentation violation > Generating stack trace... > 0x401d52ca in StackTrace__11TUnixSystem + 0x2e6 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCore.so > 0x401d3a2f in DispatchSignals__11TUnixSystem8ESignals + 0xc7 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCore.so > 0x401d2cd0 in GetSize__C8TWebFile + 0xc4 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCore.so > 0x401d6b93 in GetSockOpt__11TUnixSystemiiPi + 0x30f from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCore.so > 0x40e75e58 in killpg + 0x58 from /lib/libc.so.6 > 0x40641144 in G__exec_asm + 0x1e4 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x405f99e8 in G__exec_bytecode + 0x774 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x40604ed6 in G__interpret_func + 0x1082 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x40642aa5 in G__exec_asm + 0x1b45 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x40633328 in G__exec_loop + 0x50c from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x406338ab in G__exec_for + 0x313 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x406364de in G__exec_statement + 0x2942 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x40605fbc in G__interpret_func + 0x2168 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x405ea4a7 in G__getfunction + 0x14ef from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x4067d313 in G__getstructmem + 0x80f from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x40676def in G__getvariable + 0x6bf from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x405e2019 in G__getitem + 0x4f9 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > > *** Break *** keyboard interrupt FILE:ZeusKtAlgo.C LINE:46 > 0x405e08e2 in G__getexpr + 0x9092 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x4062f1ad in G__exec_function + 0x1a9 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x4063679d in G__exec_statement + 0x2c01 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x40605fbc in G__interpret_func + 0x2168 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x406909b6 in ExecInterpretedFunc__11G__CallFuncP8G__value + 0xba from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x406907dd in ExecInt__11G__CallFuncPv + 0x8d from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x40c865b2 in ProcessCut__13TSelectorCinti + 0x6a from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libTree.so > 0x4169bfbb in Process__11TTreePlayerP9TSelectorPCcii + 0x20b from > /products/ROOT/3.05_03/gcc-2.95.3/root/lib/libTreePlayer.so > 0x4169bcf2 in Process__11TTreePlayerPCcT1ii + 0xba from > /products/ROOT/3.05_03/gcc-2.95.3/root/lib/libTreePlayer.so > 0x40c8e916 in Process__5TTreePCcT1ii + 0x52 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libTree.so > 0x40c7c3e7 in Process__6TChainPCcT1ii + 0x47 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libTree.so > 0x40cc0d5c in G__cpp_dllrevG__Tree + 0x1e7b0 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libTree.so > 0x40616625 in G__call_cppfunc + 0x291 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x40604668 in G__interpret_func + 0x814 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x405ea4a7 in G__getfunction + 0x14ef from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x4067d313 in G__getstructmem + 0x80f from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x40676def in G__getvariable + 0x6bf from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x405e2019 in G__getitem + 0x4f9 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x405e08e2 in G__getexpr + 0x9092 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x4062f1ad in G__exec_function + 0x1a9 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x4063679d in G__exec_statement + 0x2c01 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x405c6dd5 in G__exec_tempfile_core + 0x2dd from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x405c6fcd in G__exec_tempfile + 0x25 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x4063f3c3 in G__process_cmd + 0x4e8b from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCint.so > 0x4018bdc1 in ProcessLine__5TCintPCcPQ212TInterpreter10EErrorCode + 0xa1 > from /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCore.so > 0x4018bee3 in ProcessLineSynch__5TCintPCcPQ212TInterpreter10EErrorCode + > 0x4f from /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCore.so > 0x40116987 in ProcessFile__12TApplicationPCcPi + 0x6f7 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCore.so > 0x40116115 in ProcessLine__12TApplicationPCcbPi + 0x565 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCore.so > 0x40dd1e6b in HandleTermInput__5TRint + 0x197 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libRint.so > 0x40dd0f89 in Notify__17TTermInputHandler + 0x29 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libRint.so > 0x40dea5d8 in ReadNotify__17TTermInputHandler at > /data/gcc-2.95.3/hierhinein/gcc/../../gcc-2.95.3/gcc/cp/new.cc:0 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libRint.so > 0x401d3da9 in CheckDescriptors__11TUnixSystem + 0xd9 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCore.so > 0x401d35e5 in DispatchOneEvent__11TUnixSystemb + 0xb5 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCore.so > 0x40161499 in InnerLoop__7TSystem + 0x31 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCore.so > 0x40161409 in Run__7TSystem + 0x79 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCore.so > 0x40116bd6 in Run__12TApplicationb + 0x32 from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libCore.so > 0x40dd1887 in Run__5TRintb + 0x2df from > /products/ROOT/3.05_03/ROOT-linux24-gcc-2.95.3/lib/libRint.so > 0x080487f7 in main + 0x83 from > /products/ROOT/3.05_03/gcc-2.95.3/root/bin/root.exe > 0x40e65c5f in __libc_start_main + 0xcf from /lib/libc.so.6 > 0x080486a1 in _start + 0x21 from > /products/ROOT/3.05_03/gcc-2.95.3/root/bin/root.exe > Root > Function Find() busy flag cleared > Function distanceIJ() busy flag cleared > Function ProcessCut() busy flag cleared > > > > +-------------------------------------------------------------------+ > | Thomas Schoerner-Sadenius thomas.schoerner@cern.ch | > | Universitaet Hamburg, Institut fuer Experimentalphysik | > | Luruper Chaussee 149 phone 0049-40-8998-2954 | > | D-22761 Hamburg room 67b / 5 | > +-------------------------------------------------------------------+ > > > >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET