Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 21st April 2008, 04:57 AM
mjurgens Offline
Registered User
 
Join Date: Feb 2008
Posts: 16
F8 Kernel Segfault in init script

I was running FC6 and yum upgraded to F8. The latest FC6 kernel version worked fine. Now that I am on F8 I can not run an F8 kernel since they always fail to boot. I am still running the latest FC6 kernel (everything else is F8). Every new F8 kernel I install has the same problem. I've extracted the initrd files and have tried a few things. If I do clean F8 installs it works every time (as you would expect) so I have some legacy problem coming from my FC6 upgrade. I have tried PAE and non-PAE kernels with the same result.

My FC6 upgrade was direct to F8 but I have tried FC6 -> F7 -> F8 as well with no luck.

The attached screenshot shows the error.
"init[1]: segfault at 00000006 eip 00000006 esp bf87a7e8 error 4"

I have now created a cut down F8 virtual machine under Vmware and copied the faulty initrd file to it. The fault is now reproducible within the VM.

I did find that if I downgraded nash and mkinitrd to an FC6 version and then installed F8 kernels that they would boot. But I have no idea why mkinitrd and nash from F8 create an initrd for me that is not bootable.

I have posted the faulty initrd file at http://www.edcint.co.nz/initrd-2.6.24.4-64.fc8.img

I'd love some suggestions as to what I should be trying/looking for etc

Thanks
Attached Thumbnails
Click image for larger version

Name:	f8kernel.gif
Views:	208
Size:	12.4 KB
ID:	15741  
Reply With Quote
  #2  
Old 16th June 2008, 01:01 AM
mjurgens Offline
Registered User
 
Join Date: Feb 2008
Posts: 16
Downgrade Mkinitrd

A downgrade of mkinitrd and nash to the latest FC6 versions gets further in the boot process but gives the following error (I suspect that this would never work any way due to dependencies but it does appear to show that changing mkinitrd fixes the initial fault)
Attached Thumbnails
Click image for larger version

Name:	IMG_4330.JPG
Views:	65
Size:	141.6 KB
ID:	16420  
Reply With Quote
  #3  
Old 16th June 2008, 07:53 AM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
It sounds like you have some package that mkinitrd or nash depend on that didn't get sucessfully updated.

The command to see the requirements of the mkinitrd package for example:
rpm -q --requires mkinitrd

and you will have a list of what it requires and you can check each of them for what version it is and update any that are still fedora 6.

For example, if it shows a requirement for libglib-2.0.so.0 you can issue the command:
rpm -q --whatprovides libglib-2.0.so.0

and the answer is the glib2-2.14.6-1.fc8 package

Last edited by JEO; 16th June 2008 at 08:05 AM.
Reply With Quote
  #4  
Old 16th June 2008, 08:43 AM
mjurgens Offline
Registered User
 
Join Date: Feb 2008
Posts: 16
Quote:
Originally Posted by JEO
It sounds like you have some package that mkinitrd or nash depend on that didn't get sucessfully updated.
Didn't find anything. Everything is FC7 or F8. Wrote a script to do all the --whatprovides on the results of the "rpm -q --requires mkinitrd". Output below. Not sure about the "no package provides " results.

bash-3.2-20.fc8
bash-3.2-20.fc8
bash-3.2-20.fc8
module-init-tools-3.4-2.fc8
util-linux-ng-2.13.1-1.fc8
no package provides config
coreutils-6.9-13.fc8
cpio-2.9-5.fc8
udev-118-1.fc8
device-mapper-1.02.22-1.fc8
dmraid-1.0.0.rc14-4.fc8
e2fsprogs-1.40.4-1.fc8
filesystem-2.4.11-1.fc8
coreutils-6.9-13.fc8
findutils-4.2.31-2.fc8
glib2-2.14.6-1.fc8
grep-2.5.1-57.fc7
gzip-1.3.12-4.fc8
initscripts-8.60-1
nash-6.0.19-4.fc8
e2fsprogs-libs-1.40.4-1.fc8
glibc-2.7-2
device-mapper-libs-1.02.22-1.fc8
libdhcp-1.27-4.fc8
libdhcp4client-3.0.6-12.fc8
libdhcp6client-0.10-51.fc8
glib2-2.14.6-1.fc8
nash-6.0.19-4.fc8
libnl-1.0-0.15.pre8.git20071218.fc8
parted-1.8.6-10.fc8
popt-1.13-1.fc8
libselinux-2.0.43-1.fc8
libselinux-2.0.43-1.fc8
libsepol-2.0.15-1.fc8
libsepol-2.0.15-1.fc8
e2fsprogs-libs-1.40.4-1.fc8
lvm2-2.02.28-1.fc8
mdadm-2.6.2-5.fc8
mktemp-1.5-25.fc7
util-linux-ng-2.13.1-1.fc8
nash-6.0.19-4.fc8
no package provides rpmlib
no package provides rpmlib
no package provides rtld

