From nobody@FreeBSD.org  Wed Mar 20 13:44:47 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id C0D0A37B417
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 20 Mar 2002 13:44:46 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g2KLikq96260;
	Wed, 20 Mar 2002 13:44:46 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200203202144.g2KLikq96260@freefall.freebsd.org>
Date: Wed, 20 Mar 2002 13:44:46 -0800 (PST)
From: Douglas De Couto <decouto@lcs.mit.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: top doesn't work when kernel manually loaded through bootloader
X-Send-Pr-Version: www-1.0

>Number:         36150
>Category:       misc
>Synopsis:       top doesn't work when kernel manually loaded through bootloader
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 20 13:50:01 PST 2002
>Closed-Date:    Wed Mar 20 21:00:23 PST 2002
>Last-Modified:  Wed Mar 20 21:00:23 PST 2002
>Originator:     Douglas De Couto
>Release:        4.5-RELEASE
>Organization:
>Environment:
FreeBSD the-beach.lcs.mit.edu 4.5-RELEASE FreeBSD 4.5-RELEASE #4: Wed Mar 20 15:03:37 EST 2002     root@the-beach.lcs.mit.edu:/usr/src/sys/compile/THE-BEACH  i386
>Description:
when loading the kernel manually in the bootloader, ``top'' doesn't work: the call to kldsym fails.  when the kernel is specified as defualt kernel in /boot/loader.conf, it works
>How-To-Repeat:
reboot, hit space bar to get bootloader prompt
boot /kernel.GENERIC

login, see top fail

----

add ``kernel="/kernel.GENERIC'' to /boot/loader.conf
reboot, do nothing.
login, see top work
>Fix:
running nm on the kernel and using a test program with kldsym, the symbols that kldsym fails on are different from the ones it succeeds on, looking at the letter inthe 2nd column of the nm output.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Wed Mar 20 20:59:37 PST 2002 
State-Changed-Why:  
Expected failure: don't do that. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36150 
>Unformatted:
