Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Bounds checking in Fortran(How to perform "bounds checking" on Fortran Eclipse)
Bounds checking in Fortran [message #1732532] Wed, 18 May 2016 01:53 Go to next message
Bruno is currently offline Bruno bc.sotelobucla.eduFriend
Messages: 1
Registered: May 2016
Junior Member

I'm a newbie in Eclipse and in programming in general.

I'm running mathematical codes, and I'm getting the error:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0 0x10490c092
#1 0x10490b3b0
#2 0x7fff8da12ea9
#3 0x1047f061d
#4 0x1047f7688
#5 0x1047f77b8

My professor said the next best thing to do is to look into bounds checking. I think he's saying to check if I have something like this:

program main
Real*8,dimension(3) :: a
Real*parameter :: b=3

a(1)=3*b ;a(2)=4*b ; a(3)=4*b ; a(4)=9*b

Can anyone help me how I can set up eclipse so that when it runs, it performs bounds checking and tells, for the above example, that I'm out of bounds with

Re: Bounds checking in Fortran [message #1732543 is a reply to message #1732532] Wed, 18 May 2016 07:28 Go to previous message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 591
Registered: August 2014
Senior Member
This is a property of the Fortran compiler and runtime you're using.

If you are using the GNU Fortran, Google for it.

There are also some tools, depending on the operating system you're running under. Google for Valgrind.


Tauno Voipio
Previous Topic:Cannot Get Color Themes To Work
Next Topic:Cannot remove not available maven
Goto Forum:

Current Time: Wed Oct 21 11:20:53 GMT 2020

Powered by FUDForum. Page generated in 0.03138 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top