Segmentation fault while executing /basic

Hello,every one
A beginner here,and sorry to interrupt you with some problems i met
while executing the /examples/xml/basic feedback an error below

Loading ACE cross section table: 92235.71c

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0 0x7F2835699E48
#1 0x7F2835698FD0
#2 0x7F2834BA82EF
#3 0x7F2834CC09B4
#4 0x48A4F4 in __ace_MOD_read_reactions
#5 0x48F536 in __ace_MOD_read_ace_table
#6 0x490FCA in __ace_MOD_read_xs
#7 0x476C79 in __initialize_MOD_initialize_run

Because of not exactly need for the capability of parallel simulation, i just installed OpenMC through the PPA on Ubuntu 15.10
have downloaded the source in zip from GitHub, and using the get_nndc_data.py to download and build the nndc cross sections data

I have looked the thread https://groups.google.com/forum/#!topic/openmc-users/Zg1vErwxj6A but the methods mentioned in still can not solve the problem
and thought may be the error from the user’s guide 5.2.1, due to not installing from source and sorry for knew few about Linux/Ubuntu, can not find out where the /openmc/src is while OpenMC been installed through the PPA

So i am here to post the thread to find a help to figure it out
and thank you all for your help

Hi Feng,

There was a bug in version 0.7.1 that has since been fixed (https://github.com/mit-crpg/openmc/pull/541). I’d suggest trying to build/install from source if you can. Otherwise, I can update the PPA at some point to get it working on Ubuntu 15.10, but building from source might be faster for the time being. Detailed build instructions can be found here:
http://openmc.readthedocs.org/en/latest/usersguide/install.html#building-from-source

On Ubuntu 15.10, all the pre-requisites can be satisfied through the package manager, namely ‘sudo apt-get install gfortran cmake libhdf5-dev’. With those packages installed, you should be able to follow the directions starting at section 2.2.2 in the user’s manual.

Best,
Paul

Hi Paul,

Scincerely thank you for your reply, and I am now following your suggestion to build OpenMC from source, but still some problems I met that can not figure out by myself.

I have been following the manual to build the configuration, and successfully setting all CMakelists.txt options to ‘ON’, also compiling with MPI and selecting HDF5 installation.

While running cmake … in /build, i found that all the build files have been written to the root directory instead of /build , also the cmake … output files. So that when running the make on /build showing a feedback says can not find the makefile

and all the feedbacks bellow

jfrx01@jfrx01-PC:~ FC=mpif90 cmake /home/jfrx01/openmc -- Detected MPI wrapper: mpif90 -- Configuring done -- Generating done -- Build files have been written to: /home/jfrx01 jfrx01@jfrx01-PC:~ HDF5_ROOT=/opt/hdf5/1.8.15 cmake /home/jfrx01/openmc
– Configuring done
– Generating done
– Build files have been written to: /home/jfrx01
jfrx01@jfrx01-PC:~ mkdir build && cd build jfrx01@jfrx01-PC:~/build cmake …
– Configuring done
– Generating done
– Build files have been written to: /home/jfrx01

Looking forward to your reply, and thank you for your time.

Best,

Feng

Hi Feng,

the cmake command as used above puts the build files in the same directory that the cmake command was run in. The ‘…’ argument to cmake in the docs link that Paul sent you simply tells cmake where to look for the source code.

So it looks like your very first command down below is correct (assuming /home/jfrx01/openmc is the location of openmc), you would just need to run make in that same directory after that.