CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Segmentation fault (core dumped)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 26, 2017, 08:53
Default Segmentation fault (core dumped)
  #1
New Member
 
Patrick
Join Date: Apr 2016
Posts: 10
Rep Power: 10
linox is on a distinguished road
I'm using OpenFoam-3.0.1 for simulations and it was working fine until I upgraded from Ubuntu 14 to 16.04 LTS. I got the following error when trying to run a simulation: error while loading shared libraries: libmpi.so.1: cannot open shared object file: No such file or directory


I have tried the following suggested steps to get OpenFoam working again:-

#Go into OpenFOAM's main source folder
cd $WM_PROJECT_DIR

#Change how the flex version is checked
find src applications -name "*.L" -type f | xargs sed -i -e 's=\(YY\_FLEX\_SUBMINOR\_VERSION\)=YY_FLEX_MINOR_V ERSION < 6 \&\& \1='
file:///home/hp/OpenFOAM/OpenFOAM-3.0.1/logs.tar.gz


This seems to have solve the problem but gave rise to a new problem:

Segmentation fault (core dumped)


I have tried several suggested steps to resolve this new problem to no avail. These include:


sudo apt-get clean
sudo apt-get check
sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade

I also run Allwmake (Attached) to search for clues but got more confused

The first error line reads

/home/hp/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/mesh/manipulation/createBaffles
In file included from lnInclude/CGALTriangulation3Ddefs.H:41:0,
from DelaunayMeshTools/DelaunayMeshTools.H:45,
from DelaunayMeshTools/DelaunayMeshTools.C:26:
lnInclude/CGALTriangulation3DKernel.H:36:43: fatal error: CGAL/Delaunay_triangulation_3.h: No such file or directory
compilation terminated.
/home/hp/OpenFOAM/OpenFOAM-3.0.1/wmake/rules/General/transform:8: recipe for target '/home/hp/OpenFOAM/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/DelaunayMeshTools/DelaunayMeshTools.o' failed
make[2]: *** [/home/hp/OpenFOAM/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/DelaunayMeshTools/DelaunayMeshTools.o] Error 1

I would appreciate any help towards resolve this issue. I will remove and reinstall Openfoam as a last resort.


Thanks

Patrick
linox is offline   Reply With Quote

Old   September 28, 2017, 07:14
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi Patrick,

if you build FOAM with older libraries, it is clear that during the update of ubuntu, the old libraries are replaced by new ones (see flex etc.). However, your compilation is based on the old libraries so this will not work anyway. You have to recompile your code with the usage of the new libraries. Sometimes it happens that libraries are also renamed and you have to provide a symbolic link. However, I would clean everything and recompile it. In addition, switch to the latest FOAM version to have bug-fixes included. If you are working in two-phase flows I only can recommend it.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   September 29, 2017, 04:04
Default
  #3
New Member
 
Patrick
Join Date: Apr 2016
Posts: 10
Rep Power: 10
linox is on a distinguished road
Quote:
Originally Posted by Tobi View Post
Hi Patrick,

if you build FOAM with older libraries, it is clear that during the update of ubuntu, the old libraries are replaced by new ones (see flex etc.). However, your compilation is based on the old libraries so this will not work anyway. You have to recompile your code with the usage of the new libraries. Sometimes it happens that libraries are also renamed and you have to provide a symbolic link. However, I would clean everything and recompile it. In addition, switch to the latest FOAM version to have bug-fixes included. If you are working in two-phase flows I only can recommend it.
Hi Tobias

Thanks for responding. I will follow you recommendation to swtich to the latest OF version. I hope for a smooth switch.

Thanks
linox is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM] paraview parafoam segmentation fault (core dumped) RicardoLB ParaView 3 April 28, 2020 20:07
[Other] fe40 surfaceConvert Segmentation Fault (core dumped) bhakar.raju98 OpenFOAM Meshing & Mesh Conversion 2 June 16, 2019 11:04
Segmentation fault (core dumped) Sugajen OpenFOAM Running, Solving & CFD 1 August 2, 2017 12:06
createPatch Segmentation Fault (CORE DUMPED) sam.ho OpenFOAM Pre-Processing 2 April 21, 2014 02:01
Segmentation fault (core dumped) when changing pressure BC jptorol OpenFOAM Running, Solving & CFD 0 September 25, 2013 18:05


All times are GMT -4. The time now is 15:26.