tar-1.17-7.fc8
Reply With Quote
  #5  
Old 16th June 2008, 04:25 PM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
What are the contents of /etc/fstab and /boot/grub/grub.conf and /etc/modprobe.conf? All of these files are used by mkinitrd.
Reply With Quote
  #6  
Old 16th June 2008, 04:32 PM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
Also try the command "rpm -qva |grep fc6" to look for old packages and try "yum list extras" to list extra packages not in the repositories.
Reply With Quote
  #7  
Old 17th June 2008, 12:24 AM
mjurgens Offline
Registered User
 
Join Date: Feb 2008
Posts: 16
Quote:
Originally Posted by JEO
What are the contents of /etc/fstab and /boot/grub/grub.conf and /etc/modprobe.conf? All of these files are used by mkinitrd.
==> /etc/fstab <==
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/vg1/lv0 /export/shared ext3 suid,dev,exec 0 0
/dev/hdb4 /export/shared2 xfs suid,dev,exec 0 0
/dev/vg2/lv1 /export/shared1 xfs suid,dev,exec 0 0
LABEL=SWAP1 swap swap defaults 0 0
/export/shared/dl/iso/Fedora-8-dvd-i386/Fedora-8-i386-DVD.iso /var/www/html/ks/mounts/Fedora-8-i386-DVD iso9660 suid,dev,ro,mode=444,loop,exec 0 0
/export/shared/dl/iso/Fedora-9-i386-DVD/Fedora-9-i386-DVD.iso /var/www/html/ks/mounts/Fedora-9-i386-DVD iso9660 suid,dev,ro,mode=444,loop,exec 0 0
# gold:/export /export/shared1 nfs suid,dev,exec 0 0

==> /boot/grub/grub.conf <==
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/Volume00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default 3
timeout 5
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora (2.6.25.4-10.fc8)
root (hd0,0)
kernel /vmlinuz-2.6.25.4-10.fc8 ro root=LABEL=/ rhgb quiet irqpoll
initrd /initrd-2.6.25.4-10.fc8.img
title Fedora (2.6.25.4-10.fc8PAE)
root (hd0,0)
kernel /vmlinuz-2.6.25.4-10.fc8PAE ro root=LABEL=/ rhgb quiet irqpoll
initrd /initrd-2.6.25.4-10.fc8PAE.img
title Fedora (2.6.22.14-72.fc6)
root (hd0,0)
kernel /vmlinuz-2.6.22.14-72.fc6 ro root=LABEL=/ rhgb quiet irqpoll
initrd /initrd-2.6.22.14-72.fc6.img
title Fedora (2.6.22.14-72.fc6PAE)
root (hd0,0)
kernel /vmlinuz-2.6.22.14-72.fc6PAE ro root=LABEL=/ rhgb quiet irqpoll
initrd /initrd-2.6.22.14-72.fc6PAE.img

