Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Segmentation Violations/Seg faults on rooting FS? *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
melts
n00b
n00b


Joined: 21 Feb 2004
Posts: 53

PostPosted: Mon Feb 21, 2005 6:56 am    Post subject: Segmentation Violations/Seg faults on rooting FS? *solved.* Reply with quote

I'm in an awful spot of bother with a Segementation Violation on bootup of my gateway server.

I can't supply the error message verbatim since i'm currently running the hardware with the gentoo liveCD (so i'm in link2 atm posting this, its rather painful) but I know it was a Segmentation Violation after the kernel frees memory, and before INIT.
The line reads similar to below -
Segmentation Violation at (nil!) waiting for 30 seconds.

From what i know this is about with the kernel sets root to the root partition (/dev/hda3 for me).

Before this happened the server ran for months ok, and i had just completed a rather big emerge world task, which seg faulted partway through and *anything* i entered into my SSH session would also seg fault (ls, top, cd...). I rebooted to have this Segementation Violation error.

Now why i think it has something to do with the filesystem - I've booted into the liveCD (after running memtest, passed) and fscked my partitions and mounted them. I enter chroot /mnt/gentoo /bin/bash and get a Seg fault straight up. Nothing else i do seg faults so far, but that does. I haven't figured it out at all so here i am posting this. I'm running ReiserFS on all partitions except /boot, that runs ext2. All the partitions checked out with fsck.reiserfs --check, though i guess i'll do a rebuild while i wait for replies in hope it fixes it. I'm running a 2.6.10 kernel and i've never had a problem before. I did update sysvinit in my emerge session, however it was "dev-tc-tlk?"/expect that first seg faulted, (about two thirds in, compiled sysvinit and glibc sucessfully, though glibc was completed after sysvinit and it was a downgrade...). All in all i have no idea whats going on. Anyone got any ideas?
_________________
=== === === === === ===
doh
=== === === === === ===


Last edited by melts on Mon Feb 21, 2005 11:55 am; edited 1 time in total
Back to top
View user's profile Send private message
melts
n00b
n00b


Joined: 21 Feb 2004
Posts: 53

PostPosted: Mon Feb 21, 2005 11:54 am    Post subject: Reply with quote

Ok, well i figured it out, at least what was happening and temp fix.
seems that ld-linux.so.2 and probably others weren't ok after emerging glibc

to fix it i copied all the libs from the livecd /lib to my lib and everything got going. I then tried to merge glibc and it killed itself again.
I'm going to try and find a thread about glibc problems like this or start a new one since no-one seemed to care about this one :P

hope if anyone else has this problem that this helps em.
_________________
=== === === === === ===
doh
=== === === === === ===
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580

PostPosted: Mon Feb 21, 2005 3:34 pm    Post subject: Reply with quote

Have you checked you RAM with a memtest from the liveCD? Could be responsible for your incorrect compile behaviour.. Also have your checked the bugs website to see if the problem is listed there?
_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
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