View Issue Details

IDProjectCategoryView StatusLast Update
0003887OpenFOAMBugpublic2022-10-11 11:19
Reporterrdutta Assigned Tohenry  
PriorityhighSeveritycrashReproducibilityalways
Status closedResolutionno change required 
PlatformLinuxOSCentOS OS Version7.9.2009 (Core)
Product Version10 
Summary0003887: Segmentation fault when #includeFunc included
DescriptionWe have had a surprising issue at our HPC recently. The administrator had installed OpenFOAM 10, however, applications give segmentation fault when I add #includeFunc in the controlDict. Even the blockMesh fails. If I remove the #includeFunc scripts from the controlDict, those cases run.
Steps To ReproduceI tried many of the tutorials with function objects, channel395, pitzDaily, but they all fail with #includeFunc.

I copied error output with the blockMesh in channel395:
/usr/global/sge/default/spool/teal88/job_scripts/242511: line 19: 21087 Segmentation fault (core dumped) blockMesh >> mesh.out

Here is the job submission script:

#!/bin/bash
# Use the current working directory
#$ -S /bin/bash
#$ -cwd
# Use the Engineering queue
#$ -q EGR_matlab
#$ -l h='!teal95&!teal96'
#sets runtime to 72 hours
#$ -l h_rt=72:00:00
# requesting 32 processors, change this as needed
##$ -pe ompi 4
# Setup the OpenFOAM environment
module purge
module load OpenFoam10
module load openmpi4
module load gcc/10.2.1
# Run actual OpenFoam commands modify the line below with your actual commands
START=$(date +%s)
blockMesh >> mesh.out


END=$(date +%s)

let TOTAL="${END} - ${START}"
echo "Script took ${TOTAL} seconds"
Additional InformationCentOS Linux release 7.9.2009 (Core)

Compiled with GCC 10.2.1 and openmpi 4.1.1

Batch system is Son of Grid Engine 8.1.8

Submission scripts use modules for openmpi, GCC and OpenFoam 10 environments

Environment at runtime: attached in "printenv.txt"
TagsNo tags attached.

Relationships

related to 0003898 closedwyldckat Segmentation fault when using function entries due to incorrect global initialization 

Activities

henry

2022-09-16 17:53

manager   ~0012741

I am not able to reproduce this issue, I have never seen this problem before.

wyldckat

2022-09-16 18:04

updater   ~0012742

@rdutta: In the print out of the runtime environment, notice this line:

   FOAM_ETC=/home1/global/OpenFOAM-10/etc

1. Does this folder "/home1/global/OpenFOAM-10/etc" really exist and is accessible from all nodes in the cluster?
2. If it does, are you able to run the job in a way that you can test if the respective included files via "includeFunc" are accessible by all processes in all nodes?

wyldckat

2022-09-16 18:07

updater   ~0012743

Attached "printenv.txt", to remove what was posted directly on the "Additional Information" section above.
printenv.txt (11,464 bytes)   
jmdavis@teal ~]$ printenv

WM_LINK_LANGUAGE=c++

MPI_INCLUDE=/home1/global/openmpi-4.1.1/include

MANPATH=/home1/global/openmpi-4.1.1/share/openmpi:/opt/rh/devtoolset-10/root/usr/share/man:/usr/share/lmod/lmod/share/man:/usr/global/sge/man:/usr/share/man/overrides:/usr/share/man:/usr/local/share/man

FOAM_SOLVERS=/home1/global/OpenFOAM-10/applications/solvers

FOAM_EXT_LIBBIN=/home1/global/ThirdParty-10/platforms/linux64GccDPInt32/lib

FOAM_APPBIN=/home1/global/OpenFOAM-10/platforms/linux64GccDPInt32Opt/bin

XDG_SESSION_ID=42703

WM_COMPILER_TYPE=system

WM_ARCH=linux64

FOAM_TUTORIALS=/home1/global/OpenFOAM-10/tutorials

FOAM_JOB_DIR=/home1/global/jobControl

