Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101110 - udev-064-r1 hangs system on boot at "Setting system clock"
Summary: udev-064-r1 hangs system on boot at "Setting system clock"
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
: 103762 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-02 10:10 UTC by Philip Kovacs
Modified: 2005-08-30 12:10 UTC (History)
1 user (show)

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


Attachments
strace.out of clock start (strace.out,137.63 KB, text/plain)
2005-08-08 14:05 UTC, Philip Kovacs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Kovacs 2005-08-02 10:10:35 UTC
Setting system clock to hardware clock [Local TIme] ...

hanging system on upgrade to 064-r1.  no additional info as i have a dead box now.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Philip Kovacs 2005-08-02 12:04:50 UTC
after using the livecd to boot and downgrading to udev-063, my system boots
again.  i am masking off >=064 locally.  emerge info pasted below/
------------------------------------------------------------------------------
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r0, 2.6.12-gentoo-r7 i686)
=================================================================
System uname: 2.6.12-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://gentoo.mirrors.pair.com
http://gentoo.ccccom.com"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X alsa avi cdr cups divx4linux dvd dvdr encode fbcon gif gpm gtk gtk2
jpeg mad mikmod mmx mpeg ncurses nls nptl oggvorbis opengl oss perl png python
readline sdl slang spell sse ssl tcpd truetype unicode xml2 xprint xv xvid zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS
Comment 2 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-08-02 17:02:11 UTC
And 064 works?

Comment 3 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-08-02 17:02:44 UTC
Sure you merged the new config file properly for 064-r1?

Also, 065 is now out, try that.
Comment 4 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-08-02 17:03:07 UTC
Let me know if 065 works.
Comment 5 Philip Kovacs 2005-08-02 17:27:08 UTC
i never tried 064.  as far as the configs are concerned i alway replace the _id
files and the 50-udev.rules with the new ones.   i'm hestitant to test this
unless you feel you really found somethuing.   booting from a cd and chroot'ing
is a pain.
Comment 6 Philip Kovacs 2005-08-03 11:24:07 UTC
i just installed 065 and carefully replaced the _id and rule files.  My report
is the same.  My box inits through the filesystem checks, mounting local file
systems, activation of more swap and then it hangs on:

* Setting system clock to hardware clock [Local Time] ...

I should mention, since I believe that the release note state you are now using
tmpfs, that my /tmp partitiion is a memory (swap) partition.  I don't know if
that matters, but I am mentioning it.  Is it possible that there are now
implicit restrictions on mounting partitions to swap?  Anyway, time to dust off
the LIVECD again and downgrade to udev-063.

Phil
 
Comment 7 Philip Kovacs 2005-08-03 11:53:14 UTC
specifically these lines in my /etc/fstab may be of interest:

none          /dev/shm           tmpfs        size=32M,nosuid        0 0
none          /tmp               tmpfs        size=256M,nosuid       0 0
Comment 8 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-08-04 15:45:19 UTC
I don't see anything odd in the clock setting logic.

I see /dev/tty being opened, and /dev/urandom, and /dev/null.

What is the permissions that are set on /dev/tty?

It should be:
crw-rw-rw-  1 root tty 5, 0 Aug  4 15:39 /dev/tty
Comment 9 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-08-04 15:45:58 UTC
And no, the tmpfs stuff should not matter (didn't change anything there anyway.)
Comment 10 Philip Kovacs 2005-08-04 16:41:33 UTC
crw-rw-rw-  1 root tty 5, 0 Aug  4 15:39 /dev/tty

is indeed what i see here now, but i am back at 063.  it tried several tests,
including using kernels 2.6.12-gentoo-r6 and r7 and also not using any local
rules at all.  as far as the clock is concerned, i use the real-time clock
driver compiled into the kernel. i alter the rtc settings in my /etc/sysctl.conf
as follows:

# for mplayer, tvtime. etc.
dev.rtc.max-user-freq = 1024

my /etc/conf.d/clock differs from the defaults only in this line:

CLOCK="local"

Finally I note that "clock" is in the boot run-level.

All of the above is really not unusual I would think.

Phil
Comment 11 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-08-08 11:27:08 UTC
Can you run strace on the clock startup?

Do as root:
  /etc/init.d/clock stop

  strace -o /tmp/strace.out /etc/init.d/clock/start

and then attach the /tmp/strace.out file to this bug?
Comment 12 Philip Kovacs 2005-08-08 14:05:24 UTC
Created attachment 65468 [details]
strace.out of clock start

here it is.
Comment 13 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-08-08 17:10:36 UTC
In that strace, it does:

read(3, "root=/dev/hda3 hdc=ide-cd hdd=id"..., 128) = 128
read(3, "LE=/dev/vc/1\n", 128)          = 13


What file is this that is specifying /dev/vc/1 ?  Can you grep around /etc
to find it?  That might help in tracking down what is going wrong.
Comment 14 Philip Kovacs 2005-08-08 19:09:56 UTC
It's my /boot/grub/grub.conf kernel line:

kernel /kernel-2.6.12-gentoo-r7 root=/dev/hda3 hdc=ide-cd hdd=ide-scsi
video=vesafb:ywrap,mtrr,1280x1024-16@60 splash=verbose,fadein,theme:emergence
quiet CONSOLE=/dev/vc/1

I used CONSOLE=/dev/vc/1 instead of /dev/tty1 because tty1 is a symlink to vc/1.
Comment 15 Philip Kovacs 2005-08-08 19:14:42 UTC
or, it's my inittab:

etc # grep vc inittab
c1:12345:respawn:/sbin/agetty 38400 vc/1 linux
c2:12345:respawn:/sbin/agetty 38400 vc/2 linux
c3:12345:respawn:/sbin/agetty 38400 vc/3 linux
c4:12345:respawn:/sbin/agetty 38400 vc/4 linux
c5:12345:respawn:/sbin/agetty 38400 vc/5 linux
c6:12345:respawn:/sbin/agetty 38400 vc/6 linux

I changed the terminals to vc/* so that /var/log/wtmp entries properly report
users on my framebuffer consoles.   Otherwise 'w' does not report things correctly.

Comment 16 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-08-11 11:35:33 UTC
tty1 is no longer a symlink to vc/1, as that is gone with the 065 release.

So, can you change both of those files to be just tty1?
Comment 17 Philip Kovacs 2005-08-11 12:53:05 UTC
Are you telling me that in 065 my framebuffer devices will be /dev/ttyX and not
/dev/vc/X?  I don't follow the logic of your statement that "tty1 is no longer a
symlink to vc/1," therefore I should change my tty's to ttyX.   I want my
getty's to listen on the devices that match the utmp entries.  If you are
telling me that my framebuffer devices are going to be /dev/ttyX and logged as
such to utmp, then I understand.  Otherwise I am puzzled by your statement as it
has no connection to the information I provided above.
Comment 18 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-08-11 16:28:09 UTC
Yes, inittab should look like:

c1:2345:respawn:/sbin/agetty 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
c6:2345:respawn:/sbin/agetty 38400 tty6 linux

The /dev/vc/ directory is now gone, as that was a devfs name.  We have switched
back to LSB names as devfs is now gone from the kernel.
Comment 19 Philip Kovacs 2005-08-11 17:07:45 UTC
btw it looks like /etc/securetty from sys-apps/shadow is loaded up with vc/X
references.
Comment 20 Philip Kovacs 2005-08-15 19:19:31 UTC
i skipped ahead to udev-067.  boots ok now after changing to CONSOLE=/dev/tty1
on my grub kernel line and changing my /etc/inittab to ttyX entries instead of
vc/X.  Using no local rules file, I notice none of the cd/dvd symlinks were
created.  Are you aware of this or do you need a new bug report?   Close this
one out.  It's resolved.

Phil
Comment 21 Philip Kovacs 2005-08-15 20:02:14 UTC
bug #102669 filed regarding no cd/dvd symlinks created at boot
Comment 22 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-08-15 23:08:42 UTC
Yeah, it was probably the inittab entries, thanks for testing this.
Comment 23 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-08-30 12:10:44 UTC
*** Bug 103762 has been marked as a duplicate of this bug. ***