# Segmentation fault (core dumped)

**URL:** <https://openmc.discourse.group/t/segmentation-fault-core-dumped/4521>\
**Category:** User Support\
**Created:** [July 5, 2024, 3:00am UTC](https://openmc.discourse.group/t/segmentation-fault-core-dumped/4521 "2024-07-05T03:00:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiangjiang](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/jiangjiang/32/3483_2.png) [@jiangjiang](https://openmc.discourse.group/u/jiangjiang)\
**Post date:** [July 5, 2024, 3:00am UTC](https://openmc.discourse.group/t/segmentation-fault-core-dumped/4521/1 "2024-07-05T03:00:39Z")

</div>

Hi, all,

When  
settings.inactive = 20  
settings.batches = 60  
settings.particles = 1000  
there is no fault desplayed.

when I improved the batches up to 100, it shows segmentation fault (core dumped), then I followed the munual, build-debug, the problem still exists.

Any advice? thanks!

---

<div class="post-metadata">

**Author:** ![wahidluthfi](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/wahidluthfi/32/3375_2.png) [@wahidluthfi](https://openmc.discourse.group/u/wahidluthfi)\
**Post date:** [July 5, 2024, 3:05am UTC](https://openmc.discourse.group/t/segmentation-fault-core-dumped/4521/2 "2024-07-05T03:05:00Z")

</div>

Hi JiangJiang,  
have you tried to check your geometry? you might want to check if there are some overlapping cells in your geometry using the geometry debug feature of openmc  
`openmc.run(geometry_debug=True)`

---

<div class="post-metadata">

**Author:** ![jiangjiang](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/jiangjiang/32/3483_2.png) [@jiangjiang](https://openmc.discourse.group/u/jiangjiang)\
**Post date:** [July 10, 2024, 2:22am UTC](https://openmc.discourse.group/t/segmentation-fault-core-dumped/4521/3 "2024-07-10T02:22:47Z")

</div>

Thanks a lot. It’s useful. 😊 😊

---

<div class="post-metadata">

**Author:** ![gridley](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/gridley/32/1064_2.png) [@gridley](https://openmc.discourse.group/u/gridley)\
**Post date:** [July 11, 2024, 11:32pm UTC](https://openmc.discourse.group/t/segmentation-fault-core-dumped/4521/4 "2024-07-11T23:32:21Z")

</div>

Hey, can you send me the input? Even if it was a geometry error, ideally we should catch all errors before they become segfaults. I think find the cause and add a new error catcher to the code!

---

<div class="post-metadata">

**Author:** ![jiangjiang](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/jiangjiang/32/3483_2.png) [@jiangjiang](https://openmc.discourse.group/u/jiangjiang)\
**Post date:** [July 20, 2024, 11:58am UTC](https://openmc.discourse.group/t/segmentation-fault-core-dumped/4521/6 "2024-07-20T11:58:40Z")

</div>

[quote=“jiangjiang, post:5, topic:4521, full:true”]  
It’s two sorry，after I ask the author that owns the code of the model, I can’t give you the source input.  
Much sorry and thanks.