_ModuleTable003_=ZC9sbW9kL21vZHVsZWZpbGVzL0NvcmUiLH0sWyJzeXN0ZW1CYXNlTVBBVEgiXT0iL3Vzci9nbG9iYWwvbW9kdWxlZmlsZXM6L2V0Yy9tb2R1bGVmaWxlczovdXNyL3NoYXJlL21vZHVsZWZpbGVzOi91c3Ivc2hhcmUvbW9kdWxlZmlsZXMvTGludXg6L3Vzci9zaGFyZS9tb2R1bGVmaWxlcy9Db3JlOi91c3Ivc2hhcmUvbG1vZC9sbW9kL21vZHVsZWZpbGVzL0NvcmUiLH0=

HOSTNAME=teal.chpc.vcu.edu

OMPI_MCA_btl_openib_allow_ib=1

SELINUX_ROLE_REQUESTED=

WM_OSTYPE=POSIX

__LMOD_REF_COUNT_MODULEPATH=/usr/global/modulefiles:1;/etc/modulefiles:1;/usr/share/modulefiles:1;/usr/share/modulefiles/Linux:1;/usr/share/modulefiles/Core:1;/usr/share/lmod/lmod/modulefiles/Core:1

TERM=xterm-256color

SHELL=/bin/bash

WM_THIRD_PARTY_DIR=/home1/global/ThirdParty-10

MPI_ARCH_PATH=/home1/global/openmpi-4.1.1

LMOD_ROOT=/usr/share/lmod

WISECONFIGDIR=/usr/share/wise2/

HISTSIZE=1000

MODULEPATH_ROOT=/usr/share/modulefiles

SSH_CLIENT=128.172.189.61 54018 22

FOAM_SITE_APPBIN=/home1/global/site/10/platforms/linux64GccDPInt32Opt/bin

SGE_CELL=default

SGE_ARCH=lx-amd64

NCARG_FONTCAPS=/usr/lib64/ncarg/fontcaps

SELINUX_USE_CURRENT_RANGE=

LMOD_PKG=/usr/share/lmod/lmod

QTDIR=/usr/lib64/qt-3.3

LMOD_VERSION=8.2.7

QTINC=/usr/lib64/qt-3.3/include

SSH_TTY=/dev/pts/6

WM_PROJECT_VERSION=10

WM_CXXFLAGS=-m64

WM_CFLAGS=-m64

FOAM_APP=/home1/global/OpenFOAM-10/applications

__LMOD_REF_COUNT_LOADEDMODULES=gcc/10.2.1:1;openmpi4:1;OpenFoam10:1

QT_GRAPHICSSYSTEM_CHECKED=1

MPI_PYTHON_SITEARCH=/usr/lib64/python2.7/site-packages/openmpi

PCP_DIR=/opt/rh/devtoolset-10/root

USER=jmdavis

FOAM_SITE_LIBBIN=/home1/global/site/10/platforms/linux64GccDPInt32Opt/lib

LD_LIBRARY_PATH=/home1/global/ThirdParty-10/platforms/linux64Gcc/gperftools-svn/lib:/home1/global/OpenFOAM-10/platforms/linux64GccDPInt32Opt/lib/openmpi-system:/home1/global/ThirdParty-10/platforms/linux64GccDPInt32/lib/openmpi-system:/home1/global/openmpi-4.1.1/lib:/root/OpenFOAM/root-10/platforms/linux64GccDPInt32Opt/lib:/home1/global/site/10/platforms/linux64GccDPInt32Opt/lib:/home1/global/OpenFOAM-10/platforms/linux64GccDPInt32Opt/lib:/home1/global/ThirdParty-10/platforms/linux64GccDPInt32/lib:/home1/global/OpenFOAM-10/platforms/linux64GccDPInt32Opt/lib/dummy:/opt/rh/devtoolset-10/root/usr/lib64:/opt/rh/devtoolset-10/root/usr/lib:/opt/rh/devtoolset-10/root/usr/lib64/dyninst:/opt/rh/devtoolset-10/root/usr/lib/dyninst

LMOD_sys=Linux

LS_COLORS=rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:

WM_COMPILER_LIB_ARCH=64

MPI_BUFFER_SIZE=20000000

FOAM_SRC=/home1/global/OpenFOAM-10/src

FOAM_SIGFPE=.

WM_PROJECT_INST_DIR=/home1/global

