View Issue Details

IDProjectCategoryView StatusLast Update
0002492OpenFOAMBugpublic2017-03-13 19:38
Reporternsf Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformlinuxOSfedoraOS Version24
Product Versiondev 
Fixed in Versiondev 
Summary0002492: laplacianFoam doesn't link to libfvOptions.so
DescriptionSupport for fvOptions in laplacianFoam was added in commit 6230ca2689d0c10b35ccbac5325d30818c2e940d but libfvOptions is not linked in Make/Options.

A workaround is to include:
libs ("libfvOptions.so");
to the controlDict.

The main issue is easily solved by adding libfvOptions to Make/options but I wonder if there isn't an additional bug. Should we expect a sigSegv when a runTimeSelection table is empty or missing? Maybe there is an easy fix to handle this situation gracefully.


Steps To ReproduceAdd any fvOptions to a case with laplacianFoam and run.

Error message is
Selecting finite volume options model type scalarSemiImplicitSource
#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::sigSegv::sigHandler(int) at ??:?
#2 ? in "/lib64/libc.so.6"
#3 Foam::fv::option::New(Foam::word const&, Foam::dictionary const&, Foam::fvMesh const&) at ??:?
#4 Foam::fv::optionList::reset(Foam::dictionary const&) at ??:?
#5 Foam::fv::optionList::optionList(Foam::fvMesh const&, Foam::dictionary const&) at ??:?
#6 Foam::fv::options::options(Foam::fvMesh const&) at ??:?
#7 Foam::fv::options::New(Foam::fvMesh const&) at ??:?
#8 ? at ??:?
#9 __libc_start_main in "/lib64/libc.so.6"
#10 ? at ??:?
Segmentation fault (core dumped)
TagsfvOptions, laplacianFoam, sigsegv

Activities

henry

2017-03-13 08:57

manager   ~0007918

Resolved by commit 25ac9a410e04fbc263739090caca10636d4e7c6d

Issue History

Date Modified Username Field Change
2017-03-10 10:38 nsf New Issue
2017-03-10 10:38 nsf Tag Attached: fvOptions
2017-03-10 10:38 nsf Tag Attached: laplacianFoam
2017-03-10 10:38 nsf Tag Attached: sigsegv
2017-03-13 08:57 henry Assigned To => henry
2017-03-13 08:57 henry Status new => resolved
2017-03-13 08:57 henry Resolution open => fixed
2017-03-13 08:57 henry Fixed in Version => dev
2017-03-13 08:57 henry Note Added: 0007918