CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > REEF3D

REEF3D(22.03) Segmentation fault

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2022, 22:40
Default REEF3D(22.03) Segmentation fault
  #1
New Member
 
taggyum
Join Date: Mar 2017
Posts: 13
Rep Power: 10
taggyum is on a distinguished road
Thank you for releasing a new version of REEF3D(22.03).

When I run the tutorial case "9_13 Non-Breaking Wave Forces" without any modification using REEF3D(22.03), I get a ‘Segmentation fault’ error as shown in the screenshot below.
Of course, REEF3D and divemesh versions were applied as 22.03.

However, when REEF3D and divemesh version is applied to 21.11, it works well.
A screenshot of a successful operation is shown below.

could you please check this for me?
Attached Images
File Type: jpg 2203_ERROR.JPG (134.9 KB, 60 views)
File Type: jpg 2111.JPG (78.1 KB, 45 views)
Attached Files
File Type: txt control.txt (128 Bytes, 6 views)
File Type: txt ctrl.txt (325 Bytes, 5 views)
taggyum is offline   Reply With Quote

Old   March 29, 2022, 04:24
Default
  #2
Senior Member
 
Arun Kamath
Join Date: Nov 2014
Location: Trondheim, Norway
Posts: 265
Rep Power: 13
kamath is on a distinguished road
Hi taggyum,
I am unable to reproduce your error. This is a set of our benchmarks and therefore we ensure it is working on a regular basis.

The problem could lie with the update locally.
After you updated to the latest sourcecode, with git pull,
did you run:
make clean

before running
make -j N?

Remnants of objects from the previous compilation (in the build folder) can interfere with the new compilation.
Therefore, we highly recommend a "make clean" before building the new executables.

Also make sure that you in fact copied the latest built executables of both REEF3D and DiveMESH.

Let us know if this works, otherwise we will have to look at other avenues.
__________________
Arun
X years with REEF3D

Last edited by kamath; March 29, 2022 at 04:25. Reason: added information on exe copy
kamath is offline   Reply With Quote

Old   March 29, 2022, 05:19
Default
  #3
Super Moderator
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 403
Rep Power: 19
valgrinda is on a distinguished road
I can also confirm Arun's findings. Most likely cause of problem: no "make clean" before building.
__________________
Hans Bihs
Team REEF3D
www.reef3d.com
valgrinda is offline   Reply With Quote

Old   March 29, 2022, 23:52
Default
  #4
New Member
 
taggyum
Join Date: Mar 2017
Posts: 13
Rep Power: 10
taggyum is on a distinguished road
Dear Dr Hans & Arun,
Thank you very much for your help.

I applied the method you suggested, but I get the same problem.
But if I change the grid option from 3D to 2D as shown below, it works well.

B 1 0.025
B 10 0.0 18.0 0.0 0.025 0.0 1.0

I will check my environment and steps again.

Again thank you for your time!
taggyum is offline   Reply With Quote

Old   March 30, 2022, 07:03
Default
  #5
Super Moderator
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 403
Rep Power: 19
valgrinda is on a distinguished road
Please try once more to delete all old .obj files and rebuild. Same for DIVEMesh.
__________________
Hans Bihs
Team REEF3D
www.reef3d.com
valgrinda is offline   Reply With Quote

Old   March 30, 2022, 15:09
Default
  #6
Super Moderator
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 403
Rep Power: 19
valgrinda is on a distinguished road
Does it work? If not: what OS are you using? How do you run REEF3D?
__________________
Hans Bihs
Team REEF3D
www.reef3d.com
valgrinda is offline   Reply With Quote

Old   March 31, 2022, 02:53
Default
  #7
New Member
 
taggyum
Join Date: Mar 2017
Posts: 13
Rep Power: 10
taggyum is on a distinguished road
Quote:
Originally Posted by valgrinda View Post
Does it work? If not: what OS are you using? How do you run REEF3D?
Hi Hans, I really appreciate your help.

I cleaned and rebuilt everything according to your comment.
But unfortunately the error has not been resolved yet.

Here's the information.

== OS System information ==
Ubuntu app for Windows 10
Ubuntu : 20.04.4 LTS (GNU/Linux 4.4.0-19041-Microsoft x86_64)
CPU : AMD Ryzen Threadripper 3990X 64-Core Processor
RAM : 128GB