ParaView_DIR=/home1/global/ThirdParty-10/platforms/linux64Gcc/ParaView-5.6.3

WM_PROJECT_DIR=/home1/global/OpenFOAM-10

WM_CXX=g++

FOAM_UTILITIES=/home1/global/OpenFOAM-10/applications/utilities

__LMOD_REF_COUNT__LMFILES_=/usr/global/modulefiles/gcc/10.2.1:1;/usr/global/modulefiles/openmpi4:1;/usr/global/modulefiles/OpenFoam10:1

MPI_LIB=/home1/global/openmpi-4.1.1/lib

WM_LABEL_OPTION=Int32

NCARG_GRAPHCAPS=/usr/lib64/ncarg/graphcaps

WM_PROJECT=OpenFOAM

WM_LDFLAGS=-m64

WM_COMPILER=Gcc

WM_MPLIB=SYSTEMOPENMPI

_ModuleTable001_=X01vZHVsZVRhYmxlXz17WyJNVHZlcnNpb24iXT0zLFsiY19yZWJ1aWxkVGltZSJdPTcyMDAsWyJjX3Nob3J0VGltZSJdPTAuMjI4NzkwOTk4NDU4ODYsZGVwdGhUPXt9LGZhbWlseT17fSxtVD17T3BlbkZvYW0xMD17WyJmbiJdPSIvdXNyL2dsb2JhbC9tb2R1bGVmaWxlcy9PcGVuRm9hbTEwIixbImZ1bGxOYW1lIl09Ik9wZW5Gb2FtMTAiLFsibG9hZE9yZGVyIl09Myxwcm9wVD17fSxbInN0YWNrRGVwdGgiXT0wLFsic3RhdHVzIl09ImFjdGl2ZSIsWyJ1c2VyTmFtZSJdPSJPcGVuRm9hbTEwIix9LGdjYz17WyJmbiJdPSIvdXNyL2dsb2JhbC9tb2R1bGVmaWxlcy9nY2MvMTAuMi4xIixbImZ1bGxOYW1lIl09ImdjYy8xMC4yLjEiLFsibG9hZE9yZGVyIl09MSxwcm9wVD17fSxb

MAIL=/var/spool/mail/jmdavis

PATH=/home1/global/ThirdParty-10/platforms/linux64Gcc/gperftools-svn/bin:/home1/global/ThirdParty-10/platforms/linux64Gcc/cmake-*/bin:/root/OpenFOAM/root-10/platforms/linux64GccDPInt32Opt/bin:/home1/global/site/10/platforms/linux64GccDPInt32Opt/bin:/home1/global/OpenFOAM-10/platforms/linux64GccDPInt32Opt/bin:/home1/global/OpenFOAM-10/bin:/home1/global/OpenFOAM-10/wmake:/home1/global/openmpi-4.1.1/include:/home1/global/openmpi-4.1.1/bin:/opt/rh/devtoolset-10/root/usr/bin:/usr/global/sge/bin:/usr/global/sge/bin/lx-amd64:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin

FOAM_USER_LIBBIN=/root/OpenFOAM/root-10/platforms/linux64GccDPInt32Opt/lib

MPI_BIN=/home1/global/openmpi-4.1.1/bin

MPI_COMPILER=openmpi-x86_64

WM_CC=gcc

ParaView_GL=mesa

PWD=/home1/jmdavis

__LMOD_REF_COUNT_MPI_ARCH_PATH=/home1/global/openmpi-4.1.1:1

_LMFILES_=/usr/global/modulefiles/gcc/10.2.1:/usr/global/modulefiles/openmpi4:/usr/global/modulefiles/OpenFoam10

NCARG_ROOT=/usr

FOAM_ETC=/home1/global/OpenFOAM-10/etc

__LMOD_REF_COUNT_PYTHONPATH=/usr/lib64/python2.7/site-packages/openmpi:1

LANG=en_US.UTF-8

NCARG_DATABASE=/usr/lib64/ncarg/database

MODULEPATH=/usr/global/modulefiles:/etc/modulefiles:/usr/share/modulefiles:/usr/share/modulefiles/Linux:/usr/share/modulefiles/Core:/usr/share/lmod/lmod/modulefiles/Core

FOAM_INST_DIR=/home1/global

