|
[Sponsors] |
March 28, 2022, 22:40 |
REEF3D(22.03) Segmentation fault
|
#1 |
New Member
taggyum
Join Date: Mar 2017
Posts: 13
Rep Power: 10 |
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? |
|
March 29, 2022, 04:24 |
|
#2 |
Senior Member
Arun Kamath
Join Date: Nov 2014
Location: Trondheim, Norway
Posts: 265
Rep Power: 13 |
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 |
|
March 29, 2022, 05:19 |
|
#3 |
Super Moderator
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 403
Rep Power: 19 |
I can also confirm Arun's findings. Most likely cause of problem: no "make clean" before building.
|
|
March 29, 2022, 23:52 |
|
#4 |
New Member
taggyum
Join Date: Mar 2017
Posts: 13
Rep Power: 10 |
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! |
|
March 30, 2022, 07:03 |
|
#5 |
Super Moderator
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 403
Rep Power: 19 |
Please try once more to delete all old .obj files and rebuild. Same for DIVEMesh.
|
|
March 30, 2022, 15:09 |
|
#6 |
Super Moderator
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 403
Rep Power: 19 |
Does it work? If not: what OS are you using? How do you run REEF3D?
|
|
March 31, 2022, 02:53 |
|
#7 | |
New Member
taggyum
Join Date: Mar 2017
Posts: 13
Rep Power: 10 |
Quote:
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. |
||
March 31, 2022, 02:54 |
|
#8 | |
New Member
taggyum
Join Date: Mar 2017
Posts: 13
Rep Power: 10 |
Quote:
== 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! |
||
March 31, 2022, 05:59 |
|
#9 |
Senior Member
Arun Kamath
Join Date: Nov 2014
Location: Trondheim, Norway
Posts: 265
Rep Power: 13 |
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 I see from recent experience that the maximum supported processors if the half of this value. Could you change Code:
M 10 Code:
nproc Also, while you are at it, use Code:
ll
__________________
Arun X years with REEF3D |
|
April 1, 2022, 07:23 |
|
#10 | |
New Member
taggyum
Join Date: Mar 2017
Posts: 13
Rep Power: 10 |
Quote:
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. |
||
April 5, 2022, 04:20 |
|
#11 |
Senior Member
Arun Kamath
Join Date: Nov 2014
Location: Trondheim, Norway
Posts: 265
Rep Power: 13 |
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 |
|
April 7, 2022, 03:06 |
|
#12 | |
New Member
taggyum
Join Date: Mar 2017
Posts: 13
Rep Power: 10 |
Quote:
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. |
||
April 10, 2022, 05:52 |
|
#13 |
Super Moderator
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 403
Rep Power: 19 |
Hi taggyum,
can you try the 22.04 release, maybe working now? |
|
April 10, 2022, 21:44 |
|
#14 |
New Member
taggyum
Join Date: Mar 2017
Posts: 13
Rep Power: 10 |
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. |
|
August 16, 2022, 04:55 |
|
#15 |
New Member
Keshav Pathak
Join Date: Jul 2022
Posts: 27
Rep Power: 4 |
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 |
|
August 16, 2022, 05:07 |
|
#16 |
New Member
taggyum
Join Date: Mar 2017
Posts: 13
Rep Power: 10 |
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 |
|
August 16, 2022, 12:59 |
|
#17 |
New Member
Keshav Pathak
Join Date: Jul 2022
Posts: 27
Rep Power: 4 |
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 |
|
August 16, 2022, 20:56 |
|
#18 |
New Member
taggyum
Join Date: Mar 2017
Posts: 13
Rep Power: 10 |
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. |
|
|
|
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 |