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

[swak4Foam] segmentation faults when using the debug switch "ExpressionResult"

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2016, 12:12
Default [swak4Foam] segmentation faults when using the debug switch "ExpressionResult"
  #1
Member
 
Timm Severin
Join Date: Mar 2014
Location: Munich
Posts: 63
Rep Power: 12
Astrodan is on a distinguished road
Hello there,

I just tried to use the expressionToFace function of the swakTopoSources Library. Since I made (several) mistakes it didn't work, so I checked for DebugFlags and found ExpressionResult.

However, everytime I combine this debug flag and (at least) libgroovyBC.so in my controlDict, every single OpenFOAM tool ends with a segmentation fault, although most of them perform their job normally.

I by now figured I can solve the problem by using the debug flag to correct my expression, and then running the simulation without the flag, but this would not be possible when the expression is actively used in the simulation, since the simulation itself does not abort when the debug flag is active.

The segmentation fault can easily be reproduced when adding the lines
Code:
DebugSwitches
{
     ExpressionResult    1;  
}

libs
(
     "libgroovyBC.so"
);
to the controlDict of e.g. the cavity case (no further changes necessary, just add and run blockMesh). Although here apparently the solver works.. maybe it's a problem in my case, I attached my solver log.

Has anyone else come over this problem?
And yes, I'm aware that this is kind of a bug report, but the swak4Foam report site demands a registration, and I'm kind of annoyed of having to register at every bloody side.
Attached Files
File Type: zip log.interFoam.zip (4.1 KB, 1 views)
Astrodan is offline   Reply With Quote

Old   February 21, 2016, 17:29
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: If I remember correctly, debug switches in swak4Foam are a bit different.
Go into the folder "swak4Foam/Examples" and run the following command:
Code:
grep -ir "debug" *
this will give several examples on how to use the debug system that swak4Foam uses.

In the folder "swak4Foam/Documentation" you will also find more details about the debug switches available in swak4Foam.
__________________
wyldckat 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
create the file *.foam phongstar OpenFOAM 12 October 14, 2018 19:06
[OpenFOAM] new installation gives only segmentation faults m4baker ParaView 3 June 15, 2015 17:17
Shell script to handle Segmentation faults arising from execFlowFunctionObjects pruthvi1991 OpenFOAM Post-Processing 0 February 22, 2015 15:20
[OpenFOAM] could not open file .vtk in paraview ali_atrian ParaView 8 August 27, 2014 11:31
Debug switch pierre OpenFOAM Running, Solving & CFD 5 July 5, 2007 20:38


All times are GMT -4. The time now is 14:42.