Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting segfault when booting
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
ldoe3000
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2005
Posts: 78
Location: Portland, OR

PostPosted: Thu Jan 12, 2006 2:42 am    Post subject: Getting segfault when booting Reply with quote

Using kernels 2.6.15 and 2.6.14-r6 I get segfaults when booting. I tried the 2005.0 LiveCD and get a seg fault when I try to chroot to /mnt/gentoo.. The last thing I did before things went south (I think it was January 6th) was an emerge, and there was a baselayout upgrade among others. I mention baselayout because I've had that cause other problems, but none this bad.

I'm at a loss here guys, any ideas about how I can diagnose and fix?
_________________
Athlon64 3500+ MSI Neo2 Platinum
2X74 WD Raptor Raid 0
2X512MB Crucial Ballistix
ATI x800XT PE (8.18.6)
SB Audigy 2 ZS
Dell 24" Widescreen LCD
Dual boot: Gentoo x86_64 2.6.13-r4 , Windows XP x64
Back to top
View user's profile Send private message
ldoe3000
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2005
Posts: 78
Location: Portland, OR

PostPosted: Mon Jan 16, 2006 7:47 pm    Post subject: Reply with quote

*bump*

The specific segfault I am getting is:

Code:
sh[1]: segfault at ffffffffffffffff rip 00002aaaaad24e60 rsp 00007fffffa0d6b8 error 6


Any tips for troubleshooting? Any tips at all?
_________________
Athlon64 3500+ MSI Neo2 Platinum
2X74 WD Raptor Raid 0
2X512MB Crucial Ballistix
ATI x800XT PE (8.18.6)
SB Audigy 2 ZS
Dell 24" Widescreen LCD
Dual boot: Gentoo x86_64 2.6.13-r4 , Windows XP x64
Back to top
View user's profile Send private message
ldoe3000
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2005
Posts: 78
Location: Portland, OR

PostPosted: Mon Jan 16, 2006 10:02 pm    Post subject: Reply with quote

More info, it appears to happen just after the

Code:
Booting (initramfs)


message in the boot sequence..
_________________
Athlon64 3500+ MSI Neo2 Platinum
2X74 WD Raptor Raid 0
2X512MB Crucial Ballistix
ATI x800XT PE (8.18.6)
SB Audigy 2 ZS
Dell 24" Widescreen LCD
Dual boot: Gentoo x86_64 2.6.13-r4 , Windows XP x64
Back to top
View user's profile Send private message
ldoe3000
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2005
Posts: 78
Location: Portland, OR

PostPosted: Mon Jan 16, 2006 10:42 pm    Post subject: Reply with quote

more info, when I use the 2005.0 LiveCD, after mounting my partitions to /mnt/gentoo and /mnt/gentoo/boot I get the segmentation fault when I try to chroot. The message shown in a dmesg is:

Code:
bash[6037]: general protection rip: 2aaaaad2c720 rsp: 7ffffffff638 error:282

_________________
Athlon64 3500+ MSI Neo2 Platinum
2X74 WD Raptor Raid 0
2X512MB Crucial Ballistix
ATI x800XT PE (8.18.6)
SB Audigy 2 ZS
Dell 24" Widescreen LCD
Dual boot: Gentoo x86_64 2.6.13-r4 , Windows XP x64
Back to top
View user's profile Send private message
jomen
Guru
Guru


Joined: 04 Jan 2006
Posts: 536
Location: Leipzig, Germany

PostPosted: Mon Jan 16, 2006 11:19 pm    Post subject: Reply with quote

With my (really) limited knowledge...
To me it seems, your /bin/bash has been corrupted somehow - because it is the first thing to be executed, when you enter chroot - and also needed on normal boot...and the error indicates also, that bash is failing...
You could try to:
replace /bin/bash with that from the LiveCD - just copy it from the LiveCD
!!! - rename your original /bin/bash to /bin/bash_backup or something... before copying it over - just in case you need to get it back if it was not the failure!!!
Should it work then - check your CFLAGS for maybe too agressive optimizations, which might have caused this...
...it's just an idea I would try in such a case...
Back to top
View user's profile Send private message
ldoe3000
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2005
Posts: 78
Location: Portland, OR

PostPosted: Tue Jan 17, 2006 12:35 am    Post subject: Reply with quote

Good idea jomen, but it appears that it isn't bash that is crashing, but something else that bash relies on. I tried replacing with the version from the LiveCD and get the same problem. I tried downloading a binary of ksh, and while I can chroot successfully, modprobe, ls and a host of other commands cause memory faults. I noticed a glibc emerge on the last evening I was able to login, so perhaps that is causing me problems?
_________________
Athlon64 3500+ MSI Neo2 Platinum
2X74 WD Raptor Raid 0
2X512MB Crucial Ballistix
ATI x800XT PE (8.18.6)
SB Audigy 2 ZS
Dell 24" Widescreen LCD
Dual boot: Gentoo x86_64 2.6.13-r4 , Windows XP x64
Back to top
View user's profile Send private message
ldoe3000
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2005
Posts: 78
Location: Portland, OR

PostPosted: Tue Jan 17, 2006 4:25 am    Post subject: Reply with quote

Ok, I have a core dump file but can't seem to view it on my Fedora 32-bit machine.. Is there a way to view 64-bit core dump files in 32-bit Linux?
_________________
Athlon64 3500+ MSI Neo2 Platinum
2X74 WD Raptor Raid 0
2X512MB Crucial Ballistix
ATI x800XT PE (8.18.6)
SB Audigy 2 ZS
Dell 24" Widescreen LCD
Dual boot: Gentoo x86_64 2.6.13-r4 , Windows XP x64
Back to top
View user's profile Send private message
juhah
n00b
n00b


Joined: 03 Oct 2004
Posts: 46

PostPosted: Tue Jan 17, 2006 8:40 pm    Post subject: Reply with quote

The LiveCD should have memtest on it. Please, run memtest few times to make sure that that the ram is ok.

Next you should try different boot parameters like noapic to see if they make any difference. Please see http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=2 for complete list.
Back to top
View user's profile Send private message
ldoe3000
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2005
Posts: 78
Location: Portland, OR

PostPosted: Thu Jan 19, 2006 6:47 am    Post subject: Reply with quote

I'm pretty sure it's not the memory, as I'm typing this from Windows now on the same machine.. Ah well, I'm going to call my Linux experiment over and redo my machine without the dual-boot. Windows XP x64 wins. I'll install Gentoo on my secondary machine..
_________________
Athlon64 3500+ MSI Neo2 Platinum
2X74 WD Raptor Raid 0
2X512MB Crucial Ballistix
ATI x800XT PE (8.18.6)
SB Audigy 2 ZS
Dell 24" Widescreen LCD
Dual boot: Gentoo x86_64 2.6.13-r4 , Windows XP x64
Back to top
View user's profile Send private message
aidy
l33t
l33t


Joined: 07 Apr 2005
Posts: 915

PostPosted: Fri Jan 20, 2006 6:09 pm    Post subject: Reply with quote

Why not just try reinstalling instead of going to WinXP64??? That's a piece of crap.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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