Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel compile: Segmentation fault randomly? [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
EricHsu
Bodhisattva
Bodhisattva


Joined: 03 May 2004
Posts: 591
Location: Aragon Consulting Group, Beijing, China

PostPosted: Wed Jun 23, 2004 1:11 pm    Post subject: kernel compile: Segmentation fault randomly? [solved] Reply with quote

hi all

I've upgraded my kernel to gentoo-dev-sources-2.6.7 from gentoo-dev-sources-
2.6.5 without any problem.

Yesterday I ran 'emerge sync' and found out that the gentoo-sources-2.6.7-r3
was available and I emerged it immediately.

However, when I tried to compile it today, the compile process kept
'Segmentation fault' all the time! And the weirdest thing was that it seg fault
randomly. Here is one of those 'seg fault' outputs:

Code:

...
  CC      mm/fadvise.o
  CC      mm/page_alloc.o
  CC      mm/page-writeback.o
  CC      mm/pdflush.o
  CC      mm/prio_tree.o
  CC      mm/readahead.o
mm/readahead.c: In function `force_page_cache_readahead':
mm/readahead.c:301: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[1]: *** [mm/readahead.o] Error 1
make: *** [mm] Error 2


Another one (seg fault again before I post this...):

Code:

  CC [M]  fs/msdos/namei.o
  LD [M]  fs/msdos/msdos.o
  LD      fs/nfs/built-in.o
  CC [M]  fs/nfs/dir.o
  CC [M]  fs/nfs/file.o
  CC [M]  fs/nfs/inode.o
  CC [M]  fs/nfs/nfs2xdr.o
fs/nfs/nfs2xdr.c: In function `nfs_xdr_readres':
fs/nfs/nfs2xdr.c:241: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[2]: *** [fs/nfs/nfs2xdr.o] Error 1
make[1]: *** [fs/nfs] Error 2
make: *** [fs] Error 2


And there were more than this! I've tried... I don't remember... how many times
today! And you never know when and where the compile process would like
to 'seg fault'... ('seg fault's like a box of chocolate, you never know what you
gonna get :evil: )

On the other hand, during the compile process, my running firefox disappeared mystically! It just crashed all of a sudden right before my eyes...
(That's why I have to quit the kernel compile process so that I could safely
post this... sigh...)

I've tried to compile the gentoo-dev-sources-2.6.7 (the current version of
kernel running on my box), the same! That means this problem should have
nothing to do with the kernel version...

And I switched my kernel back to gentoo-dev-sources-2.6.5, and compiled
both gentoo-dev-sources-2.6.7 and gentoo-dev-sources-2.6.7-r3, without
luck... so the problem also has nothing to do with which kernel I'm running...
(BUT, I do get my 2.6.7 kernel compiled under 2.6.5...)

I've 'memtest86' my RAM too, they're perfectly healthy...

I've search the forums for quite a while, but couldn't find any answer (did i
miss something :oops: )

Please help me if you have any idea about this:) I really really want to
recompile my kernel since I've spent half a day to finely tuned the config
settings~

Thanks!!
_________________
- http://nkbit.com
- http://twitter.com/xuyihua


Last edited by EricHsu on Wed Jun 23, 2004 2:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
Stormy Eyes
Veteran
Veteran


Joined: 09 Apr 2003
Posts: 1064
Location: Watching God spit-shine my boots.

PostPosted: Wed Jun 23, 2004 1:28 pm    Post subject: Reply with quote

Run memtest86 if you can; it sounds like you've got a RAM module that's going bad. You're not supposed to be getting segfaults when running the compiler.
Back to top
View user's profile Send private message
platypus
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2003
Posts: 91

PostPosted: Wed Jun 23, 2004 2:06 pm    Post subject: Reply with quote

do you have swap enabled? could be that your ram is working well, but you may be going over the limit? this would cause programs to stop.
Back to top
View user's profile Send private message
EricHsu
Bodhisattva
Bodhisattva


Joined: 03 May 2004
Posts: 591
Location: Aragon Consulting Group, Beijing, China

PostPosted: Wed Jun 23, 2004 2:33 pm    Post subject: Reply with quote

To Stormy Eyes:

I've run the memtest86 provided by the LiveCD and got 8 pass without any
error :roll:

Now, I've pulled my RAMs out of their slots and put them back one by one and
tested them serveral times to make sure they are OK...

When I pulled them out one by one, I felt that one of them was a little hotter than
the other two... I guess that should be the problem...

The compile process is running now, my firefox is still here, hope I could finish
this post :twisted:


To platypus:

Yeah, I have my swap enabled, wait...

OMG! The compile process accomplished SUCCESSFULLY!!

WOW, thank you all guys!!

It's sure my RAMs problem! They're getting old... Maybe someday I should
get them retired and praise them for what they have dedicated to me :wink:
_________________
- http://nkbit.com
- http://twitter.com/xuyihua
Back to top
View user's profile Send private message
Stormy Eyes
Veteran
Veteran


Joined: 09 Apr 2003
Posts: 1064
Location: Watching God spit-shine my boots.

PostPosted: Wed Jun 23, 2004 3:10 pm    Post subject: Reply with quote

Good job. When you replace your RAM, I'd look into putting heatsinks on each module. RAM gets hot these days, so it's no surprise that sometimes a module burns out.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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