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

Run time error

Amit_P_
Beginner
966 Views

While running GODAS model I am getting below error:

forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image              PC                Routine            Line        Source
fms_incoisM4G.x    0000000000D4D0D9  Unknown               Unknown  Unknown
fms_incoisM4G.x    0000000000D4B9AE  Unknown               Unknown  Unknown
fms_incoisM4G.x    0000000000CFA882  Unknown               Unknown  Unknown
fms_incoisM4G.x    0000000000C8CFC8  Unknown               Unknown  Unknown
fms_incoisM4G.x    0000000000C90B1B  Unknown               Unknown  Unknown
libpthread.so.0    00002B672A93B500  Unknown               Unknown  Unknown
fms_incoisM4G.x    00000000004386C0  godas_mod_mp_goda         496  godas.i90
fms_incoisM4G.x    0000000000542278  ocean_model_mod_m         749  ocean_model.i90
fms_incoisM4G.x    0000000000A11F58  coupler_main_IP_c         812  coupler_main.f90
fms_incoisM4G.x    0000000000A0F927  MAIN__                    353  coupler_main.f90
fms_incoisM4G.x    000000000040A6D6  Unknown               Unknown  Unknown
libc.so.6          00002B672B104CDD  Unknown               Unknown  Unknown
fms_incoisM4G.x    000000000040A5C9  Unknown               Unknown  Unknown

Please suggest.

 

0 Kudos
3 Replies
TimP
Honored Contributor III
966 Views

Use an adequate search engine (obviously not Yahoo, a real pest)   Did you not find the article

https://software.intel.com/en-us/articles/determining-root-cause-of-sigsegv-or-sigbus-errors

0 Kudos
Amit_P_
Beginner
966 Views

Thanks for the reply!!!

I went through the steps and compiled using "-check bounds". While running I got below error:

forrtl: severe (408): fort: (3): Subscript #1 of the array BUF has value 0 which is less than the lower bound of 1

Image              PC                Routine            Line        Source
fms_incoisM4G.x    00000000004A037D  godas_mod_mp_goda         496  godas.i90
fms_incoisM4G.x    0000000000727FE4  ocean_model_mod_m         749  ocean_model.i90
fms_incoisM4G.x    000000000135D6DB  coupler_main_IP_c         812  coupler_main.f90
fms_incoisM4G.x    000000000135907C  MAIN__                    353  coupler_main.f90
fms_incoisM4G.x    000000000040A656  Unknown               Unknown  Unknown
libc.so.6          00002ABAC4C04CDD  Unknown               Unknown  Unknown
fms_incoisM4G.x    000000000040A549  Unknown               Unknown  Unknown

 

0 Kudos
Lorri_M_Intel
Employee
966 Views

So, now all you need to do is use the debugger, and figure out why your subscript is bad in file godas.i90

  This is the fun part!

                   --Lorri

0 Kudos
Reply