Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212813 - 2.6.23 kernel segfaults on reboot or poweroff when executing /sbin/halt
Summary: 2.6.23 kernel segfaults on reboot or poweroff when executing /sbin/halt
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-09 11:56 UTC by Richard Scott
Modified: 2008-07-31 15:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info (emergeinfo.txt,3.00 KB, text/plain)
2008-03-09 13:50 UTC, Richard Scott
Details
kernel config as saved by genkernel (kernel-config-x86-2.6.23-hardened-r7,51.51 KB, text/plain)
2008-03-09 13:51 UTC, Richard Scott
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Scott 2008-03-09 11:56:49 UTC
I have a dell system that works perfectly well with a hardened-sources-2.6.20 kernel and will reboot with out the need to manually power off the chassis.

Following a recent upgrade to any hardened-sources-2.6.23 kernel the system segfaults on powering off or rebooting. It doesn't matter which release I seem to try, they all seem to segfault!

When shuttind down with either a "poweroff", "reboot" or pressing the power button I get as far as executing either /etc/init.d/reboot.sh or /etc/init.d/shutdown.sh scripts and it segfaults when running /sbin/halt!

Reproducible: Always

Steps to Reproduce:
1. install a hardened-sources-2.6.23 kernel
2. reboot and select to use this new kernel
3. try and poweroff or reboot your computer.

Actual Results:  
the halt command segfaults.

Expected Results:  
the computer chassis should power off or reboot.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-03-09 12:56:27 UTC
Post your emerge --info and attach kernel .config and relevant syslog output; thanks.
Comment 2 Richard Scott 2008-03-09 13:50:07 UTC
Created attachment 145647 [details]
emerge info
Comment 3 Richard Scott 2008-03-09 13:51:53 UTC
Created attachment 145648 [details]
kernel config as saved by genkernel
Comment 4 Richard Scott 2008-03-09 13:54:58 UTC
There are no sys log details as the system has already unmounted any local file systems and stopped any sysloggers.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-03-09 14:19:49 UTC
Confused now; according to emerge --info you are using gentoo-sources-2.6.23-r8, the config is from hardened-sources-2.6.23-r7? Which kernels are you having this issue with?
Comment 6 Richard Scott 2008-03-09 20:20:42 UTC
I'm having trouble with any and all 2.6.23 kernels. I was testing r8 to see if the issue had been fixed but it hadn't
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2008-03-09 20:23:18 UTC
So does 2.6.24 work, or not? Can't reproduce this at all anyway.
Comment 8 Richard Scott 2008-03-10 09:39:52 UTC
There is no hardened-sources-2.6.24!

Why have all the hardened-source kernels been removed from portage apart from the 2.6.23 range???

I will try with a gentoo-sources-2.6.24 kernel, but its not the one I wanted to use!
Comment 9 Richard Scott 2008-03-11 11:11:18 UTC
I've tried gentoo-sources-2.6.24-r3 and its still segfaulting:

The last line I see is this error:

/etc/init.d/shutdown.sh: line 9: 29910 Segmentation fault     /sbin/halt "${opts}"

Comment 10 Daniel Drake (RETIRED) gentoo-dev 2008-03-18 10:45:34 UTC
When you get to this stage, are you able to run any commands or anything? I would be interested in seeing dmesg output after the segfault has happened.

Alternatively, as root before shutting down run "dmesg -n 8". Then when you shut down and see the segfault, hopefully a kernel crash dump will be printed on screen. You could then capture that with a digital camera or serial console/netconsole and post it here.
Comment 11 Richard Scott 2008-03-23 21:48:37 UTC
Hi,

When I get to this stage nothing is available to me. All processes have been killed and all filesystems have been unmounted. if I had LVM or RAID these devices would also have been stopped now.

The issue I am having is the kernel isn't able to tell my hardware to power off or reboot.

It works perfectly with a 2.6.20-r10 kernel, but anything abouve that and the power management doesn't seem to work with my hardware :-(
Comment 12 Richard Scott 2008-03-29 13:07:33 UTC
ok, small update.

The segfault I am experiencing happens at the same time that the hard drives are powered off at the very end of a shutdown sequence.

The system should also poweroff the motherboard etc but it doesn't as it segfaults at that point.

I am unable to reboot this system without being there to press and hold in the power button to power off the chassis
Comment 13 Richard Scott 2008-05-12 12:20:01 UTC
This is now resolved as of 2.6.24-hardened-r1
Comment 14 Richard Scott 2008-05-20 22:07:32 UTC
Sorry to re-open this bug, but its now back as of 2.6.24-hardened-r2!

What changes were made between R1 and R2???
Comment 15 Richard Scott 2008-05-20 22:10:11 UTC
For info, I used the same kernel config file from R1, I just cp'd it to the new name in /etc/kernels and ran genkernel --menuconfig all to rebuild.
Comment 16 Richard Scott 2008-05-28 11:59:47 UTC
Does anyone know what the difference is between:

K_GENPATCHES_VER="2"

K_GENPATCHES_VER="3"

My system reboots and shuts down correctly with version 2, but segfaults on
version 3 :-(
Comment 17 Daniel Drake (RETIRED) gentoo-dev 2008-05-28 12:59:43 UTC
http://dev.gentoo.org/~dsd/genpatches/ has the differences
Comment 18 Mike Pagano gentoo-dev 2008-07-02 16:44:03 UTC
Would you be able to test the latest hardened as this writing which is 2.6.25-r1.

Comment 19 Mike Pagano gentoo-dev 2008-07-31 15:58:57 UTC
Feel free to reopen when you've had a chance to perform the test in comment #18