GSI Helmholtzzentrum für Schwerionenforschung
Hi, I suppose this goes to Mohammed. When I checked out rev. 2104 I was not able to run the G4 simulation any more. When reverting these changes it worked again. Here the error output: Toggle Spoiler ============== CbmRunSim: Initialising simulation run ============== Info in <TGeoManager::TGeoManager>: Geometry CBMGeom, CBM geometry created -I- CbmGeoMedia Read media Loading Geant4 granular libraries ... dlopen error: /data_hilbert/Software/fairroot/cbmsoft/transport/geant4/lib/Linux-g++/l ibG4detutils.so: undefined symbol: _ZN18G4VPrimitiveScorer8GetIndexEP6G4Step Load Error: Failed to load Dynamic link library /data_hilbert/Software/fairroot/cbmsoft/transport/geant4/lib/Linux-g++/l ibG4detutils.so (int)(-1) *** Interpreter error recovered *** Error: Symbol TG4RunConfiguration is not defined in current scope /home/ralfk/Pandaroot/pandaroot/gconfig/g4Config.C:29: Error: Symbol TG4RunConfiguration is not defined in current scope /home/ralfk/Pandaroot/pandaroot/gconfig/g4Config.C:29: Error: type TG4RunConfiguration not defined FILE:/home/ralfk/Pandaroot/pandaroot/gconfig/g4Config.C LINE:29 Warning: Automatic variable TG4RunConfiguration* runConfiguration is allocated /home/ralfk/Pandaroot/pandaroot/gconfig/g4Config.C:29: Error: Undeclared variable TG4RunConfiguration* runConfiguration /home/ralfk/Pandaroot/pandaroot/gconfig/g4Config.C:29: *** Interpreter error recovered *** Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1226106080 (LWP 30897)] 0xb30379a9 in CbmMCApplication::InitMC (this=0x850caa0, setup=0x855f898 "/home/ralfk/Pandaroot/pandaroot/gconfig/g4Config.C") at /home/ralfk/Pandaroot/pandaroot/base/CbmMCApplication.cxx:165 165 fStack = (CbmGenericStack*) gMC->GetStack(); And the gdb backtrace gives: Toggle Spoiler (gdb) bt #0 0xb30379a9 in CbmMCApplication::InitMC (this=0x850caa0, setup=0x855f898 "/home/ralfk/Pandaroot/pandaroot/gconfig/g4Config.C") at /home/ralfk/Pandaroot/pandaroot/base/CbmMCApplication.cxx:165 #1 0xb3049572 in CbmRunSim::Init (this=0x84bcce0) at /home/ralfk/Pandaroot/pandaroot/base/CbmRunSim.cxx:128 #2 0xb3084197 in G__CbmDict_530_0_4 (result7=0xbf859d1c, funcname=0x84ab530 "\001", libp=0xbf853978, hash=0) at /home/ralfk/Pandaroot/build/base/CbmDict.cxx:9325 #3 0xb720d55b in Cint::G__ExceptionWrapper (funcp=0xb3084170 <G__CbmDict_530_0_4>, result7=0xbf859d1c, funcname=0x84ab530 "\001", libp=0xbf853978, hash=0) at cint/src/Api.cxx:364 #4 0xb731c8a0 in G__call_cppfunc (result7=0xbf859d1c, libp=0xbf853978, ifunc=0x84ab530, ifn=0) at cint/src/v6_newlink.cxx:512 #5 0xb72e3f65 in G__interpret_func (result7=0xbf859d1c, funcname=0xbf85971c "Init", libp=0xbf853978, hash=404, p_ifunc=0x84ab530, funcmatch=1, memfunc_flag=1) at cint/src/v6_ifunc.cxx:5118 #6 0xb72d3554 in G__getfunction (item=0xbf85e186 "Init()", known3=0xbf85c74c, memfunc_flag=1) at cint/src/v6_func.cxx:2511 #7 0xb73a8090 in G__getstructmem (store_var_type=112, varname=0xbf85c038 "basiclibs", membername=0xbf85e186 "Init()", tagname=0xbf85be38 "fRun", known2=0xbf85c74c, varglobal=0xb744e3a0, objptr=2) at cint/src/v6_var.cxx:6562 #8 0xb739affd in G__getvariable (item=0xbf85e180 "fRun->Init()", known2=0xbf85c74c, varglobal=0xb744e3a0, varlocal=0x0) at cint/src/v6_var.cxx:5206 #9 0xb72a12b2 in G__getitem (item=0xbf85e180 "fRun->Init()") at cint/src/v6_expr.cxx:1884 #10 0xb72b4453 in G__getexpr (expression=0xbf85e7bc "fRun->Init()") at cint/src/v6_expr.cxx:1470 #11 0xb732ed31 in G__exec_function (statement=0xbf85e7bc "fRun->Init()", pc=0xbf85ee58, piout=0xbf85ee54, plargestep=0xbf85ee4c, presult=0xbf85ee08) at cint/src/v6_parse.cxx:598 #12 0xb7335d6f in G__exec_statement (mparen=0xbf865d08) at cint/src/v6_parse.cxx:6923 #13 0xb728a000 in G__exec_tempfile_core (file=0xbf867dfc "/home/ralfk/Pandaroot/pandaroot/macro/mvd/./runMvdSim.C", fp=0x0) at cint/src/v6_debug.cxx:251 #14 0xb728a33d in G__exec_tempfile (file=0xbf867dfc "/home/ralfk/Pandaroot/pandaroot/macro/mvd/./runMvdSim.C") at cint/src/v6_debug.cxx:798 #15 0xb734815a in G__process_cmd (line=0xb7ed174e "owenergy.dll", prompt=0x80cc994 "", more=0x80cc98c, err=0xbf868cb8, rslt=0xbf868c88) at cint/src/v6_pause.cxx:3070 #16 0xb799a0f9 in TCint::ProcessLine (this=0x80cc970, line=0xb7ed174e "owenergy.dll", error=0xbf86b4c4) at meta/src/TCint.cxx:289 #17 0xb79945bc in TCint::ProcessLineSynch (this=0x80cc970, line=0xb7ed174e "owenergy.dll", error=0xbf86b4c4) at meta/src/TCint.cxx:354 #18 0xb78dc532 in TApplication::ExecuteFile (file=0xbf8693ed "runMvdSim.C", error=0xbf86b4c4) at base/src/TApplication.cxx:898 ---Type <return> to continue, or q <return> to quit--- #19 0xb78dc704 in TApplication::ProcessFile (this=0x80eae90, file=0xbf8693ed "runMvdSim.C", error=0xbf86b4c4) at base/src/TApplication.cxx:787 #20 0xb78deaeb in TApplication::ProcessLine (this=0x80eae90, line=0xbf8693ea ".x runMvdSim.C", sync=false, err=0xbf86b4c4) at base/src/TApplication.cxx:760 #21 0xb717e9de in TRint::Run (this=0x80eae90, retrn=false) at rint/src/TRint.cxx:336 #22 0x08048e49 in main (argc=1, argv=0xbf86b5d4) at main/src/rmain.cxx:29 Nice greetings from Dresden, Ralf.
Re: Problem with G4.9.1 compatibility fix
Hi Ralf, Yes it is my mistake! in Geant4.9.1 they move some functions from the libdetector to libG4detutils, So it seems that the if-statment I put before this library does not work, so I have to look inside this again. Any way I comment this line out for now, so it should work again with Geant4.9.0 Mohammad