Error during running of code

===========================================================
There was a crash.
This is the entire stack trace of all threads:

#0 0x00007ff94a87260c in waitpid () from /lib64/libc.so.6
#1 0x00007ff94a7eff62 in do_system () from /lib64/libc.so.6
#2 0x00007ff95d04d462 in Exec (shellcmd=, this=0x1c3b9a0) at /tmp/kklimaszewski/spack-stage/spack-stage-root-6.24.06-f2vmdt3rp2x3mqemsppuq6tvxnztd3sf/spack-src/core/unix/src/TUnixSystem.cxx:2120
#3 TUnixSystem::StackTrace() () at /tmp/kklimaszewski/spack-stage/spack-stage-root-6.24.06-f2vmdt3rp2x3mqemsppuq6tvxnztd3sf/spack-src/core/unix/src/TUnixSystem.cxx:2411
#4 0x00007ff95d04fdf5 in TUnixSystem::DispatchSignals (this=0x1c3b9a0, sig=kSigSegmentationViolation) at /tmp/kklimaszewski/spack-stage/spack-stage-root-6.24.06-f2vmdt3rp2x3mqemsppuq6tvxnztd3sf/spack-src/core/unix/src/TUnixSystem.cxx:3649
#5
#6 0x00007ff94ff9673f in G4RunManager::RunTermination (this=0x1cfca00) at /tmp/tjarosiewicz/spack-stage/spack-stage-geant4-10.7.2-serdqmk4d53r4ubfg44t4zc3vgofeemg/spack-src/source/run/src/G4RunManager.cc:616
#7 0x00007ff94ff94d67 in G4RunManager::BeamOn (this=0x1cfca00, n_event=1000, macroFile=0x0, n_select=-1) at /tmp/tjarosiewicz/spack-stage/spack-stage-geant4-10.7.2-serdqmk4d53r4ubfg44t4zc3vgofeemg/spack-src/source/run/src/G4RunManager.cc:344
#8 0x00007ff94ffb1971 in G4RunMessenger::SetNewValue(G4UIcommand*, G4String) () at /tmp/tjarosiewicz/spack-stage/spack-stage-geant4-10.7.2-serdqmk4d53r4ubfg44t4zc3vgofeemg/spack-src/source/run/src/G4RunMessenger.cc:460
#9 0x00007ff94be6fdc7 in G4UIcommand::DoIt(G4String) () at /tmp/tjarosiewicz/spack-stage/spack-stage-geant4-10.7.2-serdqmk4d53r4ubfg44t4zc3vgofeemg/spack-src/source/intercoms/src/G4UIcommand.cc:262
#10 0x00007ff94be85275 in G4UImanager::ApplyCommand(char const*) () at /tmp/tjarosiewicz/spack-stage/spack-stage-geant4-10.7.2-serdqmk4d53r4ubfg44t4zc3vgofeemg/spack-src/source/intercoms/src/G4UImanager.cc:584
#11 0x00007ff94be86158 in G4UImanager::ApplyCommand (this=, aCmd=…) at /tmp/tjarosiewicz/spack-stage/spack-stage-geant4-10.7.2-serdqmk4d53r4ubfg44t4zc3vgofeemg/spack-src/source/global/management/include/G4String.icc:341
#12 0x00007ff94be60a87 in G4UIbatch::ExecCommand (this=this
entry=0x2e48890, command=…) at /tmp/tjarosiewicz/spack-stage/spack-stage-geant4-10.7.2-serdqmk4d53r4ubfg44t4zc3vgofeemg/spack-src/source/intercoms/src/G4UIbatch.cc:182
#13 0x00007ff94be61dae in G4UIbatch::SessionStart() () at /tmp/tjarosiewicz/spack-stage/spack-stage-geant4-10.7.2-serdqmk4d53r4ubfg44t4zc3vgofeemg/spack-src/source/intercoms/src/G4UIbatch.cc:230
#14 0x00007ff94be8619c in G4UImanager::ExecuteMacroFile(char const*) () at /tmp/tjarosiewicz/spack-stage/spack-stage-geant4-10.7.2-serdqmk4d53r4ubfg44t4zc3vgofeemg/spack-src/source/intercoms/src/G4UImanager.cc:308
#15 0x00007ff94be7afad in G4UIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) () at /tmp/tjarosiewicz/spack-stage/spack-stage-geant4-10.7.2-serdqmk4d53r4ubfg44t4zc3vgofeemg/spack-src/source/global/management/include/G4String.icc:136
#16 0x00007ff94be6fdc7 in G4UIcommand::DoIt(G4String) () at /tmp/tjarosiewicz/spack-stage/spack-stage-geant4-10.7.2-serdqmk4d53r4ubfg44t4zc3vgofeemg/spack-src/source/intercoms/src/G4UIcommand.cc:262
#17 0x00007ff94be85275 in G4UImanager::ApplyCommand(char const*) () at /tmp/tjarosiewicz/spack-stage/spack-stage-geant4-10.7.2-serdqmk4d53r4ubfg44t4zc3vgofeemg/spack-src/source/intercoms/src/G4UImanager.cc:584
#18 0x00000000004240bc in main (argc=2, argv=0x7ffc213a30e8) at /mnt/home/ptanty/test1/jpetGeant/JPetMC.cpp:51


ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


Hi,

You’ll need to be more precise if you aim to get support.

Danilo

I am trying to run a code which is based on geant4 and root. I can run it in local system without any issue however whenever I am trying to run it in any HPC facility its giving me this error. It seems around 98 % of code is running and then there is break segmentation violation error. THis is the backtrace of the error message.

It could be a problem with the fact that it’s running in batch mode?

You could also try to run it with a newer Geant4 version.

Try also asking at https://geant4-forum.web.cern.ch/