Hello, everyone. I want to learn about radioacitve decay biasing by using the Geant4 example in examples/extended/radioactivedecay/rdecay02. The program works fine in analogue mode, however, it encounters segmentation violation in VR mode. For example, running the rdecay02 program with proton-beam.mac will report an error and stop in the first event. The error messages are listed below.
I tried to debug the error, and it seems to be something wrong with BiasRDPhysics.cc. Since I don’t know how to use the radioactive decay biasing technique, there is no way I can fix the problem.
Any suggestions are welcome, thanks in advance!
Here is the error message:
CAUGHT SIGNAL: 11 ### address: 0, signal = SIGSEGV, value = 11, description = segmentation violation. Address not mapped to object.
Backtrace:
[PID=11189, TID=3][ 0/18]> ./…/cmake-build-debug/rdecay02(+0x1e621) [0x5627a5f25621]
[PID=11189, TID=3][ 1/18]> ./…/cmake-build-debug/rdecay02(+0x1e361) [0x5627a5f25361]
[PID=11189, TID=3][ 2/18]> /home/chao/Geant4/geant4-install/lib/libG4tracking.so(_ZN17G4SteppingManager8SteppingEv+0x586) [0x7f3818e10936]
[PID=11189, TID=3][ 3/18]> /home/chao/Geant4/geant4-install/lib/libG4tracking.so(_ZN17G4TrackingManager15ProcessOneTrackEP7G4Track+0x118) [0x7f3818e26488]
[PID=11189, TID=3][ 4/18]> /home/chao/Geant4/geant4-install/lib/libG4event.so(_ZN14G4EventManager12DoProcessingEP7G4Event+0x893) [0x7f3818e67303]
[PID=11189, TID=3][ 5/18]> /home/chao/Geant4/geant4-install/lib/libG4tasking.so(_ZN22G4WorkerTaskRunManager15ProcessOneEventEi+0x3c) [0x7f38197bbc1c]
[PID=11189, TID=3][ 6/18]> /home/chao/Geant4/geant4-install/lib/libG4tasking.so(_ZN22G4WorkerTaskRunManager11DoEventLoopEiPKci+0x17e) [0x7f38197bbb5e]
[PID=11189, TID=3][ 7/18]> /home/chao/Geant4/geant4-install/lib/libG4tasking.so(_ZN22G4WorkerTaskRunManager6DoWorkEv+0x15d) [0x7f38197bbead]
[PID=11189, TID=3][ 8/18]> /home/chao/Geant4/geant4-install/lib/libG4tasking.so(_ZN22G4TaskRunManagerKernel17ExecuteWorkerTaskEv+0x6a) [0x7f38197b8d3a]
[PID=11189, TID=3][ 9/18]> /home/chao/Geant4/geant4-install/lib/libG4tasking.so(+0x3a2d6) [0x7f38197a82d6]
[PID=11189, TID=3][10/18]> /home/chao/Geant4/geant4-install/lib/libG4tasking.so(_ZNSt13__future_base13_State_baseV29_M_do_setEPSt8functionIFSt10unique_ptrINS_12_Result_baseENS3_8_DeleterEEvEEPb+0x2d) [0x7f38197b038d]
[PID=11189, TID=3][11/18]> /lib/x86_64-linux-gnu/libpthread.so.0(+0x1147f) [0x7f38145ef47f]
[PID=11189, TID=3][12/18]> /home/chao/Geant4/geant4-install/lib/libG4tasking.so(_ZN3PTL4TaskIvJEEclEv+0x12c) [0x7f38197b050c]
[PID=11189, TID=3][13/18]> /home/chao/Geant4/geant4-install/lib/libG4ptl.so.0(_ZN3PTL10ThreadPool14execute_threadEPNS_14VUserTaskQueueE+0x351) [0x7f381669b6d1]
[PID=11189, TID=3][14/18]> /home/chao/Geant4/geant4-install/lib/libG4ptl.so.0(_ZN3PTL10ThreadPool12start_threadEPS0_PSt6vectorISt10shared_ptrINS_10ThreadDataEESaIS5_EEl+0x1a3) [0x7f381669be33]
[PID=11189, TID=3][15/18]> /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xd44c0) [0x7f381634d4c0]
[PID=11189, TID=3][16/18]> /lib/x86_64-linux-gnu/libpthread.so.0(+0x8609) [0x7f38145e6609]
[PID=11189, TID=3][17/18]> /lib/x86_64-linux-gnu/libc.so.6(clone+0x43) [0x7f3815e24163]
: Segmentation fault (Address not mapped to object [(nil)])
_Geant4 Version:_11.0.2
_Operating System:_Ubuntu 20.04.3 LTS
_CMake Version:_3.22.1