Crash in G4MaterialPropertiesTable with v11.0p1

Hello,

with v11.0p1, I observe a crash linked to G4MaterialPropertiesTable

CAUGHT SIGNAL: 11 ### address: 0x8, signal = SIGSEGV, value = 11, description = segmentation violation. Address not mapped to object.

Backtrace:
[PID=9079, TID=-1][ 0/15]> /cvmfs/sft.cern.ch/lcg/views/dev4/Sun/x86_64-centos7-gcc8-opt/lib64/libG4materials.so(_ZNK25G4MaterialPropertiesTable11GetPropertyEi+0x6) [0x7fd4f2ca99b6]
[PID=9079, TID=-1][ 1/15]> /cvmfs/sft.cern.ch/lcg/views/dev4/Sun/x86_64-centos7-gcc8-opt/lib64/libG4processes.so(_ZN19G4OpBoundaryProcess12PostStepDoItERK7G4TrackRK6G4Step+0x1aa) [0x7fd4f6295aaa]
[PID=9079, TID=-1][ 2/15]> /cvmfs/sft.cern.ch/lcg/views/dev4/Sun/x86_64-centos7-gcc8-opt/lib64/libG4tracking.so(_ZN17G4SteppingManager11InvokePSDIPEm+0x3e) [0x7fd4f6f83b8e]

Running gdb gives the same info: crash in G4MaterialPropertiesTable::GetProperty(int) const ()

This happens only in 2% of the submitted jobs. So most of the time this problem does not occur. Hence, this appears difficult to debug. This crash did not appear in v10.6.p2.

Right before the crash, an optical photon is tracked in a radiator material but with process “Transportation”. The last info I get is:
“step length (mm) 378.97 total step energy deposit (MeV) 0.00 total kin energy (MeV) 0.000007”. So a very low energy photon that probably cannot do interactions any more.

Thank you very much for a hint.

Perhaps this is similar to bug 2471 – Segmentation fault in G4OpBoundaryProcess ?

Following the hints in the mentioned bug report, I narrowed it down to the transition:

Photon at Boundary!
thePrePV: ConeRadiator RICH_Ne
thePostPV: MylarCone G4_MYLAR
So going from neon in the RICH to the post step volume with mylar material, for which no optical parameters are defined,i.e. no properties added. The crash happens a the request for the group velocity from G4MaterialPropertiesTable inside the G4OpBoundaryProcess::PostStepDoIt.

I have the same problem, hope to get an answer

Thanks for posting. There were nullptr dereferences in G4OpBoundaryProcess::PostStepDoIt, which have now been fixed.

Hi,
I’ve run into this issue as well. I see that the bug has been fixed for v11.02 and v11.1, but as far as I can tell those are not available yet. Is there a way for us to access or implement the fix prior to the release of those versions?

Thanks!

11.0p2 is available from the download area.

1 Like

Hi, I got a very similar issue with v11.0.1, but not in G4MaterialProperties, it seems to be related to libG4intercoms. Here is the backtrace if this is useful:

CAUGHT SIGNAL: 11 ### address: 0x8, signal = SIGSEGV, value = 11, description = segmentation violation. Address not mapped to object.

Backtrace:
[PID=30072, TID=-1][ 0/13]> /home/jkovacs/Software/geant4-v11.0.1-install/lib/libG4processes.so(_ZN25G4VRangeToEnergyConverter16FillEnergyVectorEdd+0x11b) [0x7f78afbc695b]
[PID=30072, TID=-1][ 1/13]> /home/jkovacs/Software/geant4-v11.0.1-install/lib/libG4intercoms.so(_ZN11G4UIcommand4DoItE8G4String+0x4c2) [0x7f78aeb9e3b2]
[PID=30072, TID=-1][ 2/13]> /home/jkovacs/Software/geant4-v11.0.1-install/lib/libG4intercoms.so(_ZN25G4UIcmdWithADoubleAndUnit4DoItE8G4String+0x730) [0x7f78aeb94d50]
[PID=30072, TID=-1][ 3/13]> /home/jkovacs/Software/geant4-v11.0.1-install/lib/libG4intercoms.so(_ZN11G4UImanager12ApplyCommandEPKc+0xd22) [0x7f78aebbcf42]
[PID=30072, TID=-1][ 4/13]> /home/jkovacs/Software/geant4-v11.0.1-install/lib/libG4intercoms.so(_ZN9G4UIbatch11ExecCommandERK8G4String+0x21) [0x7f78aeb8db01]
[PID=30072, TID=-1][ 5/13]> /home/jkovacs/Software/geant4-v11.0.1-install/lib/libG4intercoms.so(_ZN9G4UIbatch12SessionStartEv+0x76) [0x7f78aeb8ec26]
[PID=30072, TID=-1][ 6/13]> /home/jkovacs/Software/geant4-v11.0.1-install/lib/libG4intercoms.so(_ZN11G4UImanager16ExecuteMacroFileEPKc+0x40) [0x7f78aebbe2a0]
[PID=30072, TID=-1][ 7/13]> /home/jkovacs/Software/geant4-v11.0.1-install/lib/libG4intercoms.so(_ZN20G4UIcontrolMessenger11SetNewValueEP11G4UIcommand8G4String+0x26a) [0x7f78aebab6aa]
[PID=30072, TID=-1][ 8/13]> /home/jkovacs/Software/geant4-v11.0.1-install/lib/libG4intercoms.so(_ZN11G4UIcommand4DoItE8G4String+0x4c2) [0x7f78aeb9e3b2]
[PID=30072, TID=-1][ 9/13]> /home/jkovacs/Software/geant4-v11.0.1-install/lib/libG4intercoms.so(_ZN11G4UImanager12ApplyCommandEPKc+0xd22) [0x7f78aebbcf42]
[PID=30072, TID=-1][10/13]> /home/jkovacs/Software/Simulations-Geant4/J1-v8-build/J1(+0x899e) [0x7f78b173c99e]
[PID=30072, TID=-1][11/13]> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f78ae4f4083]
[PID=30072, TID=-1][12/13]> /home/jkovacs/Software/Simulations-Geant4/J1-v8-build/J1(+0x954e) [0x7f78b173d54e]

: Segmentation fault (Address not mapped to object [0x8])
Aborted (core dumped)

Do you think this will be solved by installing v11.0.2?

Thanks very much!
Julio