Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Segmentation faults on large compiles? Possible fix.[UPDATE]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
djh-world
Apprentice
Apprentice


Joined: 04 Jan 2004
Posts: 281
Location: Nottingham, UK

PostPosted: Tue Feb 17, 2004 12:38 pm    Post subject: Segmentation faults on large compiles? Possible fix.[UPDATE] Reply with quote

Hello there, Over the past few weeks I have been experiancing segmentation faults on large compillations, annoyed by this fact I decided to go track it down, and I believe I may of fixed the problem. Thanks to the help of this forum, I figured that segmentation faults we're due to memory problems/or overheating.

So after careful thought, I narrowed it down to 2 possibilitys: -

1. Bad memory
2. Wrong memory settings.

I ran memtest a few times and that reported back no errors, so I felt it was time to enter the BIOS of my computer and have a poke at the settings. I soon found out that on my motherboard, it has special "pre-sets" to allow what speed to set your memory to, ranging from "Fast" to "Turbo" right upto "Ultra", mine was set at the latter, so I put it down to "Fast", set the memory options to "SPD", then saved the settings and restarted.

The problem was fixed. I'm updating my world file without a single problem!

--------------------------

UPDATE

----------------------------
I think this post may of come a bit too early, After I managed to "bugger" up my gentoo install, I decided to start a fresh with a stage 1 installation. Only to find that nearly all the large compiles segfaulted about half way through.

Annoyed by this factor, I decided to remove the stick of RAM I had recently purchased and start again.

Everything compiled without a hitch! Not even one single segfault, And as a bonus, Crucial UK (The guys who I got the memory from) have offered a replacement stick.

The moral of this story? If you are getting segfaults, check you RAM.


Last edited by djh-world on Mon Feb 23, 2004 11:46 am; edited 1 time in total
Back to top
View user's profile Send private message
asiobob
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1375
Location: Bamboo Creek

PostPosted: Wed Feb 18, 2004 12:57 am    Post subject: Reply with quote

Good catch,
When I had overclocked my system from 2.66ghz to 3ghz it would seg fault on large compiles as well, bringing it back down solved it. Interestingly the rest of the system was stable but this just shows how "unstable" overclocking can me, and I suppose the same to memory speed can apply here as well
Back to top
View user's profile Send private message
Selecter
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jan 2004
Posts: 128
Location: Estonia

PostPosted: Wed Feb 18, 2004 10:59 am    Post subject: Reply with quote

It may be the problem with Power Supply too. And maybe bugs in software or compilator.
Back to top
View user's profile Send private message
asiobob
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1375
Location: Bamboo Creek

PostPosted: Wed Feb 18, 2004 11:22 am    Post subject: Reply with quote

whilst it can be a bug in a compiler, its unlikely unless its been mass observed :D when I get these on normal packages I take a good look at my hardware
Back to top
View user's profile Send private message
Pergamon
Tux's lil' helper
Tux's lil' helper


Joined: 01 Feb 2004
Posts: 117

PostPosted: Fri Feb 20, 2004 4:23 pm    Post subject: Re: Segmentation faults on large compiles? Possible fix. Reply with quote

gamezfreakuk wrote:
Hello there, Over the past few weeks I have been experiancing segmentation faults on large compillations, annoyed by this fact I decided to go track it down, and I believe I may of fixed the problem. Thanks to the help of this forum, I figured that segmentation faults we're due to memory problems/or overheating.

So after careful thought, I narrowed it down to 2 possibilitys: -

1. Bad memory
2. Wrong memory settings.

I had the same problem: KDE compile kept throwing segmenation faults during compile. With Memtest (a boot option of live-cd) I finally found bad RAM. I removed the bad RAM and everything was ok from this moment on!
Back to top
View user's profile Send private message
axxackall
l33t
l33t


Joined: 06 Nov 2002
Posts: 651
Location: Toronto, Ontario, 3rd Rock From Sun

PostPosted: Fri Feb 20, 2004 4:58 pm    Post subject: Reply with quote

I have a box which halt in the middle of glibc compilation. Also in the middle of compiling Mozilla and some big Gnome packages.

Gotta check memory for a case if it is a reason of the problem.
_________________
"Lisp is a programmable programming language." - John Foderaro, CACM, September 1991
Back to top
View user's profile Send private message
Jimill
n00b
n00b


Joined: 17 Feb 2004
Posts: 10
Location: Sydney

PostPosted: Sat Feb 21, 2004 11:18 pm    Post subject: Reply with quote

i'm getting seg faults compiling kde, but i've run memtest for 9 hours on the machine with no errors reported, surely I don't have to run it longer than that to find any errors?
Back to top
View user's profile Send private message
blacknova
n00b
n00b


Joined: 29 Nov 2003
Posts: 5

PostPosted: Sun Feb 22, 2004 3:52 am    Post subject: Reply with quote

I've experienced similar issues myself, only mine involved not only a segfault while compiling, but also a segfault of many other processes and the kernel, all at once. First thing I thought to look at was memory, but that turned out to be just fine. What ended up being the culprit was a bad CPU. This was on a board with no overclocking enabled. Quick replacement of the CPU fixed the problem right up.

Jimill: If your memory has been fine after 9 hours of testing, I doubt that's where your problem lies. I'd tend to think you have one of two other problems: dead or dying motherboard, or dead CPU, neither a fun time. :( I remember I saw this kind of failure on an old KuDoz motherboard I used to have that died with blown capacitors. CPU and memory were fine though.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum