CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   star4ToFoam Segfault on Mac OS X 10.6.5 / OF 1.7.x (http://www.cfd-online.com/Forums/openfoam-installation/83367-star4tofoam-segfault-mac-os-x-10-6-5-1-7-x.html)

sushant December 25, 2010 10:10

star4ToFoam Segfault on Mac OS X 10.6.5 / OF 1.7.x
 
Hi Foamers,

I have compiled OF 1.7.x on Mac OS X Snow Leopard 10.6.5 thanks to gschaider's patches. I can run all solvers and utilities fine, even in parallel. However I always get a segmentation fault while trying to import a Star-CD (cel/vrt/bnd) mesh, no matter which model I try. All the models I have tested can be imported just fine on any other computer running OF 1.7.x on linux.

I can also import fluent meshes without any issues.

The output of star4ToFoam is:

PHP Code:

/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.7.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  1.7.x
Exec   
star4ToFoam /some/model/file/name
Date   
Dec 25 2010
Time   
19:32:45
Host   
MacBook.local
PID    
4278
Case   : /some/case
nProcs 1
SigFpe 
Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
no constant/boundaryRegion information available
Number of points  
234707
Number of fluids  
222075
Number of baffles 
0
Ignored   solids  
0
Ignored   shells  
0
Unused    points  
215108
#0  Foam::backtrace(void**, unsigned int) in "/Users/me/OpenFOAM/OpenFOAM-1.7.x/lib/darwinIntel64DPOpt/libOpenFOAM.dylib"
#1  Foam::error::printStack(Foam::Ostream&) in "/Users/me/OpenFOAM/OpenFOAM-1.7.x/lib/darwinIntel64DPOpt/libOpenFOAM.dylib"
#2  Foam::sigSegv::sigSegvHandler(int) in "/Users/me/OpenFOAM/OpenFOAM-1.7.x/lib/darwinIntel64DPOpt/libOpenFOAM.dylib"
#3  _sigtramp in "/usr/lib/libSystem.B.dylib"
#4  _sigtramp in "/usr/lib/libSystem.B.dylib"
#5  Foam::meshReaders::STARCD::readGeometry(double) in "/Users/me/OpenFOAM/OpenFOAM-1.7.x/lib/darwinIntel64DPOpt/libconversion.dylib"
#6  Foam::meshReader::mesh(Foam::objectRegistry const&) in "/Users/me/OpenFOAM/OpenFOAM-1.7.x/lib/darwinIntel64DPOpt/libconversion.dylib"
#7  main in "/Users/me/OpenFOAM/OpenFOAM-1.7.x/applications/bin/darwinIntel64DPOpt/star4ToFoam"
#8  start in "/Users/me/OpenFOAM/OpenFOAM-1.7.x/applications/bin/darwinIntel64DPOpt/star4ToFoam"
Segmentation fault 

What could be wrong?

Thanks in advance,
Sushant

wyldckat December 25, 2010 20:38

Greetings Sushant,

I don't own a Mac, so I'm limited to making suggestions :rolleyes: - is there any chance you can try and build OpenFOAM 1.6-ext: Extend Project 1.6-ext Binary Release for Mac OS X
As far as I can see, they have a better support for Mac OS X for their -Extend variant of OpenFOAM, so if you can reproduce or not get the same problem with their variant, then it shouldn't be too difficult for them to develop or for someone to adapt the fix for both versions!

Best regards,
Bruno


All times are GMT -4. The time now is 00:59.