ports/57465: kldunload rtc.ko causes a panic; yet it's in rc.d script
Jan Srzednicki
w at expro.pl
Wed Oct 1 16:50:21 UTC 2003
>Number: 57465
>Category: ports
>Synopsis: kldunload rtc.ko causes a panic; yet it's in rc.d script
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Oct 01 09:50:17 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Jan Srzednicki
>Release: FreeBSD 5.1-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD mizantrop 5.1-RELEASE-p2 FreeBSD 5.1-RELEASE-p2 #1: Mon Sep 1 19:57:29 CEST 2003 root at mizantrop:/usr/obj/usr/src/sys/MIZERIA i386
>Description:
ports/emulators/rtc is a real time clock port, which is used by vmware
(and instaled as a dependency for a emulators/vmware3 port).
Along with the module, there comes a rc.d script, namely rtc.sh. It
loads the module on start and unloads it on stop.
The module however, is somewhat broken. After using vmware and
"kldunload rtc.ko" I get a panic. Well, I know kldunloading modules is
always tricky and I should not play with this when I don't have to, but
this kldunload is enabled by default via the port!
The rtc.ko also causes a panic after a reboot when it wasn't
kldunloaded, but this panic is not so severe, as the buffers are flushed
first and the filesystems are synced.
>How-To-Repeat:
Install ports/emulators/rtc and ports/emulators/vmware3.
Configure a vmware guest system, turn it on, play with it, then turn off.
Reboot the system.
>Fix:
First of all, remove the kldunload thing from rc.d script
(ports/emulators/rtc/files/rtc.sh).
VMware says that rtc.ko is only needed for some windows stuff. As the
port is broken (at least on 5.1-R) and not so-needed, maybe it would be
better to remove the dependency (or make it an option, with a warning).
The best fix would be fixing the module itself, of course. ;)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list