LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-12-2006, 07:29 AM   #1
Tavassoli
LQ Newbie
 
Registered: Jun 2006
Posts: 9

Rep: Reputation: 0
segmentation fault


I am trying to run a code named "garfield-7". when I run it the message "segmentation fault" appears. Why this error appears and how i can solve this problem.
 
Old 06-12-2006, 07:36 AM   #2
worzel68
Member
 
Registered: May 2006
Location: Sydney
Distribution: FC5, FC3, AIX, System V,
Posts: 50

Rep: Reputation: 15
Tavassoli - Welcome to LQ,

A Segmentation Fault means that the application has crashed, because of some error in the program.

If this is something that you have downloaded, or is it code that you have written ?
Do you have the right version for your distribution ? What is your distribution?

We need some more info on what you have done so far.

Like to help you, hear from you soon.
 
Old 06-12-2006, 07:43 AM   #3
nabeelmoidu
Member
 
Registered: Jul 2005
Location: Bangalore
Distribution: Fedora
Posts: 71

Rep: Reputation: 15
A segmentation fault means that the program you're running attempted to read or write some address in memory that wasn't assigned to it. Try running strace and see whats wrong
 
Old 06-12-2006, 08:23 AM   #4
Tavassoli
LQ Newbie
 
Registered: Jun 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks "nabeelmoidu" for your answer
What is "strace" and how can run it?

Last edited by Tavassoli; 06-12-2006 at 08:59 AM.
 
Old 06-12-2006, 09:05 AM   #5
nabeelmoidu
Member
 
Registered: Jul 2005
Location: Bangalore
Distribution: Fedora
Posts: 71

Rep: Reputation: 15
strace garfield-7 will give you the system calls that the code produces while executing your program.You might be able to identify which file or piece of code might be causing the problem . I don't know exactly how much it will help your issue, but you can give it a try.I normally use it when any program crashes or so.
As worzel68 said , give us an idea of what garfield is ? And paste exactly the error you are getting.
 
Old 06-12-2006, 09:48 AM   #6
worzel68
Member
 
Registered: May 2006
Location: Sydney
Distribution: FC5, FC3, AIX, System V,
Posts: 50

Rep: Reputation: 15
I looked at the web page:

It looks like you have downloaded a binary file for Redhat 6.1 or SLC3, neither of which will work on your REdhat 7.3.

I suggest that you download the source files from that page & compile it your self. There is an email link on the page to receive instructions on compiling, which is advisable as the code is written fortran (not easy) although not impossible as most linux distros come with a g77 compiler.

BTW you are another guy who seems to have a really old version of Redhat - since 7.3 there have been Redhat 8, 9 & Fedora 1, 2, 3, 4 & 5 which is the latest. Sorry I don't mean to be rude , But Crikey!!

Any way have a go with the compile instructions from CERN

Have fun with the fortran code
 
  


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
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
Segmentation fault alnreddy Linux - Software 1 11-05-2005 08:54 PM
Segmentation fault fridgider Linux - Software 1 04-09-2005 11:36 AM
segmentation fault sqn Slackware 3 03-21-2003 05:26 AM
Segmentation Fault live2 Linux - General 6 03-02-2003 08:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:59 AM.

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
Open Source Consulting | Domain Registration