CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   segmentation fault (https://www.cfd-online.com/Forums/openfoam/92215-segmentation-fault.html)

huxiaoxia September 6, 2011 13:14

segmentation fault
 
Hello,

I run cases for liquid film recently using interDyMFoam. There's no problem when I run the cases, but when I try to reconstruct fields, it shows the following error:
#0 Foam::error::printStack(Foam::Ostream&) in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::sigSegv::sigSegvHandler(int) in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 __restore_rt at sigaction.c:0
#3 Foam::objectRegistry::checkOut(Foam::regIOobject&) const in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOpenFOAM.so"
#4 Foam::regIOobject::~regIOobject() in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOpenFOAM.so"
#5 Foam::IOList<int>::~IOList() in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/reconstructPar"
#6 Foam::processorMeshes::read() in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/reconstructPar"
#7 Foam::processorMeshes::readUpdate() in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/reconstructPar"
#8 main in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/reconstructPar"
#9 __libc_start_main in "/lib64/libc.so.6"
#10 Foam::regIOobject::writeObject(Foam::IOstream::str eamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType) const in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/reconstructPar"
Segmentation fault

Can anyone help me?

Thanks.

Xiaoxia

gschaider September 6, 2011 14:04

Quote:

Originally Posted by huxiaoxia (Post 323144)
Hello,

I run cases for liquid film recently using interDyMFoam. There's no problem when I run the cases, but when I try to reconstruct fields, it shows the following error:
#0 Foam::error::printStack(Foam::Ostream&) in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::sigSegv::sigSegvHandler(int) in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 __restore_rt at sigaction.c:0
#3 Foam::objectRegistry::checkOut(Foam::regIOobject&) const in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOpenFOAM.so"
#4 Foam::regIOobject::~regIOobject() in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOpenFOAM.so"
#5 Foam::IOList<int>::~IOList() in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/reconstructPar"
#6 Foam::processorMeshes::read() in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/reconstructPar"
#7 Foam::processorMeshes::readUpdate() in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/reconstructPar"
#8 main in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/reconstructPar"
#9 __libc_start_main in "/lib64/libc.so.6"
#10 Foam::regIOobject::writeObject(Foam::IOstream::str eamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType) const in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/reconstructPar"
Segmentation fault

Can anyone help me?

Thanks.

Xiaoxia

Have you reconstructed the meshes with reconstructParMesh? Last time I looked this was necessary

huxiaoxia September 6, 2011 14:05

segmentation fault
 
yes, I did.

gschaider September 6, 2011 14:20

Quote:

Originally Posted by huxiaoxia (Post 323156)
yes, I did.

That kind of information would have been nice in the first place as it is a common pitfall.

Next question: are you reconstructing all time-steps at once (that is another thing that doesn't work as far as I remember). Can't tell from whatyou posted if the problem occured during the reconstruction of the first time-step or later

If its not that I can only tell you what I tell all people that have a segfault: Compile a Debug-version of OF. Then the dump will also show line numbers and things get interesting

huxiaoxia September 10, 2011 12:02

How can I compile a debug-version of OF? By the way, I am using the version 1.7.1? Is it possible to have the bug for this version?

gschaider September 10, 2011 13:17

Quote:

Originally Posted by huxiaoxia (Post 323646)
How can I compile a debug-version of OF? By the way, I am using the version 1.7.1? Is it possible to have the bug for this version?

See http://openfoamwiki.net/index.php/Ma...at_is_wrong.3F


All times are GMT -4. The time now is 19:49.