# Error during running of code

**URL:** <https://root-forum.cern.ch/t/error-during-running-of-code/59412>\
**Category:** Newbie\
**Created:** [May 20, 2024, 12:49pm UTC](https://root-forum.cern.ch/t/error-during-running-of-code/59412 "2024-05-20T12:49:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![poojatanty](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/9d8465/32.png) [@poojatanty](https://root-forum.cern.ch/u/poojatanty)\
**Post date:** [May 20, 2024, 12:49pm UTC](https://root-forum.cern.ch/t/error-during-running-of-code/59412/1 "2024-05-20T12:49:43Z")

</div>

# =========================================================== 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

* * *

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [May 20, 2024, 9:16pm UTC](https://root-forum.cern.ch/t/error-during-running-of-code/59412/2 "2024-05-20T21:16:45Z")

</div>

Hi,

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

Danilo

---

<div class="post-metadata">

**Author:** ![poojatanty](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/9d8465/32.png) [@poojatanty](https://root-forum.cern.ch/u/poojatanty)\
**Post date:** [May 21, 2024, 9:55am UTC](https://root-forum.cern.ch/t/error-during-running-of-code/59412/3 "2024-05-21T09:55:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [May 28, 2024, 3:00pm UTC](https://root-forum.cern.ch/t/error-during-running-of-code/59412/4 "2024-05-28T15:00:07Z")

</div>

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/](https://geant4-forum.web.cern.ch/)
