Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29236 Discussions

Segmentation fault when running mm5.exe

jose_velasco
Beginner
1,055 Views

Hi everybody,

first of all I beg you pardon for my english.

I'm trying to install MM5 in my Dual Xeon 2.13 GhzServer with 2GB RAM and SuSE Linux Enterprise Server 10. I have Intel Fortran Compiler (non-comercial edition) 9.1.036 and GCC C++ Compiler 4.1.0. I can compile mm5.exe without problems but when I execute mm5.exe I obtain this error:

forrtl: severe (174): SIGSEGV, segmentation fault occurred

ImagePCRoutineLineSource

mm5.exe00000000004174B4UnknownUnknownUnknown

mm5.exe00000000004033ADUnknownUnknownUnknown

mm5.exe00000000004030EAUnknownUnknownUnknown

libc.so.600002B465504F154UnknownUnknownUnknown

mm5.exe0000000000403029UnknownUnknownUnknown

In the configure.user file I have this settings:

...

RUNTIME_SYSTEM = "linux"

FC = ifort

FCFLAGS = -I$(LIBINCLUDE) -O2 -tp p6 -pc 32 -convert big_endian

CPP = /lib/cpp

CFLAGS = -O

CPPFLAGS = -I$(LIBINCLUDE)

LDOPTIONS = -O2 -tp p6 -pc 32 -convert big_endian

LOCAL_LIBRARIES =

MAKE = make -i -r

...

I think it must be some kind of problem with the flags or something similar because I've tried to compile mm5.exe with the Portland Fortran Compiler and everything worked ok.

Can anyone help me to solve the problem? Please think that this is my first work with linux so the slightest thing could happen with me. I hope you'll be patient with me and can help me.

Thanks a lot.

Jose Antonio Velasco

0 Kudos
9 Replies
Steven_L_Intel1
Employee
1,055 Views
This is most often caused by overflowing the stack. You're using an older compiler version, can you install the latest (9.1.041)? Try it with that, and if you still get the error, add -heap-arrays to the compile switches.
0 Kudos
jose_velasco
Beginner
1,055 Views
Ok Steve I'm going to try it and I tell you something. Thanks for your fast response.
0 Kudos
jose_velasco
Beginner
1,055 Views

Hi again I've done what Steve tells in his reply but I still get the same error.

Any ideas?

Thanks a lot.

Jose Antonio Velasco

0 Kudos
Steven_L_Intel1
Employee
1,055 Views
Try adding -traceback so you can see where the error occurs, or run it under the debugger. You may have a bug in the code. If you still need help, submit a report to Intel Premier Support.
0 Kudos
jose_velasco
Beginner
1,055 Views

Hi,

Ive recompiled with the flag traceback and the error message that Ive obtained now is:

*************** MULTI LEVEL RUN!!! ***************

*************** 2 DOMAIN TOTAL ***************

forrtl: severe (174): SIGSEGV, segmentation fault occurred

Image PC Routine Line Source

mm5.exe 0000000000416BCB param_ 620 param.F

mm5.exe 000000000040334C MAIN__ 165 mm5.F

mm5.exe 00000000004030AA Unknown Unknown Unknown

libc.so.6 00002B72E238E154 Unknown Unknown&nbs p; Unknown

mm5.exe 0000000000402FE9 Unknown Unknown Unknown

Ive looked in the file ../MM5/domain/initial/param.F and the line 620 is SIGMA(MKX+1)=1. and in the file ../MM5/Run/mm5.F and the line 165 is CALL PARAM(IEXEC) Does this help to solve the problem?Can I post both files (if they can help)?

More information: when I compile with the Intel Fortran Compiler I obtain the warning "...#warning: illegal token on preprocessor directive line." (always the line that launches the warning is "#ifndef MPP1" or "#ifdef MPP1". When I compile with the Portland Fortran Compiler I have no warnings. Any idea about that?

Thanks a lot for your support.

Jose Antonio Velasco

0 Kudos
Steven_L_Intel1
Employee
1,055 Views

Rather than posting files here, please submit a problem report to Intel Premier Support and attach a .tar.gz of all source files and the build script/makefile, along with instructions for reproducing the problem.

Are the source files named with a .F (capital letter) file type? That should allow the fpp preprocessor to be used.

0 Kudos
jose_velasco
Beginner
1,055 Views

A couple of questions:

- Can I access to Intel Premier Support with a non-commercial license? If yes how can I contact?

- The sources files are named with a .F file type. How can I use the fpp preprocessor?

Thanks again.

0 Kudos
Steven_L_Intel1
Employee
1,055 Views

Yes, you have access to what we call "Limited Support". See here. You can report issues and we will respond, but response time may be delayed and you don't get accesses to product updates. You may want to try to solve this yourself. Try raising the stack limit to see if that helps. Run the program under the debugger and step through it to see exactly at what point the error occurs.

A file with the .F file type ought to be run through fpp automatically. You can also add "-fpp" to the command line.

0 Kudos
jose_velasco
Beginner
1,055 Views
Thanks a lot! I've solved my problem yet. I only had to add the -DDEC_ALPHA flag and everything work fine.
0 Kudos
Reply