== Program information ==
gcc : 9.4.0
g++ : 9.4.0
mpicxx : 9.4.0
mpirun (Open MPI) 4.0.3

== Running the Code ==
./DiveMESH
mpirun –n [number of processes] REEF3D

V21.11 and V22.03 of REEF3D & DiveMESH were recompiled, and tests were performed on all tutorials of CFD.
The results of the additional tutorial cases are shown in the screenshot below.
Attached Images
File Type: jpg WORK1.JPG (166.5 KB, 26 views)
taggyum is offline   Reply With Quote

Old   March 31, 2022, 02:54
Default
  #8
New Member
 
taggyum
Join Date: Mar 2017
Posts: 13
Rep Power: 10
taggyum is on a distinguished road
Quote:
Originally Posted by valgrinda View Post
Does it work? If not: what OS are you using? How do you run REEF3D?
However, it worked successfully on other computers with Linux(Ubuntu) OS, not on Windows App

== OS System information ==
Ubuntu 14.04 LTS

== Program information ==
gcc : 4.9.4
g++ : 4.8.5
mpicxx : 4.85
mpirun (Open MPI) 1.6.5

Again thank you for your time!
taggyum is offline   Reply With Quote

Old   March 31, 2022, 05:59
Default
  #9
Senior Member
 
Arun Kamath
Join Date: Nov 2014
Location: Trondheim, Norway
Posts: 265
Rep Power: 13
kamath is on a distinguished road
From the information you provide, looks like the problem is specifically in the Ubuntu app on windows. This will be hard to debug. But here are a few steps that might be useful.

use the command
Code:
nproc
That should give you the number of processors.
I see from recent experience that the maximum supported processors if the half of this value.
Could you change
Code:
M 10
to half the value that
Code:
nproc
gives you, in both control.txt and ctrl. txt and check.

Also, while you are at it, use
Code:
ll
to check if all the permissions are in place.
__________________
Arun
X years with REEF3D
kamath is offline   Reply With Quote

Old   April 1, 2022, 07:23
Default
  #10
New Member
 
taggyum
Join Date: Mar 2017
Posts: 13
Rep Power: 10
taggyum is on a distinguished road
Quote:
Originally Posted by kamath View Post
From the information you provide, looks like the problem is specifically in the Ubuntu app on windows. This will be hard to debug. But here are a few steps that might be useful.

use the command
Code:
nproc
That should give you the number of processors.
I see from recent experience that the maximum supported processors if the half of this value.
Could you change
Code:
M 10
to half the value that
Code:
nproc
gives you, in both control.txt and ctrl. txt and check.

Also, while you are at it, use
Code:
ll
to check if all the permissions are in place.


Sorry for the late reply because I was looking into the problem.

As Arun suggested, I checked the permissions problem by referring to the forum post. Permissions were set normally. In addition, the M10 has been tested, but the problem has not been solved.

But it worked successfully by modifying the value of Optimization Flags to -O1 as shown below.

== REEF3D Makefile ==
CXXFLAGS := -w –std=c++11 –O1 -> work
CXXFLAGS := -w –std=c++11 –O2 -> not work
CXXFLAGS := -w –std=c++11 –O3 -> not work

As you said, I think it's a local problem related to the compiler optimization of Windows Ubuntu app.

Thanks for your help and the work of the REEF3D team.
taggyum is offline   Reply With Quote

Old   April 5, 2022, 04:20
Default
  #11
Senior Member
 
Arun Kamath
Join Date: Nov 2014
Location: Trondheim, Norway
Posts: 265
Rep Power: 13
kamath is on a distinguished road
Hi,
I can confirm that I can reproduce this on the Ubuntu for windows environment.
But unable to reproduce it elsewhere.
Have not found a solution yet, but we will try to fix this.
Do let us know if this arises for any other cases, so that we could identify a pattern.

Thanks 😊
__________________
Arun
X years with REEF3D
kamath is offline   Reply With Quote

Old   April 7, 2022, 03:06
Default
  #12
New Member
 
