LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-22-2007, 10:33 AM   #1
johnpaulodonnell
Member
 
Registered: Jun 2006
Location: Galway
Distribution: Suse 10.1
Posts: 114

Rep: Reputation: 15
gdb : Cannot access memory at address 0x99f825d4


Hi.

Trying to sort out a segmentation fault. The code is written in fortran 90 and compiles fine with intel fortran compiler ifort. The executable crashes at a certain point with a segmentation fault reported.

I've ran the executable with the linux debugger gdb and get the folowing output:

Code:
Program received signal SIGSEGV, Segmentation fault.
0x0809af62 in dsinv_. ()

(gdb) where
#0  0x0809af62 in dsinv_. ()
Cannot access memory at address 0x99f825d4
Does anyone know how I might go about finding what address 0x99f825d4 refers to??? Or how I might solve this problem? I'm lost...

Thanks.
 
Old 03-23-2007, 09:14 PM   #2
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
I'm almost sure that there's nothing valid at that address, and that the actual address 0x99f825d4 is unimportant. The first thing to try, in my opinion, is to take a look at the FORTRAN statement which blows up there and see whether you're indexing into an array, and whether the array index points to somewhere outside your array, either with an index that's too high or an index that's too low.

Hope this helps in a small way.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Access address out of main memory tsik Programming 3 01-17-2007 07:07 AM
Memory Mapping (same physical address = virtual address) skd.tech Linux - Kernel 7 07-25-2006 12:13 AM
examine memory with gdb Ephracis Programming 2 05-31-2005 07:30 AM
Can you use GDB to alter memory? tim_l Linux - Software 0 02-25-2005 06:19 AM
buffer overflow, finding return address using gdb true_atlantis Linux - Security 9 10-31-2004 06:46 PM


All times are GMT -5. The time now is 06:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration