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

How to interpret an error message in Openfoam.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 15, 2020, 05:51
Default How to interpret an error message in Openfoam.
  #1
New Member
 
Join Date: Dec 2020
Posts: 5
Rep Power: 5
GuillaumeB is on a distinguished road
Hi everyone,

I am new on OpenFoam, but I started using this open source software as it seems to provide an infinite amount of possibilities for future developpement of fluid mechanism.

I read and watched lots of tutorials and threads beforehands, but when I started using this software, I had an error. It may seems like a simple issue but so what can I do with my error ?

I searched on the internet where to find the error source, tried to solve the error itself ... But nothing was corresponding and I found myself in a ditch as I didn't know how to solve the problem by myself.

Then I had two choices, create a post for my actual problem, or create a post for all my future problems and for all the other beginners, and here it is.

I WANT TO KNOW HOW TO SOLVE MY ERRORS BY MYSELF.

I found lots of tutorials and documents about how to use Openfoam but none really usefull about how to solve an error. I told you already, I am new on this software and I don't really know much about the syntax and structure of the folders. I would like to know if someone know where I can find a guide that can help me understand my problems and how to solve them myself.

Here is an exemple of what I mean, illustrating an error I got back then using a software based of Openfoam:

Quote:
[1] #0 Foam::error:rintStack(Foam::Ostream&)[2] #0 Foam::error:rintStack(Foam::Ostream&) at ??:?
[1] #1 Foam::sigSegv::sigHandler(int) at ??:?
[2] #1 Foam::sigSegv::sigHandler(int) at ??:?
[1] #2 ? at ??:?
[2] #2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
[1] #3 Foam::adaptiveFvMesh::checkEightAnchorPoints(Foam: :PackedBoolList&, int&) const in "/lib/x86_64-linux-gnu/libc.so.6"
[2] #3 Foam::adaptiveFvMesh::checkEightAnchorPoints(Foam: :PackedBoolList&, int&) const at ??:?
[1] #4 Foam::adaptiveFvMesh::setProtectedCells() at ??:?
[2] #4 Foam::adaptiveFvMesh::setProtectedCells() at ??:?
[1] #5 Foam::adaptiveFvMesh::update() at ??:?
[2] #5 Foam::adaptiveFvMesh::update() at ??:?
[1] #6 at ??:?
[2] #6 ?? in "/home/blast/OpenFOAM/blast-7/platforms/linux64GccDPInt32Opt/bin/blastFoam"
[1] #7 __libc_start_main in "/home/blast/OpenFOAM/blast-7/platforms/linux64GccDPInt32Opt/bin/blastFoam"
[2] #7 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
[1] #8 in "/lib/x86_64-linux-gnu/libc.so.6"
[2] #8 ?? in "/home/blast/OpenFOAM/blast-7/platforms/linux64GccDPInt in "/home/blast/OpenFOAM/32Opt/bin/blastFoam"
blast-7/platforms/linux64Gc[DESKTOP-XXX:17956] *** Process received signal ***
[DESKTOP-XXX:17956] Signal: Segmentation fault (11)
[DESKTOP-XXX:17956] Signal code: (-6)
[DESKTOP-XXX:17956] Failing at address: 0x3e800004624
[DESKTOP-XXX:17956] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x3f040)[0x7f234efcf040]
[DESKTOP-XXX:17956] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f234efcefb7]
[DESKTOP-XXX:17956] [ 2] /lib/x86_64-linux-gnu/libc.so.6(+0x3f040)[0x7f234efcf040]
[DESKTOP-XXX:17956] [ 3] cDPInt32Opt/bin/blastFoam"
[DESKTOP-XXX:17957] *** Process received signal ***
[DESKTOP-XXX:17957] Signal: Segmentation fault (11)
[DESKTOP-XXX:17957] Signal code: (-6)
[DESKTOP-XXX:17957] Failing at address: 0x3e800004625
/home/blast/OpenFOAM/blast-7/platforms/linux64GccDPInt32Opt/lib/libblastDynamicFvMesh.so(_ZNK4Foam14adaptiveFvMesh 22checkEightAnchorPointsERNS_14PackedBoolListERi+0 x1c3)[0x7f2351763ef3]
[DESKTOP-XXX:17956] [ 4] /home/blast/OpenFOAM/blast-7/platforms/linux64GccDPInt32Opt/lib/libblastDynamicFvMesh.so(_ZN4Foam14adaptiveFvMesh1 7setProtectedCellsEv+0x5f1)[0x7f23517679d1]
[DESKTOP-XXX:17956] [ 5] /home/blast/OpenFOAM/blast-7/platforms/linux64GccDPInt32Opt/lib/libblastDynamicFvMesh.so(_ZN4Foam14adaptiveFvMesh6 updateEv+0xa78)[0x7f235176b188]
[DESKTOP-XXX:17956] [ 6] blastFoam(+0x110be)[0x7f2354a110be]
[DESKTOP-XXX:17957] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x3f040)[0x7fc9e2fcf040]
[DESKTOP-XXX:17957] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7fc9e2fcefb7]
[DESKTOP-XXX:17957] [ 2] /lib/x86_64-linux-gnu/libc.so.6(+0x3f040)[0x7fc9e2fcf040]
[DESKTOP-XXX:17957] [ 3] /home/blast/OpenFOAM/blast-7/platforms/linux64GccDPInt32Opt/lib/libblastDynamicFvMesh.so(_ZNK4Foam14adaptiveFvMesh 22checkEightAnchorPointsERNS_14PackedBoolListERi+0 x1c3)[0x7fc9e5763ef3]
[DESKTOP-XXX:17957] [DESKTOP-XXX:17956] [ 7] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7f234efb1bf7]
[DESKTOP-XXX:17956] [ 8] blastFoam(+0x120ca)[0x7f2354a120ca]
[DESKTOP-XXX:17956] *** End of error message ***
[ 4] /home/blast/OpenFOAM/blast-7/platforms/linux64GccDPInt32Opt/lib/libblastDynamicFvMesh.so(_ZN4Foam14adaptiveFvMesh1 7setProtectedCellsEv+0x5f1)[0x7fc9e57679d1]
[DESKTOP-XXX:17957] [ 5] /home/blast/OpenFOAM/blast-7/platforms/linux64GccDPInt32Opt/lib/libblastDynamicFvMesh.so(_ZN4Foam14adaptiveFvMesh6 updateEv+0xa78)[0x7fc9e576b188]
[DESKTOP-XXX:17957] [ 6] blastFoam(+0x110be)[0x7fc9e8a110be]
[DESKTOP-XXX:17957] [ 7] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7fc9e2fb1bf7]
[DESKTOP-XXX:17957] [ 8] blastFoam(+0x120ca)[0x7fc9e8a120ca]
[DESKTOP-XXX:17957] *** End of error message ***
So what can I do with this, and what does everything means (how to interpret) ? There is some numbers into brackets in the first lines, then some other numbers, desktop-based informations ...

