Hello, I m a beginner with geant4 and i’ve to work on a project using a PSF. When i launch my project, my geometry appears and there is no problem on this level. But when i want my source of particle, i use this command :
“/run/beamOn 10” and i have a crash from geant4.
Run 0 starts.
-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : Run10035
issued by : G4TaskRunManager::InitializeEventLoop()
Event modulo is reduced to 1 (was 3) to distribute events to all threads.
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------
-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : Run10035
issued by : G4TaskRunManager::InitializeEventLoop()
Event modulo is reduced to 1 (was 3) to distribute events to all threads.
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------
=========================================================================================
→ G4TaskRunManager::CreateAndStartWorkers() → Creating 10 tasks with 1 events/task…
Adding task 0 to task-group…
Adding task 1 to task-group…
Adding task 2 to task-group…
Adding task 3 to task-group…
Adding task 4 to task-group…
Adding task 5 to task-group…
Adding task 6 to task-group…
Adding task 7 to task-group…
Adding task 8 to task-group…
Adding task 9 to task-group…
G4WT6 > ### Run 0 starts on worker thread 6.
G4WT1 > ### Run 0 starts on worker thread 1.
G4WT3 > ### Run 0 starts on worker thread 3.
G4WT2 > ### Run 0 starts on worker thread 2.
G4WT5 > ### Run 0 starts on worker thread 5.
G4WT0 > ### Run 0 starts on worker thread 0.
G4WT7 > ### Run 0 starts on worker thread 7.
G4WT4 > ### Run 0 starts on worker thread 4.
G4WT6 > [thread 6] Thread-local run terminated.
G4WT2 > [thread 2] Thread-local run terminated.
G4WT3 > [thread 3] Thread-local run terminated.
G4WT0 > [thread 0] Thread-local run terminated.
G4WT7 > [thread 7] Thread-local run terminated.
G4WT4 > [thread 4] Thread-local run terminated.
G4WT5 > [thread 5] Thread-local run terminated.
G4WT1 > [thread 1] Thread-local run terminated.
G4WT6 > [thread 6] Run Summary
G4WT6 > [thread 6] Number of events processed : 10
G4WT6 > [thread 6] User=0.380000s Real=0.415320s Sys=0.090000s [Cpu=113.2%]
CAUGHT SIGNAL: 11 ### address: 0x90, signal = SIGSEGV, value = 11, description = segmentation violation. Address not mapped to object.
Backtrace:
[PID=5940, TID=6][ 0/13]> /home/vincent/software/geant4/Geant4-Install/lib/libG4geometry.so(_ZN15G4LogicalVolume7GetMassEbbP10G4Material+0x42) [0x7f0fcb158ae2]
[PID=5940, TID=6][ 1/13]> ./exampleB1(+0x10678) [0x560aa9679678]
[PID=5940, TID=6][ 2/13]> /home/vincent/software/geant4/Geant4-Install/lib/libG4run.so(_ZN12G4RunManager14RunTerminationEv+0x42) [0x7f0fcbb6e492]
[PID=5940, TID=6][ 3/13]> /home/vincent/software/geant4/Geant4-Install/lib/libG4tasking.so(_ZN22G4WorkerTaskRunManager14RunTerminationEv+0x4e) [0x7f0fcbc306ee]
[PID=5940, TID=6][ 4/13]> /home/vincent/software/geant4/Geant4-Install/lib/libG4ptl.so.0(+0x1b543) [0x7f0fcad81543]
[PID=5940, TID=6][ 5/13]> /home/vincent/software/geant4/Geant4-Install/lib/libG4tasking.so(_ZNSt13__future_base13_State_baseV29_M_do_setEPSt8functionIFSt10unique_ptrINS_12_Result_baseENS3_8_DeleterEEvEEPb+0x2d) [0x7f0fcbc216fd]
[PID=5940, TID=6][ 6/13]> /lib/x86_64-linux-gnu/libpthread.so.0(+0x114df) [0x7f0fc780f4df]
[PID=5940, TID=6][ 7/13]> /home/vincent/software/geant4/Geant4-Install/lib/libG4ptl.so.0(+0x194e7) [0x7f0fcad7f4e7]
[PID=5940, TID=6][ 8/13]> /home/vincent/software/geant4/Geant4-Install/lib/libG4ptl.so.0(_ZN3PTL10ThreadPool14execute_threadEPNS_14VUserTaskQueueE+0x351) [0x7f0fcad7b6d1]
[PID=5940, TID=6][ 9/13]> /home/vincent/software/geant4/Geant4-Install/lib/libG4ptl.so.0(_ZN3PTL10ThreadPool12start_threadEPS0_PSt6vectorISt10shared_ptrINS_10ThreadDataEESaIS5_EEl+0x1a3) [0x7f0fcad7be33]
[PID=5940, TID=6][10/13]> /lib/x86_64-linux-gnu/libstdc++.so.6(+0xd6de4) [0x7f0fcac44de4]
[PID=5940, TID=6][11/13]> /lib/x86_64-linux-gnu/libpthread.so.0(+0x8609) [0x7f0fc7806609]
[PID=5940, TID=6][12/13]> /lib/x86_64-linux-gnu/libc.so.6(clone+0x43) [0x7f0fcaa7e133]
: Segmentation fault (Address not mapped to object [0x90])
Aborted (core dumped)
I have no idea where and what is my problem and i don’t know how to find it. Can someone help me ?
Thank you for your attention.