taggyum
Join Date: Mar 2017
Posts: 13
Rep Power: 10
taggyum is on a distinguished road
Quote:
Originally Posted by kamath View Post
Hi,
I can confirm that I can reproduce this on the Ubuntu for windows environment.
But unable to reproduce it elsewhere.
Have not found a solution yet, but we will try to fix this.
Do let us know if this arises for any other cases, so that we could identify a pattern.

Thanks 😊

Hi Arun,
I will let you know if there is a problem in another situation.
Thank you for the effort of the REEF3D team.

best regards.
taggyum is offline   Reply With Quote

Old   April 10, 2022, 05:52
Default
  #13
Super Moderator
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 403
Rep Power: 19
valgrinda is on a distinguished road
Hi taggyum,

can you try the 22.04 release, maybe working now?
__________________
Hans Bihs
Team REEF3D
www.reef3d.com
valgrinda is offline   Reply With Quote

Old   April 10, 2022, 21:44
Default
  #14
New Member
 
taggyum
Join Date: Mar 2017
Posts: 13
Rep Power: 10
taggyum is on a distinguished road
Hi Hans,

I tried with 22.04 release in Windows Ubuntu app and Windows VM Ubuntu environment, but it doesn't work.

However, as I investigated last time, it worked successfully under Optimization Flags –O1.

Thank you again for your work.
taggyum is offline   Reply With Quote

Old   August 16, 2022, 04:55
Default
  #15
New Member
 
Keshav Pathak
Join Date: Jul 2022
Posts: 27
Rep Power: 4
keshav_20 is on a distinguished road
Hello taggyum and REEF3D team
I am also facing the same error while running DiveMESH.
@ taggyum, I have made changes in make file as you told in above reply post. However, I am still facing the same issue. I am using ubuntu app in window.
Is there any solution/alternative to this error?

Thanks and regards
Keshav
keshav_20 is offline   Reply With Quote

Old   August 16, 2022, 05:07
Default
  #16
New Member
 
taggyum
Join Date: Mar 2017
Posts: 13
Rep Power: 10
taggyum is on a distinguished road
hi keshav_20,
The error in this post has been fixed in REEF3D 22.04.1 version.
So there is no need to modify the makefile.
And the error in this post was REEF3D, not DiveMESH.


REEF3D(22.03 & 22.04) Segmentation fault - problem solving
taggyum is offline   Reply With Quote

Old   August 16, 2022, 12:59
Default
  #17
New Member
 
Keshav Pathak
Join Date: Jul 2022
Posts: 27
Rep Power: 4
keshav_20 is on a distinguished road
Thanks for your reply
However, I am facing this issue in DiveMesh. Whenever, I increase the mess size in z-direction beyond 50, it gives "segmentation fault" error. Here, what can be done to resolve the error. I am attaching the "ctrl.txt" and "control.txt" files here with.

Thanks
KP
Attached Files
File Type: txt ctrl.txt (295 Bytes, 1 views)
File Type: txt control.txt (203 Bytes, 1 views)
keshav_20 is offline   Reply With Quote

Old   August 16, 2022, 20:56
Default
  #18
New Member
 
taggyum
Join Date: Mar 2017
Posts: 13
Rep Power: 10
taggyum is on a distinguished road
hi keshav_20,

If you apply the S32 option in the file you provided, it seems that "segmentation fault" error occurs in "for loop" in the geometry_cyinder_y.cpp file.
Another way is to apply the S1 option using "solid.stl".
The S1 option works fine.
Attached Files
File Type: txt solid.stl.txt (45.6 KB, 2 views)
taggyum 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
Segmentation fault when running dieselFoam or dieselEngineFoam in parallel francesco OpenFOAM Bugs 4 May 2, 2017 22:59
Segmentation fault in SU2 V5.0 ygd SU2 2 March 1, 2017 05:38
Segmentation fault when running in parallel Pj. OpenFOAM Running, Solving & CFD 3 April 8, 2015 09:12
Segmentation Fault w/ compiled OF 2.2.0 - motorBike example sudo OpenFOAM Running, Solving & CFD 3 April 2, 2013 18:27
segmentation fault when installing OF-2.1.1 on a cluster Rebecca513 OpenFOAM Installation 9 July 31, 2012 16:06


All times are GMT -4. The time now is 23:48.