Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem File Output using Simply Fortran. 1

Status
Not open for further replies.

Noraliza

Technical User
Oct 5, 2012
6
MY
Dear friend forum,

I am Nor have problem when I build the Fortran Compiler(Simply Fortran), the notes come: Program received signal SIGSEGU, Segmentation fault-invalid memory refrence. I can open my file output..but nothing in there , look like..the system confius.

If you can give the idea what suppose I must do to see my output, I'm very appreciate it.
Thank You
Aliza
 
You are getting this when trying to build your program with Simply Fortran.

1) Is it a simple program or a very big one? If it is a simple one, could you post the code between [ CODE] [/CODE] tags.
2) Which version of gfortran are you using? (type gfortran --version to find out)
3) Is this on XP, Vista, W7, W8 or one of the server platforms.
 
Have you tried building and running the hello world program?
 
I already try the hello world programe, its ok, I get the output . I am using this compiler to run my coding for my PhD project. It is a big program with a lot og iteration. It's happen when I add 2 new Subroutine for may major program. Before this,The Major Program with another subroutine can get the output.This problem happen because in our new subroutine we have step to swap the data. Now I try just 11 data with 5 columns in file input.. not alot of data..
I'm using version fortran 90,Window 7 and Version X64.

Thank you for your time dear xwb.
 
Sorry, my mistake for the previous notes, When I build, it's success but
when I run the Fortran Compiler(Simply Fortran), the notes come: Program received signal SIGSEGU, Segmentation fault
invalid memory refrence.
 
1) Do you use include files
2) Are the new routines in a separate file or in the same file. If in the same file, have you tried putting them in separate files.
 
invalid memory reference!

You may be able to see what is going on, if not, start by compiling your program with a few flag that may help: -g -Warray-bounds -fbractrace -fbounds-check

then, run your program again and see if it gives you more hints...like the file and line number where the problem is, the array name, dimensions and the index value that is illegal...

 
Dear Salegerman and xwb. Thank you very much for both of your advices. Now I know how to handle if I get the message like that. The system confius because of the coding for stop the system.

Thank You
Nor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top