CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Segmentation fault when running dieselFoam or dieselEngineFoam in parallel (http://www.cfd-online.com/Forums/openfoam-bugs/64136-segmentation-fault-when-running-dieselfoam-dieselenginefoam-parallel.html)

francesco April 30, 2009 03:19

Segmentation fault when running dieselFoam or dieselEngineFoam in parallel
 
Hi everyone,

It seems that there is some kind of a bug when running dieselEngineFoam in parallel. I've just tested it with the 1.5-dev version and it appears that this application gives a segmentation fault as follows:

Code:

[node023:13101] *** Process received signal ***
[node023:13101] Signal: Segmentation fault (11)
[node023:13101] Signal code:  (-6)
[node023:13101] Failing at address: 0x7440000332d
[node023:13101] [ 0] /lib64/libc.so.6 [0x3916e30280]
[node023:13101] [ 1] /lib64/libc.so.6(gsignal+0x35) [0x3916e30215]
[node023:13101] [ 2] /lib64/libc.so.6 [0x3916e30280]
[node023:13101] [ 3] /lib64/libc.so.6 [0x3916e71f65]
[node023:13101] [ 4] /lib64/libc.so.6(__libc_malloc+0x7a) [0x3916e7402a]
[node023:13101] [ 5] /home/term/bberger/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/lib64/libstdc++.so.6(_Znwm+0x1d) [0x2b0dc7aa5a7d]
[node023:13101] [ 6] /home/term/bberger/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/lib64/libstdc++.so.6(_ZNSs4_Rep9_S_createEmmRKSaIcE+0x21) [0x2b0dc7a83341]
[node023:13101] [ 7] /home/term/bberger/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/lib64/libstdc++.so.6(_ZNSs4_Rep8_M_cloneERKSaIcEm+0x2b) [0x2b0dc7a83beb]
[node023:13101] [ 8] /home/term/bberger/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/lib64/libstdc++.so.6(_ZNSs7reserveEm+0x41) [0x2b0dc7a84871]
[node023:13101] [ 9] /home/term/bberger/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/lib64/libstdc++.so.6(_ZNSs6appendEPKcm+0x93) [0x2b0dc7a84ad3]
[node023:13101] [10] /home/term/bberger/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libdieselSpray.so(_ZNK4Foam16DimensionedFieldIdNS_7volMeshEE7averageEv+0x52) [0x2b0dc5ca72b2]
[node023:13101] [11] /home/term/bberger/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libdieselSpray.so(_ZN4Foam5spray24calculateAmbientPressureEv+0x17) [0x2b0dc5cb1ce7]
[node023:13101] [12] /home/term/bberger/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libdieselSpray.so(_ZN4Foam5spray6evolveEv+0x2e2) [0x2b0dc5ca9342]
[node023:13101] [13] dieselEngineFoam [0x419fea]
[node023:13101] [14] /lib64/libc.so.6(__libc_start_main+0xf4) [0x3916e1d974]
[node023:13101] [15] dieselEngineFoam(_ZNK4Foam11regIOobject11writeObjectENS_8IOstream12streamFormatENS1_13versionNumberENS1_15compressionTypeE+0xf1) [0x417869]
[node023:13101] *** End of error message ***
mpirun noticed that job rank 0 with PID 13101 on node node023 exited on signal 11 (Segmentation fault).
[node023:13237] *** Process received signal ***
[node023:13237] Signal: Segmentation fault (11)
[node023:13237] Signal code:  (-6)
[node023:13237] Failing at address: 0x744000033b5
[node023:13237] [ 0] /lib64/libc.so.6 [0x3916e30280]
[node023:13237] [ 1] /lib64/libc.so.6(gsignal+0x35) [0x3916e30215]
[node023:13237] [ 2] /lib64/libc.so.6 [0x3916e30280]
[node023:13237] [ 3] /lib64/libc.so.6 [0x3916e71f65]
[node023:13237] [ 4] /lib64/libc.so.6(__libc_malloc+0x7a) [0x3916e7402a]
[node023:13237] [ 5] /home/term/bberger/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/lib64/libstdc++.so.6(_Znwm+0x1d) [0x2b11c8e1da7d]
[node023:13237] [ 6] /home/term/bberger/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/lib64/libstdc++.so.6(_ZNSs4_Rep9_S_createEmmRKSaIcE+0x21) [0x2b11c8dfb341]
[node023:13237] [ 7] /home/term/bberger/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/lib64/libstdc++.so.6(_ZNSs4_Rep8_M_cloneERKSaIcEm+0x2b) [0x2b11c8dfbbeb]
[node023:13237] [ 8] /home/term/bberger/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/lib64/libstdc++.so.6(_ZNSs7reserveEm+0x41) [0x2b11c8dfc871]
[node023:13237] [ 9] /home/term/bberger/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/lib64/libstdc++.so.6(_ZNSs6appendEPKcm+0x93) [0x2b11c8dfcad3]
[node023:13237] [10] /home/term/bberger/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libdieselSpray.so(_ZNK4Foam16DimensionedFieldIdNS_7volMeshEE7averageEv+0x52) [0x2b11c701f2b2]
[node023:13237] [11] /home/term/bberger/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libdieselSpray.so(_ZN4Foam5spray24calculateAmbientPressureEv+0x17) [0x2b11c7029ce7]
[node023:13237] [12] /home/term/bberger/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libdieselSpray.so(_ZN4Foam5spray6evolveEv+0x2e2) [0x2b11c7021342]
[node023:13237] [13] dieselEngineFoam [0x419fea]
[node023:13237] [14] /lib64/libc.so.6(__libc_start_main+0xf4) [0x3916e1d974]
[node023:13237] [15] dieselEngineFoam(_ZNK4Foam11regIOobject11writeObjectENS_8IOstream12streamFormatENS1_13versionNumberENS1_15compressionTypeE+0xf1) [0x417869]
[node023:13237] *** End of error message ***


I've observed the same problem with dieselFoam on the aachenBomb tutorial case.

These two applications work on serial. Other applications (icoFoam and engineFoam) work fine on the same cluster.

If someone can help me, it would be great.

Francesco.

francesco April 30, 2009 04:34

Here is an input:

I've removed all occurence of the spray inside the application and now it does not give me a segmentation fault anymore.

Is it possible that the dieselSpray library could be a problem here?

Francesco.

chegdan October 25, 2010 11:38

I have similar problems with another solver
 
Quote:

Originally Posted by francesco (Post 214741)
Here is an input:

I've removed all occurence of the spray inside the application and now it does not give me a segmentation fault anymore.

Is it possible that the dieselSpray library could be a problem here?

Francesco.


It seems that your problem parallels (pun intended) a similar problems with another solver (http://www.cfd-online.com/Forums/ope...ngianfoam.html) post 13 that I had. Did this error get resolved in your case? Without changing to another version of OF.

Dan

mehdi-combustion June 10, 2011 09:30

check your constant/sprayProperties and change
 
check your constant/sprayProperties and change

interpolationSchemes
{
U cellPointFace;
rho cell;
p cell;
T cell;
}


to

interpolationSchemes
{
U cell;
rho cell;
p cell;
T cell;
}

Hope it works

mehdi


All times are GMT -4. The time now is 01:52.