LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-17-2003, 12:10 PM   #1
Dumpsterm0uth
Member
 
Registered: Jan 2003
Location: Not telling
Distribution: Slackware, Mandrake, Redhat, -TRYING GENTOO
Posts: 64

Rep: Reputation: 15
What is a segment fault


What is a segment fault, I got that error when trying to install slackware, someone recommended me downloading a new fresh copy of the cd so I am right know.
 
Old 02-17-2003, 12:14 PM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Rep: Reputation: 46
I think a segment fault is a memory error. Something like the machine being asked to write to an invalid segment in RAM. I could be wrong but I think I remember reading that somewhere..
 
Old 02-17-2003, 12:22 PM   #3
Dumpsterm0uth
Member
 
Registered: Jan 2003
Location: Not telling
Distribution: Slackware, Mandrake, Redhat, -TRYING GENTOO
Posts: 64

Original Poster
Rep: Reputation: 15
Anyone offically know what it is? I am trying to put slackware on a pentium 1, 166mhz, 64mb ram, 4gig hd computer. -some people said it will work fine.
 
Old 02-17-2003, 02:49 PM   #4
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
A segmentation fault is a bad, bad memory error. It is caused by (among other things) a program trying to read or write a memory location that doesn't belong to it. It happens quite frequently to people learning how to program Usually you don't see them in production software, except in rare occasions.

If you are getting a segmentation fault when trying to install slackware, then it's probably a bug in the software, or as you said, a corruption of the executable, in which case a fresh copy should fix the problem. I don't know if hardware problems can cause a segfault, but you should certainly have no trouble installing slackware on that machine.

If you continue to get it, maybe you should submit a bug report to Slackware.
 
Old 02-17-2003, 04:43 PM   #5
Dumpsterm0uth
Member
 
Registered: Jan 2003
Location: Not telling
Distribution: Slackware, Mandrake, Redhat, -TRYING GENTOO
Posts: 64

Original Poster
Rep: Reputation: 15
I got the new slackware disc and tried, still segment faults, can it have anything to do with bad sectors on hard drive, or cdrom needs to be cleaned?
 
Old 02-17-2003, 05:14 PM   #6
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Maybe, but if it's a problem with your hardware, it would be strange for it to segfault consistently. Segfaults usually indicate a software problem.

I suppose it might be bad RAM...? But again, I'd find it strange to get a consistent segfault.

Dunno
 
Old 02-17-2003, 06:10 PM   #7
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by wapcaplet
I suppose it might be bad RAM...? But again, I'd find it strange to get a consistent segfault.
[/B]
I wouldnt be surprised if an installer threw a consistent segfault if a certain set of memory cells read different than what was written to those. I'd suggest running memtest86 for a long long time ( ~ 12 hours ) to see if it catches any errors.
 
Old 08-03-2003, 06:18 AM   #8
viaujeff
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
Angry Permanent segmentation fault.

Hi ! I've a big problem. If linux acting like that, the programmers should destroy all version because it doesn't work ! I've got an old pentium 200mhz and my linux server crashed at every 4 months. It happened to me 2 times and the directory /bin was deleted ! Now, I've got a new computer with 160gig, 512 ram DDR 333 and I've got segmentation fault at every 3 days. I think it's timed ! The only old periphicals was on the new computer are the cd-rom, floppy drive, sound card, network card and 56k modem. I tried POWERMAX for testing bad sectors on my maxtor HD and it passed all tests ! I partitioned 7Gb for my system (/), 1Gb for my SWAP and remaining space for (/home). The message error I've got when I reboot is: "/etc/rc.d/rc.sysinit segmentation fault line 44". When it happened before I reboot, I can't login in consol mode and my x-windows doesn't work. That's mean the time to die is coming soon and I must reboot and I'm death. I think I've a ghost on the computer or I'm hunted. No one can't help me ! I hope someone here can help !

PS. I'm trying to remove periphical one by one for system diagnostic !

Last edited by viaujeff; 08-03-2003 at 06:36 AM.
 
Old 08-03-2003, 09:50 AM   #9
q_re_us
LQ Newbie
 
Registered: Jul 2003
Location: Ottawa, ON CANADA
Posts: 17

Rep: Reputation: 0
As previously suggested, I would suspect faulty RAM. I had simillar problems. Tried installing various distros of linux...there would always be something that didn't load right and it was never the same package. ( I also have Win XP. During the install of XP, I always had files that couldn't be found on the CD. Internet Explorer would crash every 20-30 mins). Thought I had hardware compatibility issues. Could never get X windows working for more than a few minutes. Apps would crash suddenly or never start etc. As a last ditch attempt, I removed the stick of RAM I suspected was faulty...re-installed Linux (for the 11th time) and everyting went smoothly. No error messages, X is stable as can be, it runs great. I almost gave up on Linux for that stick of ram. But it was a blessing in disguise actually...it was the perceived instability of XP (caused by faulty RAM) that led me to Linux in the first place!

From the "Free Online Dictionary of Computing":

Segmentation fault:
An error in which a running Unix program attempts to access memory not allocated to it and terminates with a segmentation violation error and usually a core dump.
 
Old 08-03-2003, 03:19 PM   #10
viaujeff
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
Smile

I solved my problem I think. I just changed the cd-rom drive. I installed something different also because now I can use "/" caracter in "vi" text editor. Maybe it was because I change Country France to Canada. I think it was cd-rom because it was so hard copying cd into the server.

Last edited by viaujeff; 08-09-2003 at 12:38 PM.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why segment fault? andrewnow Programming 2 05-19-2005 08:16 AM
segment fault? melodious Fedora - Installation 1 10-25-2004 10:35 PM
9.1 new install segment fault jpearl24 Slackware 4 12-02-2003 03:17 PM
netbsd, segment fault? HmmLinux *BSD 0 07-09-2003 05:32 PM
HELP! ipop3d segment fault zbychu900 Linux - Networking 0 06-20-2001 05:28 PM


All times are GMT -5. The time now is 09:21 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