__LMOD_REF_COUNT_INFOPATH=/opt/rh/devtoolset-10/root/usr/share/info:1

_ModuleTable_Sz_=3

SGE_ROOT=/usr/global/sge

LOADEDMODULES=gcc/10.2.1:openmpi4:OpenFoam10

SELINUX_LEVEL_REQUESTED=

LMOD_CMD=/usr/share/lmod/lmod/libexec/lmod

WM_COMPILE_OPTION=Opt

FOAM_MPI=openmpi-system

FOAM_LIBBIN=/home1/global/OpenFOAM-10/platforms/linux64GccDPInt32Opt/lib

NCARG_LIB=/usr/lib64/ncarg

HISTCONTROL=ignoredups

WM_DIR=/home1/global/OpenFOAM-10/wmake

ParaView_VERSION=5.6.3

MPI_SYSCONFIG=/home1/global/openmpi-4.1.1/etc

WM_LABEL_SIZE=32

NCARG_NCARG=/usr/share/ncarg

SHLVL=1

HOME=/home1/jmdavis

__LMOD_REF_COUNT_PATH=/home1/global/ThirdParty-10/platforms/linux64Gcc/gperftools-svn/bin:1;/home1/global/ThirdParty-10/platforms/linux64Gcc/cmake-*/bin:1;/root/OpenFOAM/root-10/platforms/linux64GccDPInt32Opt/bin:1;/home1/global/site/10/platforms/linux64GccDPInt32Opt/bin:1;/home1/global/OpenFOAM-10/platforms/linux64GccDPInt32Opt/bin:1;/home1/global/OpenFOAM-10/bin:1;/home1/global/OpenFOAM-10/wmake:1;/home1/global/openmpi-4.1.1/include:1;/home1/global/openmpi-4.1.1/bin:1;/opt/rh/devtoolset-10/root/usr/bin:1;/usr/global/sge/bin:1;/usr/global/sge/bin/lx-amd64:1;/usr/lib64/qt-3.3/bin:1;/usr/lib64/ccache:1;/usr/local/bin:1;/usr/bin:1;/usr/local/sbin:1;/usr/sbin:1

ParaView_MAJOR=5.6

GDL_PATH=+/usr/share/gnudatalanguage

MPI_SUFFIX=_openmpi

_ModuleTable002_=InN0YWNrRGVwdGgiXT0wLFsic3RhdHVzIl09ImFjdGl2ZSIsWyJ1c2VyTmFtZSJdPSJnY2MvMTAuMi4xIix9LG9wZW5tcGk0PXtbImZuIl09Ii91c3IvZ2xvYmFsL21vZHVsZWZpbGVzL29wZW5tcGk0IixbImZ1bGxOYW1lIl09Im9wZW5tcGk0IixbImxvYWRPcmRlciJdPTIscHJvcFQ9e30sWyJzdGFja0RlcHRoIl09MCxbInN0YXR1cyJdPSJhY3RpdmUiLFsidXNlck5hbWUiXT0ib3Blbm1waTQiLH0sfSxtcGF0aEE9eyIvdXNyL2dsb2JhbC9tb2R1bGVmaWxlcyIsIi9ldGMvbW9kdWxlZmlsZXMiLCIvdXNyL3NoYXJlL21vZHVsZWZpbGVzIiwiL3Vzci9zaGFyZS9tb2R1bGVmaWxlcy9MaW51eCIsIi91c3Ivc2hhcmUvbW9kdWxlZmlsZXMvQ29yZSIsIi91c3Ivc2hhcmUvbG1v

FOAM_SETTINGS=.

MPI_MAN=/home1/global/openmpi-4.1.1/share/man

BASH_ENV=/usr/share/lmod/lmod/init/bash

PYTHONPATH=/usr/lib64/python2.7/site-packages/openmpi

LOGNAME=jmdavis

WM_PROJECT_USER_DIR=/root/OpenFOAM/root-10

QTLIB=/usr/lib64/qt-3.3/lib

CVS_RSH=ssh

FOAM_RUN=/root/OpenFOAM/root-10/run

XDG_DATA_DIRS=/home1/jmdavis/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share

SSH_CONNECTION=128.172.189.61 54018 192.168.66.134 22

MPI_FORTRAN_MOD_DIR=/usr/lib64/gfortran/modules/openmpi-x86_64

MODULESHOME=/usr/share/lmod/lmod

WM_OPTIONS=linux64GccDPInt32Opt

PKG_CONFIG_PATH=/opt/rh/devtoolset-10/root/usr/lib64/pkgconfig

__LMOD_REF_COUNT_LD_LIBRARY_PATH=/home1/global/ThirdParty-10/platforms/linux64Gcc/gperftools-svn/lib:1;/home1/global/OpenFOAM-10/platforms/linux64GccDPInt32Opt/lib/openmpi-system:1;/home1/global/ThirdParty-10/platforms/linux64GccDPInt32/lib/openmpi-system:1;/home1/global/openmpi-4.1.1/lib:2;/root/OpenFOAM/root-10/platforms/linux64GccDPInt32Opt/lib:1;/home1/global/site/10/platforms/linux64GccDPInt32Opt/lib:1;/home1/global/OpenFOAM-10/platforms/linux64GccDPInt32Opt/lib:1;/home1/global/ThirdParty-10/platforms/linux64GccDPInt32/lib:1;/home1/global/OpenFOAM-10/platforms/linux64GccDPInt32Opt/lib/dummy:1;/opt/rh/devtoolset-10/root/usr/lib64:3;/opt/rh/devtoolset-10/root/usr/lib:3;/opt/rh/devtoolset-10/root/usr/lib64/dyninst:2;/opt/rh/devtoolset-10/root/usr/lib/dyninst:2

LMOD_SETTARG_FULL_SUPPORT=no

LESSOPEN=||/usr/bin/lesspipe.sh %s

INFOPATH=/opt/rh/devtoolset-10/root/usr/share/info

__LMOD_REF_COUNT_PKG_CONFIG_PATH=/opt/rh/devtoolset-10/root/usr/lib64/pkgconfig:1

SGE_CLUSTER_NAME=teal

XDG_RUNTIME_DIR=/run/user/1508

WM_PRECISION_OPTION=DP

__LMOD_REF_COUNT_MANPATH=/home1/global/openmpi-4.1.1/share/openmpi:1;/opt/rh/devtoolset-10/root/usr/share/man:1;/usr/share/lmod/lmod/share/man:1;/usr/global/sge/man:1;/usr/share/man/overrides:1;/usr/share/man:1;/usr/local/share/man:1

LMOD_DIR=/usr/share/lmod/lmod/libexec

WM_ARCH_OPTION=64

FOAM_USER_APPBIN=/root/OpenFOAM/root-10/platforms/linux64GccDPInt32Opt/bin

BASH_FUNC_module()=() { eval $($LMOD_CMD bash "$@") && eval $(${LMOD_SETTARG_CMD:-:} -s sh)

}

BASH_FUNC_ml()=() { eval $($LMOD_DIR/ml_cmd "$@")

}

_=/usr/bin/printenv
printenv.txt (11,464 bytes)   

rdutta

2022-09-20 21:41

reporter   ~0012746

Thanks for the reply.
We have checked that the folder /home1/global/OpenFOAM-10/etc is accessible from all the nodes in the cluster.

I have noticed that applications fail when we use any #include directive even if the included scripts are within the system directory. E.g, The motorbike tutorials with the following functions also fail.
functions
{
    #include "streamlines"
    #include "cuttingPlane"
    #include "forceCoeffs"
}

Besides, some of the foam environment variables (e.g., $FOAM_RUN) directs to the root as shown below:
[rdutta@teal bin]$ cd $FOAM_RUN
-bash: cd: /root/OpenFOAM/root-10/run: Permission denied
[rdutta@teal bin]$ cd $FOAM_ETC
[rdutta@teal etc]$ pwd
/home1/global/OpenFOAM-10/etc

peksa

2022-09-22 13:53

reporter   ~0012749

"""
Besides, some of the foam environment variables (e.g., $FOAM_RUN) directs to the root as shown below:
[rdutta@teal bin]$ cd $FOAM_RUN
-bash: cd: /root/OpenFOAM/root-10/run: Permission denied
"""

