Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49665 - /etc/init.d/clock fails on shutdown, giving debug output
Summary: /etc/init.d/clock fails on shutdown, giving debug output
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-01 17:48 UTC by David Solbach
Modified: 2004-05-08 16:01 UTC (History)
0 users

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 David Solbach 2004-05-01 17:48:40 UTC
Everytime I shut down my System I see this debug-message originating from /etc/init.d/clock

* Syncing hardware clock to system clock [UTC]...
Debug: sleeping function called from invalid context at include/linux/rwsem.h:43in_atomic():0, irqs_disabled():1
Call Trace:
[<c0115ab6>] do_page_fault+0x0/0x53a
[<c0119aec>] __might_sleep+0xb2/0xd3
[<c0115d2b>] do_page_fault+0x275/0x53a
[<c0117d18>] scheduler_tick+0x3f/0x616
[<c01250b7>] update_process_times+0x45/0x51
[<c0206e92>] copy_to_user+0x52/0x62
[<c01203bb>] sys_gettimeofday+0x3b/0x7f
[<c0115ab6>] do_page_fault+0x0/0x53a
[<c0104b05>] error_code+0x2d/0x38
	  

Reproducible: Always
Steps to Reproduce:
1./etc/init.d/clock stop

Actual Results:  
Debug message displayed.

Expected Results:  
reporting [OK]

the System is a DELL Latitude c600, if you need more info, please contact.


david@bine david $ emerge info
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.6-rc1)
=================================================================
System uname: 2.6.6-rc1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"           
AUTOCLEAN="yes"                 
CFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.
2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http:
//ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp6.uni-erlangen.
de/pub/mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb bonobo crypt cups encode esd foomaticdb gdbm gif 
gnome gphoto2 gpm gtk gtk2 guile imlib java jpeg kde libg++ libwww mad mikmod 
motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt 
quicktime readline sdl slang spell ssl svga tcltk tcpd tk truetype x86 xml2 xmms 
xv zlib"
Comment 1 Andrew Roberts 2004-05-01 18:14:58 UTC
You could try 'hwclock --debug --systohc', which might be helpful.
Have you got RTC support in your kernel?
Comment 2 David Solbach 2004-05-02 02:47:02 UTC
I activated these kernel-option:

<*> Enhanced Real Time Clock Support 

Now everything works fine. Guess it's no bug then. Thanks.


In case u need it, here's the Output before adding rtc-support:

root@bine init.d # hwclock --debug --systohc
hwclock from util-linux-2.12
hwclock: Open of /dev/rtc failed, errno=2: No such file or directory.
Using direct I/O instructions to ISA clock.
Last drift adjustment done at 1083457806 seconds after 1969
Last calibration done at 1083457806 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2004/05/02 09:22:21
Hw clock time : 2004/05/02 09:22:21 = 1083489741 seconds since 1969
Time elapsed since reference time has been 0.402402 seconds.
Delaying further to reach the next full second.
Setting Hardware Clock to 09:22:21 = 1083489741 seconds since 1969
Not adjusting drift factor because it has been less than a day since the last calibration.
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-05-08 16:01:59 UTC
Closing as FIXED as per comment #2. Thanks!