# Problem related to crashing/ break segmentation

**URL:** <https://geant4-forum.web.cern.ch/t/problem-related-to-crashing-break-segmentation/11229>\
**Category:** Recording, Visualizing and Persisting Data\
**Created:** [October 31, 2023, 5:02pm UTC](https://geant4-forum.web.cern.ch/t/problem-related-to-crashing-break-segmentation/11229 "2023-10-31T17:02:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SoniDMalik](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/sonidmalik/32/4687_2.png) [@SoniDMalik](https://geant4-forum.web.cern.ch/u/SoniDMalik)\
**Post date:** [October 31, 2023, 5:02pm UTC](https://geant4-forum.web.cern.ch/t/problem-related-to-crashing-break-segmentation/11229/1 "2023-10-31T17:02:44Z")

</div>

Please fill out the following information to help in answering your question, and also see [tips for posting code snippets](https://geant4-forum.web.cern.ch/t/how-to-post-code-snippets/9944). If you don’t provide this information it will take longer to help with your problem!

\_Geant4 Version: geant4-v11.1.1  
\_Operating System: Ubuntu 22.04  
\_Compiler/Version: GCC 11.4.0  
\_CMake Version: 3.22.1

 ![Screenshot from 2023-10-31 22-27-38](https://geant4-forum.web.cern.ch/uploads/default/original/2X/3/334a36fde5dd183fedc3a2512a25fc04692463ce.png)

* * *

---

<div class="post-metadata">

**Author:** ![bmorgan](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/bmorgan/32/7_2.png) [@bmorgan](https://geant4-forum.web.cern.ch/u/bmorgan)\
**Post date:** [October 31, 2023, 5:30pm UTC](https://geant4-forum.web.cern.ch/t/problem-related-to-crashing-break-segmentation/11229/2 "2023-10-31T17:30:57Z")

</div>

It looks like the fundamental issue is in `DetectorConstruction::StoreParTree` but you’ll have to run the application through a debugger like `gdb` to pinpoint the cause.

---

<div class="post-metadata">

**Author:** ![SoniDMalik](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/sonidmalik/32/4687_2.png) [@SoniDMalik](https://geant4-forum.web.cern.ch/u/SoniDMalik)\
**Post date:** [November 1, 2023, 9:46am UTC](https://geant4-forum.web.cern.ch/t/problem-related-to-crashing-break-segmentation/11229/3 "2023-11-01T09:46:25Z")

</div>

![Screenshot from 2023-11-01 15-13-39](https://geant4-forum.web.cern.ch/uploads/default/original/2X/e/e6dba172aab2aa40943ef1b8c5dc40374dd6fe6d.png)  
I tried to make the executable by direct compilation but It did not work. This code was running well in an old version of Geant4, but I am not able to run it in a new version.

---

<div class="post-metadata">

**Author:** ![bmorgan](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/bmorgan/32/7_2.png) [@bmorgan](https://geant4-forum.web.cern.ch/u/bmorgan)\
**Post date:** [November 1, 2023, 1:45pm UTC](https://geant4-forum.web.cern.ch/t/problem-related-to-crashing-break-segmentation/11229/4 "2023-11-01T13:45:15Z")

</div>

It’s impossible to tell from that information what the cause could be - the _only_ way to determine that is to run in a debugger to pinpoint the line/state in the code and program.
