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

segmentation fault

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 6, 2011, 13:14
Default segmentation fault
  #1
New Member
 
huxiaoxia
Join Date: Oct 2010
Posts: 18
Rep Power: 15
huxiaoxia is on a distinguished road
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:rintStack(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:bjectRegistry::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:rocessorMeshes::read() in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/reconstructPar"
#7 Foam:rocessorMeshes::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
huxiaoxia is offline   Reply With Quote

Old   September 6, 2011, 14:04
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by huxiaoxia View Post
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:rintStack(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:bjectRegistry::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:rocessorMeshes::read() in "/home/huxiaoxi/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/reconstructPar"
#7 Foam:rocessorMeshes::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
gschaider is offline   Reply With Quote

Old   September 6, 2011, 14:05
Default segmentation fault
  #3
New Member
 
huxiaoxia
Join Date: Oct 2010
Posts: 18
Rep Power: 15
huxiaoxia is on a distinguished road
yes, I did.
huxiaoxia is offline   Reply With Quote

Old   September 6, 2011, 14:20
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by huxiaoxia View Post
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
gschaider is offline   Reply With Quote

Old   September 10, 2011, 12:02
Default
  #5
New Member
 
huxiaoxia
Join Date: Oct 2010
Posts: 18
Rep Power: 15
huxiaoxia is on a distinguished road
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?
huxiaoxia is offline   Reply With Quote

Old   September 10, 2011, 13:17
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by huxiaoxia View Post
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
gschaider is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Segmentation fault when running dieselFoam or dieselEngineFoam in parallel francesco OpenFOAM Bugs 4 May 2, 2017 21:59
Debugging a segmentation fault? hansel OpenFOAM Bugs 3 July 31, 2010 13:13
ParaView segmentation fault only for multiphase gwierink OpenFOAM 9 March 25, 2010 07:23
segmentation fault usker Siemens 5 March 5, 2007 23:14
KIVA and Segmentation Fault Felix Main CFD Forum 2 January 18, 2006 01:24


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