I roughly saw "Foam::adaptiveFvMesh::checkEightAnchorPoints" , so I searched and found the location of the document in the Openfoam library and some leads, but nothing more.

I am not looking for a way th solve this problem but a way to solve all my future problems without going on this forum to post my problems. Does someone know where I can find some guidelines about how to interpret and solve my modeling problems ?

Thanks everyone for reading all my rambling.

Have a nice week.

Guillaume.
GuillaumeB is offline   Reply With Quote

Old   December 15, 2020, 09:36
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
Compilation with DEBUG flag on can provide you more elaborate and precise traceback messages for the fatal errors. The compilation you have by default is with the optimisation on, hence such cryptic messages occur when an error happens. Try to compile OpenFOAM with DEBUG mode, and rerun this case. If the error could be reproducible, you will get error messages tracking down to the line of the code causing the pain. Using a debugger, e.g. gdb, could also be very useful.

Particular to this error message, the main error signal is the "Segmentation fault" - it may indicate a scenario where the code computed something but wasn't instructed to know where to put the computed value (e.g. input/output). "[number]" shows the global processor-ID in a parallel simulation.

Hope these help a bit.
HPE is offline   Reply With Quote

Old   December 16, 2020, 07:37
Default
  #3
New Member
 
Join Date: Dec 2020
Posts: 5
Rep Power: 5
GuillaumeB is on a distinguished road
Thank you for these leads, I searched on the internet about the debugging on OpenFoam using serial debuggers such as gdb and the built-in DebugSwitch option.

I will try these solutions and try to improve in this area.

It helped me, thanks a lot.
GuillaumeB 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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 13:36
OpenFOAM Foundation Releases OpenFOAM v2.3.0 opencfd OpenFOAM Announcements from OpenFOAM Foundation 3 December 23, 2014 03:43
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 16:45.