CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Strange Segmentation Fault (https://www.cfd-online.com/Forums/openfoam-solving/150811-strange-segmentation-fault.html)

jd210 March 30, 2015 07:04

Strange Segmentation Fault
 
Hi All,

I'm using compressibleMultiphaseInterFoam for some work I'm doing, I have 2 computers, 1 is a fairly standard quad core, 8GB of RAM etc the other is a Twin CPU workstation. The case I'm running works fine on the normal machine but I get a segmentation fault on the workstation. Both have identical software stacks, Ubuntu 12.04, OpenFOAM 2.3.0 installed from repository.

Error is as follows:

#0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigSegv::sigHandler(int) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::fvPatchField<Foam::Vector<double> >::rmap(Foam::fvPatchField<Foam::Vector<double> > const&, Foam::List<int> const&) in "/opt/openfoam230/platforms/linux64GccDPOpt/bin/compressibleMultiphaseInterFoam"
#4 Foam::fvPatchField<double>::patchInternalField(Foa m::Field<double>&) const in "/opt/openfoam230/platforms/linux64GccDPOpt/bin/compressibleMultiphaseInterFoam"
#5 Foam::mixedFvPatchField<double>::snGrad() const in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libfluidThermophysicalModels.so"
#6 Foam::fv::gaussGrad<double>::correctBoundaryCondit ions(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>&) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#7 Foam::fv::gaussGrad<double>::calcGrad(Foam::Geomet ricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::word const&) const in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#8 Foam::fv::gradScheme<double>::grad(Foam::Geometric Field<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::word const&) const in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libmultiphaseMixtureThermo.so"
#9 Foam::tmp<Foam::GeometricField<Foam::outerProduct< Foam::Vector<double>, double>::type, Foam::fvPatchField, Foam::volMesh> > Foam::fvc::grad<double>(Foam::GeometricField<doubl e, Foam::fvPatchField, Foam::volMesh> const&, Foam::word const&) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libmultiphaseMixtureThermo.so"
#10 Foam::tmp<Foam::GeometricField<Foam::outerProduct< Foam::Vector<double>, double>::type, Foam::fvPatchField, Foam::volMesh> > Foam::fvc::grad<double>(Foam::GeometricField<doubl e, Foam::fvPatchField, Foam::volMesh> const&) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libmultiphaseMixtureThermo.so"
#11 Foam::LimitedScheme<double, Foam::vanLeerLimiter<Foam::NVDTVD>, Foam::limitFuncs::magSqr>::calcLimiter(Foam::Geome tricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>&) const in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#12 Foam::LimitedScheme<double, Foam::vanLeerLimiter<Foam::NVDTVD>, Foam::limitFuncs::magSqr>::limiter(Foam::Geometric Field<double, Foam::fvPatchField, Foam::volMesh> const&) const in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#13 Foam::limitedSurfaceInterpolationScheme<double>::w eights(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) const in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libmultiphaseMixtureThermo.so"
#14 Foam::surfaceInterpolationScheme<double>::interpol ate(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) const in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libmultiphaseMixtureThermo.so"
#15 Foam::fv::gaussConvectionScheme<double>::interpola te(Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) const in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#16 Foam::fv::gaussConvectionScheme<double>::flux(Foam ::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) const in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#17 Foam::tmp<Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> > Foam::fvc::flux<double>(Foam::GeometricField<doubl e, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::word const&) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libmultiphaseMixtureThermo.so"
#18 Foam::multiphaseMixtureThermo::solveAlphas(double) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libmultiphaseMixtureThermo.so"
#19 Foam::multiphaseMixtureThermo::solve() in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libmultiphaseMixtureThermo.so"
#20
in "/opt/openfoam230/platforms/linux64GccDPOpt/bin/compressibleMultiphaseInterFoam"
#21 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#22
in "/opt/openfoam230/platforms/linux64GccDPOpt/bin/compressibleMultiphaseInterFoam"
Segmentation fault (core dumped)

I don't understand how it's happening on one computer and not the other when all software is meant to be the same.

Any help would be greatly appreciated.


All times are GMT -4. The time now is 02:15.