==> /etc/modprobe.conf <==
install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0 && /usr/sbin/alsactl restore >/dev/null 2>&1 || :
alias usb-controller uhci-hcd
alias net-pf-10 off
alias usb-controller1 ehci-hcd
alias scsi_hostadapter ata_piix

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.10rc3 ---
# --- END: Generated by ALSACONF, do not edit. ---
alias dev24174 r8169
alias dev14102 e100
alias dev3375 3c59x
options snd-hda-intel index=0
remove snd-hda-intel { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-hda-intel
alias eth1 sky2
alias snd-card-0 snd-hda-intel
options snd-card-0 index=0
alias eth0 r8169
Reply With Quote
  #8  
Old 17th June 2008, 12:29 AM
mjurgens Offline
Registered User
 
Join Date: Feb 2008
Posts: 16
Quote:
Originally Posted by JEO
Also try the command "rpm -qva |grep fc6" to look for old packages and try "yum list extras" to list extra packages not in the repositories.
I'm not sure how useful the 'yum list extras' since it gives stuff like:
vim-enhanced.i386 2:7.1.211-1.fc8 installed

Anyway, the "rpm -qva |grep fc6" shows lots of stuff. I'll work through it and try and remove what is not needed (lots of it looks like it is related to mymythtv installation):

a52dec-0.7.4-8.fc6.rf
avahi-0.6.16-1.fc6
dmidecode-2.7-1.26.1.fc6
enchant-1.3.0-1.fc6
faac-1.25-2.fc6.rf
faad2-2.5-7.fc6.at
fftw2-double-2.1.5-13.fc6.at
fping-2.4b2-7.fc6
jakarta-commons-cli-1.0-6jpp_10.fc6
kernel-2.6.22.14-72.fc6
kernel-devel-2.6.22.14-72.fc6
kernel-PAE-2.6.22.14-72.fc6
kernel-PAE-devel-2.6.22.14-72.fc6
keyutils-libs-1.2-2.fc6
keyutils-libs-devel-1.2-2.fc6
lame-3.97-1.fc6.rf
libavc1394-0.5.3-1.fc6
libavformat51-0.4.9-23_r8743.fc6.at
libdc1394_control13-1.1.0-6.fc6.at
libds-1.5.4-1.2.fc6.rf
libdvbpsi-0.1.5-2.fc6.rf
libdvdcss-1.2.9-3.fc6.at
libfame-0.9.1-12.fc6.rf
liblzo1-1.08-3.fc6.at
libmad-0.15.1b-4.fc6.rf
libquicktime0-0.9.10-18.fc6.at
libsmi-0.4.5-2.fc6
mjpegtools-1.9.1-14_cvs20061009.fc6.at
mplayer-fonts-1.1-3.fc6.rf
perl-Class-MethodMaker-2.08-6.fc6.at
perl-DateTime-Format-Builder-0.7807-4.fc6
perl-IO-stringy-2.110-8.fc6.at
perl-Lingua-Preferred-0.2.4-3.fc6.at
perl-Locale-Hebrew-1.04-2.fc6.at
perl-SOAP-Lite-0.69-5.fc6.at
perl-Term-ProgressBar-2.09-2.fc6
perl-Tk-TableMatrix-1.2-17.fc6.at
perl-Unicode-UTF8simple-1.06-2.fc6.at
perl-XML-Validator-Schema-1.08-1.2.fc6.rf
rng-utils-2.0-1.14.1.fc6
tux-3.2.18-9.fc6
x264-0.0.0-0.3.20061214.fc6.rf
xorg-x11-filesystem-7.1-2.fc6
xvidcore-1.1.2-1.fc6.rf
Reply With Quote
  #9  
Old 17th June 2008, 04:31 AM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
In /etc/fstab you have a line /dev/hdb4 /export/shared2 xfs suid,dev,exec 0 0
All of the old hd(x) devices are now sd(x) under Fedora8, so it's possible that could cause problems. Try commenting it out.
Reply With Quote
  #10  
Old 17th June 2008, 04:38 AM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
Not all the fc6 packages are wrong for Fedora 8. You can ignore the following as I have them too.
enchant-1.3.0-1.fc6
xorg-x11-filesystem-7.1-2.fc6
rng-utils-2.0-1.14.1.fc6
libavc1394-0.5.3-1.fc6
dmidecode-2.7-1.26.1.fc6
keyutils-libs-1.2-2.fc6
Reply With Quote
  #11  
Old 17th June 2008, 04:47 AM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
I would look at the following after excluding .at, .rf and kernels."
avahi-0.6.16-1.fc6
fping-2.4b2-7.fc6
jakarta-commons-cli-1.0-6jpp_10.fc6
libsmi-0.4.5-2.fc6
perl-DateTime-Format-Builder-0.7807-4.fc6
perl-Term-ProgressBar-2.09-2.fc6
tux-3.2.18-9.fc6
Reply With Quote
  #12  
Old 17th June 2008, 04:54 AM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
"I'm not sure how useful the 'yum list extras' since it gives stuff like:
vim-enhanced.i386 2:7.1.211-1.fc8 installed"

try a yum update command first. Here is the output of my yum list extras:
Extra Packages
jre.i586 1.6.0_03-fcs installed
kernel.i686 2.6.24.7-92.fc8 installed
Reply With Quote
  #13  
Old 19th June 2008, 01:58 AM
mjurgens Offline
Registered User
 
Join Date: Feb 2008
Posts: 16
Quote:
Originally Posted by JEO
In /etc/fstab you have a line /dev/hdb4 /export/shared2 xfs suid,dev,exec 0 0
All of the old hd(x) devices are now sd(x) under Fedora8, so it's possible that could cause problems. Try commenting it out.
The device names changes are part of Fedora 9. I boot off /dev/md0 which is made up of /dev/hda1 and /dev/hdb1
Reply With Quote
  #14  
Old 19th June 2008, 02:18 AM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
Well that sounds like that would be the problem. Try modifying the raid to use sd(x)1 and sd(y)1 you can type blkid to see a list of the available fedora 9 devices.
Reply With Quote
  #15  
Old 22nd June 2008, 10:58 AM
mjurgens Offline
Registered User
 
Join Date: Feb 2008
Posts: 16
Quote:
Originally Posted by JEO
Well that sounds like that would be the problem. Try modifying the raid to use sd(x)1 and sd(y)1 you can type blkid to see a list of the available fedora 9 devices.
I am on Fedora 8 - the /dev/hd devices don't go away until Fedora 9
Reply With Quote
Reply

Tags
init, kernel, script, segfault

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
init.d script rs232 Using Fedora 6 4th December 2006 01:39 AM
2.6.5 kernel on fc1 init script problem (? i think) Less EOL (End Of Life) Versions 12 9th May 2004 10:29 PM


Current GMT-time: 09:52 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat