Segmentation Error

While im trying to run a homogeneous geometry which should read the mgxs file that i created with the same geometry with using ENDFB.VIII library i get the error Segmentation fault (core dumped).

I tried everything, i checked the directories in my mgxs file which looks fine: HDF5 “mgxs.h5” {
FILE_CONTENTS {
group /
group /H1
group /H1/294K
dataset /H1/294K/absorption
group /H1/294K/scatter_data
dataset /H1/294K/scatter_data/g_max
dataset /H1/294K/scatter_data/g_min
dataset /H1/294K/scatter_data/scatter_matrix
dataset /H1/294K/total
group /H1/kTs
dataset /H1/kTs/294K
group /O16
group /O16/294K
dataset /O16/294K/absorption
group /O16/294K/scatter_data
dataset /O16/294K/scatter_data/g_max
dataset /O16/294K/scatter_data/g_min
dataset /O16/294K/scatter_data/scatter_matrix
dataset /O16/294K/total
group /O16/kTs
dataset /O16/kTs/294K
group /U235
group /U235/294K
dataset /U235/294K/absorption
dataset /U235/294K/chi
dataset /U235/294K/fission
dataset /U235/294K/nu-fission
group /U235/294K/scatter_data
dataset /U235/294K/scatter_data/g_max
dataset /U235/294K/scatter_data/g_min
dataset /U235/294K/scatter_data/scatter_matrix
dataset /U235/294K/total
group /U235/kTs
dataset /U235/kTs/294K
group /U238
group /U238/294K
dataset /U238/294K/absorption
dataset /U238/294K/chi
dataset /U238/294K/fission
dataset /U238/294K/nu-fission
group /U238/294K/scatter_data
dataset /U238/294K/scatter_data/g_max
dataset /U238/294K/scatter_data/g_min
dataset /U238/294K/scatter_data/scatter_matrix
dataset /U238/294K/total
group /U238/kTs
dataset /U238/kTs/294K
group /Zr90
group /Zr90/294K
dataset /Zr90/294K/absorption
group /Zr90/294K/scatter_data
dataset /Zr90/294K/scatter_data/g_max
dataset /Zr90/294K/scatter_data/g_min
dataset /Zr90/294K/scatter_data/scatter_matrix
dataset /Zr90/294K/total
group /Zr90/kTs
dataset /Zr90/kTs/294K
}
}

i checked the geometry which im trying to run

pin_surf = openmc.ZCylinder(r=0.63)
outside = openmc.Sphere(r=10.0, boundary_type=‘reflective’)
bottom = openmc.ZPlane(z0=-1.0, boundary_type=‘reflective’)
top = openmc.ZPlane(z0=1.0, boundary_type=‘reflective’)
region = -pin_surf & -outside & +bottom & -top

cell = openmc.Cell(name=‘homojen_pincell’, fill=fuel, region=region)
universe = openmc.Universe(cells=[cell])
geometry = openmc.Geometry(universe)
geometry.export_to_xml()

everything looks fine i really cant understand the problem can someone please help me

Hi Buk,

This shouldn’t have anything to do with your geometry/materials/settings, as errors in this are usually checked for and would give you an exact cause (unless it’s something really unique that the devs would like to know about) I would check out the following link,

15.2.1 covers segmentation faults. I would complete this first and see if its an issue you can fix, and also compare it to the other links I posted to see if its the same issue.

I would also check these following posts, through the second one gets pretty technical.

1 Like

Hi Jarret thank you for your reply. I checked the 2 other discussions you quoted before but my problem is different than both of them. I would also like to ask if the segmentation fault troubleshooting part should take a really long time to give me an answer or not? Because I followed the commands written there but the output I expected didn’t come out. I only could see few lines of the expected output after waiting for like half an hour. Is it normal to face this problem with debug command?

I’m pretty new to OpenMC and I’m trying to learn it all by myself. That’s why I’m asking this kind of question.

Thank you for your interest again.

Have a good day!:blush:

Hello,
I have recently had a similar issue with my new desktop computer. However, I figured out the source of this Segmentation Fault “core dump” issue. Basically, with newer (13th or 14th) gen intel cpus they no longer have an “instruction set” called AVX-512 which openmc or one of the dependencies uses. I have only tried to fix it on ubuntu and installed from the source so I don’t really know how applicable this will be if you are using docker. All I really had to do is add -DCMAKE_CXX_FLAGS=“-O3 -march=native -mno-avx512f” to the end of the cmake line when I installed openmc. So the commands for installing were:

git clone GitHub - openmc-dev/openmc: OpenMC Monte Carlo Code

cd openmc

mkdir build

cd build

cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=“-O3 -march=native -mno-avx512f”

make -j$(nproc)

cd ..

pip install .

I hope this helps. I got stuck trying to install OpenMC for almost two months (thankfully I had it on my laptop but still).

1 Like

Hi Ethan,

Thank you so much :folded_hands: . This will probably work because I work on ubuntu as well, and had to redownload openmc for too many times.