This sounds to me that your openfoam environment is not properly set? Do you use a modified bashrc script that cluster users execute before using OpenFoam? Perhaps the "WM_PROJECT_USER_DIR=" is pointing to wrong place and not updated per user as it should be.

Could you ask your cluster admin how the environment was set when he compiled OF?

lorenzotrevisan

2022-09-23 14:46

reporter   ~0012751

if it can help, on a CentOS 7.9 with similar configuration I have the same problem: applications fail when any #include directive is used, starting from v9 included. For example tutorials/heatTransfer/chtMultiRegionFoam/reverseBurner with v8 works, with v9 and v10 it crashes.
So this problem manifests after v8 release and before https://github.com/OpenFOAM/OpenFOAM-9/commit/98b90398f136d8a3131a00fcc8ab7397ea34825e

wyldckat

2022-09-23 15:09

updater   ~0012752

@rdutta and @lorenzotrevisan: Do you know if any specific installation instructions were followed and/or adapted from?

Because I'm suspecting that this is an issue with SELinux, namely the executable does not have enough permissions to read from certain files, although this is all too strange, given that it is able to read from field files and other case files just fine...

So even if I were to try and reproduce this in a CentOS 7.9 virtual machine, knowing a few more details would help reproduce this issue.

lorenzotrevisan

2022-09-23 15:52

reporter   ~0012753

On this machine SELinux is Disabled.

gcc with C++14 support was added with precompiled devtoolset-11 and installed with softwarecollections.

With v8 compiled with system gcc-4.8.5 I don't have any problem.

hsncelik

2022-09-23 17:29

reporter   ~0012754

I feel like this problem is not OF side issue but I feel like this problem looks like environment variables problem at your HPC system like @wyldckat mentoined. At least, I may confirm that I tested in several different HPC systems based in my country and it works well with OF-10 and OF-dev. What you may check, you may go into $FOAM_ETC and there you may check bashrc and confirm $FOAM_INST_DIR and other settings. Another thing to test might be cloning source code and compiling in your home folder.

jkau

2022-09-26 08:56

reporter   ~0012755

I faced same problem when installing dev-version on a CentOS-7.9 cluster. According to the reply on CFD online (https://www.cfd-online.com/Forums/openfoam-installation/241354-openfoam-dev-centos-7-9-segmentation-fault-when-executing-any-application.html), it can be solved with a self-compiled gcc-5.5.0.

I never tried gcc-5.5.0, but for me it was solved with a recently self-compiled gcc-12.1.0 compiler. So may it is somehow related to the precompiled compiler-versions?

lorenzotrevisan

2022-09-26 15:20

reporter   ~0012756

On my side I can confirm that removing the pre-compiled devtoolset-11, and compiling locally gcc-5.5.0 following the instruction found here https://gcc.gnu.org/wiki/InstallingGCC, resolve the problem. Thanks jkau, thanks Bruno and thanks to all.

henry

2022-09-26 15:34

manager   ~0012757

Bug in CentOS 7.9

Issue History

Date Modified Username Field Change
2022-09-16 16:11 rdutta New Issue
2022-09-16 17:53 henry Note Added: 0012741
2022-09-16 18:04 wyldckat Note Added: 0012742
2022-09-16 18:07 wyldckat Note Added: 0012743
2022-09-16 18:07 wyldckat File Added: printenv.txt
2022-09-16 18:07 wyldckat Additional Information Updated
2022-09-20 21:41 rdutta Note Added: 0012746
2022-09-22 13:53 peksa Note Added: 0012749
2022-09-23 14:46 lorenzotrevisan Note Added: 0012751
2022-09-23 15:09 wyldckat Note Added: 0012752
2022-09-23 15:52 lorenzotrevisan Note Added: 0012753
2022-09-23 17:29 hsncelik Note Added: 0012754
2022-09-26 08:56 jkau Note Added: 0012755
2022-09-26 15:20 lorenzotrevisan Note Added: 0012756
2022-09-26 15:34 henry Assigned To => henry
2022-09-26 15:34 henry Status new => closed
2022-09-26 15:34 henry Resolution open => no change required
2022-09-26 15:34 henry Note Added: 0012757
2022-10-11 11:19 wyldckat Relationship added related to 0003898