Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101853 - Sometimes loses state during reboot/shutdown
Summary: Sometimes loses state during reboot/shutdown
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-09 05:58 UTC by Neil Darlow
Modified: 2005-11-20 05:09 UTC (History)
1 user (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 Neil Darlow 2005-08-09 05:58:46 UTC
This is a hard bug for me to classify so I've gone for Core System. Please
reassign as necessary.

I'm running gentoo-sources-2.6.12 and udev on x86 architecture but noticed the
problem on earlier 2.6 kernel releases.

During reboot/shutdown, initiated with "shutdown -r/-h now", the system
sometimes loses track of its state.

The following happens:

1) The tar operation during Saving device nodes fails
   Errors that -l is deprecated and --one-file-system should be used and
   can't stat /dev/vcsa7 and /dev/vcs7 are output by tar

2) An "Enter Control-D to continue (root password for maintenance): prompt is
displayed
   Pressing any key produces an unrecognised command error and pressing Enter
then presents a command prompt.

3) Entering characters then presents a message that startup can't continue

The only way out of this, assuming you have acpid running, is to press the Power
Button after which the system enters runlevel 0, the device nodes are saved
correctly and shutdown completes correctly.

I've noticed this problem occur after emerge updates certain system packages
e.g. udev and acpid. It seems to be totally random as to when it happens.

Let me know what specific system information you require to assist with this
one. I don't expect emerge info will help that much.

Regards,
Neil Darlow

Reproducible: Sometimes
Steps to Reproduce:
1.
2.
3.
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2005-08-09 08:25:33 UTC
You're using parellel init scripts setting in /etc/conf.d/rc right? Please
verify you have the following..

# Set to "yes" if you want the rc system to try and start services
# in parallel for a slight speed improvement.

RC_PARALLEL_STARTUP="no"
Comment 2 Neil Darlow 2005-08-09 09:43:13 UTC
(In reply to comment #1)
> You're using parellel init scripts setting in /etc/conf.d/rc right?

No, I'm not.

Regards,
Neil Darlow
Comment 3 Michael Mauch 2005-08-16 11:19:46 UTC
I had the same problem yesterday, and I don't use parallel init scripts neither.
I did have a separate runlevel "later", though (I removed that one now). The
text was:


* Stopping S.M.A.R.T. monitoring daemon ...                  [ ok ]
* Stopping gdm ...                                           [ ok ]
* Saving devices nodes ...
gdm(pam_unix)[12022] : session closed for user elmicha     [ oops ]

 * The "tar" command failed with error:

Semantucs of -l option will change in the future releases.
tar: Please use --one-file-system option instead.
tar: vcsa7: Cannot stat: No such file or directory
tar: vcs7: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors

 * Since this is a critical task, startup cannot continue.

Give root password for maintenance
(or type Control-D to continue):


At that point my login shell was still running - it printed the prompt sometimes
when I pressed a key, and sometimes the "Give root password" was re-printed.

Alt+SysRq+s,u,b worked.
Comment 4 Michael Mauch 2005-08-16 16:03:56 UTC
Some more thoughts: it looks like gdm is still "being killed" while halt.sh runs
(this is an old 700 MHz machine): vcsa7 and vcs7 are still there when fgrep
creates the ${devices_totar}, but shortly afterwards tar can't find these files
anymore.

tar did build /lib/udev-state/devices.tar.bz2, though. According to "info tar",
tar's exit code is not too well defined (0 for ok, anything else for something
else). 

Therefore I will remove that "try" before the tar. If tar does not succeed to
build the device tar ball some day, the system will be somewhat unhappy at the
next boot. But anyways I wouldn't be able to repair the system with sulogin
while the normal tty1 agetty still runs. And I will be going to use
RC_DEVICE_TARBALL="no" in the near future (as soon as I dare to).

Regards...
   Michael
Comment 5 Neil Darlow 2005-08-19 04:33:30 UTC
This problem appears repeatable for me after an update of udev.

I have just updated to udev-068 this morning and, sure enough, the device
tarball creation during reboot failed.

Perhaps GKH should be copied on this bug as he might have something to say on
the situation. In the meantime, I'm going to try running without the device tarball.

Regards,
Neil Darlow
Comment 6 SpanKY gentoo-dev 2005-11-20 05:09:55 UTC
the -l option has been fixed in latest releases