Fatal Exception ***** Core Dump

I am running advance example ICRP145phantom with some modifications, used QGSP_BIC_HP and G4LivermoreEMphysics
for ion Mg i have simulated 100million particles but get this unusual error::

  • this error is reoccurring for another run as well, after the same number of particles simulated
  • have faced this problems many times for longer runs

Geant4 Version: 11.2.0
_Operating System:_Ubuntu
_Compiler/Version:_GCC 11.4.0
_CMake Version:_3.22.1

*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------

G4WT41 > → Event 430000000 starts with initial seeds (274788,70927780).
G4WT9 > → Event 435000000 starts with initial seeds (25984656,18023049).
G4WT23 > → Event 440000000 starts with initial seeds (96384689,84656113).
G4WT12 > → Event 445000000 starts with initial seeds (78921006,26559547).
G4WT15 > → Event 450000000 starts with initial seeds (48048541,10760168).
G4WT38 > → Event 455000000 starts with initial seeds (15953314,3405433).
G4WT35 >
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : had006
issued by : G4HadronicProcess::PostStepDoIt
In /home/hprmw/Geant4/geant4-v11.2.0/source/processes/hadronic/util/src/G4HadSecondary.cc, line 38:
===> ATTEMPTING TO CREATE A SECONDARY WITH NEGATIVE KINETIC ENERGY.
Call for Binary Light Ion Cascade
Target element O Z= 8 A= 16
Unrecoverable error in the method ApplyYourself of ionInelastic
TrackID= 1 ParentID= 0 Mg24
Ekin(GeV)= 1.29337; direction= (0.791431,-0.244155,-0.560379)
Position(mm)= (11.7459,64.864,488.804); material Thoracic_spine_spongiosa
PhysicalVolume
ApplyYourself failed

*** Fatal Exception *** core dump ***
G4WT35 > G4Track (0x70b1be7bc470) - track ID = 1, parent ID = 0
G4WT35 > Particle type : Mg24 - creator process : not available
G4WT35 > Kinetic energy : 1.29337 GeV - Momentum direction : (0.791431,-0.244155,-0.560379)
G4WT35 > Step length : 389.032 um - total energy deposit : 69.0037 MeV
G4WT35 > Pre-step point : (11.4377,64.9588,489.021) - Physical volume : wholePhantom (Thoracic_spine_spongiosa)
G4WT35 > - defined by : ionIoni - step status : 3
G4WT35 > Post-step point : (11.7459,64.864,488.804) - Physical volume : wholePhantom (Thoracic_spine_spongiosa)
G4WT35 > - defined by : ionInelastic - step status : 4
G4WT35 > *** Note: Step information might not be properly updated.
G4WT35 >
-------- EEEE -------- G4Exception-END --------- EEEE -------

G4WT35 >
G4WT35 > *** G4Exception: Aborting execution ***

Dear @vivekk

Welcome to the Geant4 forum!

Thank you for reporting the segmentation fault you encountered while running the ICRP145phantom example in Geant4.

To help us diagnose the issue more effectively, could you please enable the saving of the random engine seeds by adding the following UI command to your macro (before the run starts):

/random/setSavingFlag true

This will create a file (currentRun.rndm) containing the random engine state, which can be used to reproduce the run that caused the crash.

Additionally, could you open a Bugzilla ticket at Geant4 Bugzilla and include the following information:

  • The Geant4 version you’re using
  • The full example name and any modifications made
  • The OS and compiler version
  • The macro or steps to reproduce the issue
  • The seed file (currentRun.rndm)

This will help us keep track of the issue and follow up as needed.

Best,
Alvaro