LinuxQuestions.org
Review your favorite Linux distribution.
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 11-13-2003, 01:03 AM   #1
redhatnoob
Member
 
Registered: Jun 2003
Location: NY
Distribution: Red Hat 9
Posts: 66

Rep: Reputation: 15
Segmentation Fault


Every time I compile anything, I recieve a Segmentation Fault. What is causing this? I have been told that this is becuase of harware issues. Its there a test to run to check my hardware for faults or anything I can do to repair this issue if its hardware?

Any help would be great!
 
Old 11-13-2003, 01:59 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I've always heard that consistent segfaults during compiling was due to bad or insufficient RAM. How much RAM do you have? As far as testing it, I don't know - there may be something on your machine or you could do a search for 'RAM tester' or something like. Also, if you have other sticks of RAM laying around, you could try swapping them and see if it makes a difference. I haven't had that problem so haven't learned much about it.
 
Old 11-13-2003, 02:02 AM   #3
redhatnoob
Member
 
Registered: Jun 2003
Location: NY
Distribution: Red Hat 9
Posts: 66

Original Poster
Rep: Reputation: 15
I have a 512 and a 128 in my computer now/ I am running memtester but I am not to sure how to really work in a Linux environment with repairing memory errors. So far I am passing all the tests.

I get the segfault error on every compile so it has to be a hardware issue or momory. I also found this http://www.faqs.org/qa/qa-673.html

Thanks for the response. Any other memory ideas I can try to fix? Would a completly new format of my harddrive help at all too?
 
Old 11-13-2003, 02:11 AM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I wouldn't reformat - your storage space shouldn't have anything to do with segfaults. I've also heard mismtached memory can be a problem (but I think that's only with older hardware) and that Windows can be more forgiving of bad RAM (but it seems you're testing it under Linux) and that's plenty of memory. If it's every application either it is a hardware issue or you're missing some vital stuff in your system. I'd expect that to generate errors, not segfaults, though. Maybe the compiler itself is screwed up somehow? I'm really out of ideas - I'd just say not to reformat.

Hopefully others will offer their ideas.
 
  


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
what does Segmentation Fault mean ? baronlynx Linux - Newbie 10 10-25-2009 04:32 PM
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika Suse/Novell 2 12-02-2005 09:34 AM
Help !!! Segmentation fault mola Linux - Software 3 06-23-2005 11:13 AM
Segmentation fault tejas15_10 Programming 9 06-20-2005 09:12 AM
Segmentation fault santhosh_o Programming 3 10-26-2004 05:45 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration