Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275458 - x86 install minimal cd autobuild (20090623) refuses to shutdown the machine due to segmentation fault
Summary: x86 install minimal cd autobuild (20090623) refuses to shutdown the machine d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: InstallCD (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-26 06:19 UTC by Arthur
Modified: 2011-06-19 13:27 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arthur 2009-06-26 06:19:53 UTC
x86 install minimal cd autobuild (20090623) refuses to shutdown the machine. After I issue /sbin/halt the shutdown script successfully stopped all the daemons, unmounted and remounted read only, but stopped to shutdown the machine completely with an error message:
/etc/init.d/shutdown.sh: line 9: 20549 Segmentation fault /sbin/halt "${opts}"

A similar problem occurred when I press Ctrl+alt+delete to reboot:
/etc/init.d/reboot.sh: line 7: 21456 Segmentation fault /sbin/reboot "${opts}"

Reproducible: Always

Steps to Reproduce:
1. copy the CD files to hard disk and boot using GRUB in hd
2. issue halt or reboot
3. wait and the problem occurs

Actual Results:  
The script refuses to shutdown with error message:
/etc/init.d/shutdown.sh: line 9: 20549 Segmentation fault /sbin/halt "${opts}"
or
/etc/init.d/reboot.sh: line 7: 21456 Segmentation fault /sbin/reboot "${opts}"

Expected Results:  
Shutdown completely without segmentation fault

I'm using Dell Dimension 5150
Processor: Prescott 3G
Memory: 1G
NVIDIA GeForce 8600GT
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2009-06-27 03:58:42 UTC
Can you reproduce on another machine? Have you tried an older autobuild?

Also, the installcd contents are not designed to be copied to a HD and booted.
Comment 2 Arthur 2009-06-28 14:12:35 UTC
It's not reproducible on Dell Inspiron Mini 9 with Intel Atom N270, Intel GMA950 video card, Intel 945GSE UMA chipset.
But on Dell Latitude D620 with Core Due 2 T5600, Nvidia Quadro NVS 110M, Intel 945GM chipset, it's always possible to reproduce a similar bug: the shutdown script refuses to shut the machine done the last step but this time no error message.

I've tried 2008.0 and it's OK.
I've tried 20090616 but it's not shutting down properly.
My Gentoo installation on Dell D5150 can shutdown properly.

My cd burner is not working properly so I cannot burn a installcd. But the problem seems to be not related to hdboot since when the problem occurs the file systems have already been remounted readonly.
Comment 3 Matt 2009-07-05 18:07:25 UTC
Same problem here on a new system installed from minimal live cd (20090623) with stage 3 tarball (20090623) and portage-latest. 

when I shutdown the machine with poweroff I get a backtrace with this message at the end:

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


Reproducible: Always

Steps to Reproduce:
1. Follow install directions to install from live cd.
2. issue poweroff
3. wait and computer locks with segfault

using Dell optiplex gx400
Processor: Pentium
Memory: 512M
VideoCard: ATI with radeon driver
Comment 4 Tomas Vondra 2009-10-16 21:40:26 UTC
I do have almost the same problem with minimal install CD 20090915 on Asus Eee PC 1000H netbook. The system boots fine (it's a netbook so I use a USB to IDE/SATA adapter with a DVD drive), but once I hit 'Ctrl+Alt+Del' the last line (just after remounting remaining filesystem readonly) is

/etc/init.d/reboot.sh: line 7: 21807 Segmentation fault     /sbin/reboot "${opts}" 2> /dev/null

and the machine completely freezes so I have to hold the power button to turn it off.

But this does not happen if no filesystem are mounted (a hard drive partition, a USB flash disk, etc.) - in that case the message is not printed but the machine still freezes and the only way to turn it off is by holding the power button.

Steps to reproduce:
1) boot the install CD (just press Enter to use the dafault options)
2) mount a disk partition /dev/sda2 (ext3) and an external USB disk (vfat)
3) hit Ctrl+Alt+Del and wait :-(

Additional info:

# uname -a
Linux livecd 2.6.30-gentoo-r6 #1 SMP Tue Sep 15 10:41:33 UTC 2009 i686 Intel(R) Atom(TM) CPU N270 @ 1.66GHz GenuineIntel GNU/Linux
Comment 5 ttypub 2010-01-13 12:17:56 UTC
> /etc/init.d/shutdown.sh: line 9: 20549 Segmentation fault /sbin/halt "${opts}"

I had exactly the same bug after replacing an Intel Core 2 Duo E8500 by an Intel Quad Core Q9550. It was the only hardware and software change. The bug has  shown up thanks to the new processor  which has increased the degree of parallelism. I have solved the bug by replacing my 2.6.32.2 vanilla kernel by a 2.6.29.6 vanilla kernel. Downgrading the kernel is the only solution I have found.
Comment 6 David Ward 2010-03-10 00:16:54 UTC
I have the same problem on my gentoo box, installed from install-x86-minimal-20100216.iso.

Reproducible: Always

Steps to Reproduce:
1. issue commands 'poweroff', 'shutdown -p now', 'halt', or 'reboot'
2. problem occurs before shutdown completes, system hangs

additional info:
$uname -a
Linux localhost 2.6.31-gentoo-r10 #1 SMP Sat Mar 6 21:44:44 PST 2010 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz GenuineIntel GNU/Linux
Comment 7 robi 2010-04-14 13:38:29 UTC
Same issue but not with the install-cd. I installed gentoo onto my external usb HDD, Im using it on different machines so I compiled the kernel with genkernel it works fine on my AMD Athlon II PC but I get the same segmentation fault on reboot and halt on my eMachines(acer) e510 Intel Celeron (Single)Core laptop. I get this error just with kernel built with genkernel, custom kernel works fine..I tried to disable SMP support in genkernel --menuconfig but the system hangs on boot while scanning for ahci..I wanted to try this because somewhere in the error report I saw some division error and some strings about SMP and apic..I will try to send the whole error message but have to write down a whole screen full of info because the system hangs

Reproducible: Always

Steps to reproduce:
1. Gentoo installation with kernel built with genkernel <currently 3.4.10.906, but with the older version also>
2. issue halt or reboot
3. Segmentation fault just after remounting file systems

Machine:
eMachines e510
Mobile Intel Core Celeron 560 - em64t
SATA AHCI internal-disk
gentoo installed on WD 1.5T external usb HDD
Comment 8 Hugo 2010-05-10 17:37:12 UTC
Same here for a HP Pavilion dv4000 using install-x86-minimal-20100216.iso. 
Reproducible: Tried 2 times, happened 2 times. I 

Steps to reproduce:
1. Gentoo installation with install-x86-minimal-20100216.iso.
2. issue reboot.
3. Segmentation fault just after remounting file systems

/etc/init.d/reboot.sh: line 7: XXXXX Segmentation fault /sbin/reboot "${opts}" 2> /dev/null
where XXXXX varies, first time: 22819 ; second time: 22744

Additional info:
#uname -a
Comment 9 robi 2010-05-13 08:51:44 UTC
Tried the most recent min install cd and now everything works just fine, so then I copied the kernel config from the new one to my gentoo installed on the external HD, rebuilt the kernel and now that works as well..
Comment 10 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-06-19 13:27:44 UTC
Resolving per last comment and my own experience with recent installcds.