Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
Backtrace for this error:
#0 0x105372e42
#1 0x10537360e
#2 0x10590e5a9
#3 0x1053650db
#4 0x10536203f
#5 0x10536acf0
#6 0x10536b268
Segmentation fault: 11
Therefore, I need you to help me to run this program in many kinds of fortran compiler, and which one maybe can tell me what is the wrong in my codes. I offer the codes and data in the file.
When the program show the information as "please input the file name of input file within 80 bytes", you just need to copy the data into the screen because I do not write the output until now. If there are any wrong information,please send the email to me (xumi...@aliyun.com) or send to this forum. Thanks
Best Wishes
Xu
On Tuesday, June 24, 2014 12:25:10 AM UTC+12, lihong...@gmail.com wrote:I run the program in gfortran (I can not install G95 into my mac computer because of system problems). The program can be compiled in gfortran, but when I run the program, there will show the error information as follows :Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
I don't have the spare time to check someone else's 138 KB file but I do have 3 constructive suggestions.
There are various causes of segmentation faults but common ones are calling a subroutine or function with actual arguments that don't match the dummy arguments, and using an element of an array that's outside the declared bounds.