From nobody@FreeBSD.org  Fri Mar 31 05:19:18 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
	by hub.freebsd.org (Postfix) with ESMTP id 0146137B6FD
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 31 Mar 2000 05:19:18 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.9.3/8.9.2) id FAA37313;
	Fri, 31 Mar 2000 05:19:17 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Message-Id: <200003311319.FAA37313@freefall.freebsd.org>
Date: Fri, 31 Mar 2000 05:19:17 -0800 (PST)
From: titus@2edc.com
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: kvm_nlist does not work properly when btx loader is skipped at boot
X-Send-Pr-Version: www-1.0

>Number:         17711
>Category:       misc
>Synopsis:       kvm_nlist does not work properly when btx loader is skipped at boot
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 31 05:20:01 PST 2000
>Closed-Date:    Fri Mar 31 05:33:00 PST 2000
>Last-Modified:  Fri Mar 31 05:36:50 PST 2000
>Originator:     Titus Manea
>Release:        4.0-RELEASE
>Organization:
Eastern Digital
>Environment:
FreeBSD titus.edc.dnttm.ro 4.0-RELEASE FreeBSD 4.0-RELEASE #0: Wed Mar 29 13:28:24 GMT 2000     root@:/usr/src/sys/compile/kick4  i386

>Description:
If the system is booted without the 3rd stage (typing kernel at first boot prompt) kvm_nlist is not working properly, so top/vmstat/swapinfo and other programs do not work;
I traced the problem to the kldsym syscall witch is called from kvm_nlist in libkvm.so.2; Some symbols (not all) are not resolved;

If the system is booted thru the btx loader  all works ok

>How-To-Repeat:
boot without btxload (type /kernel at the boot prompt)
>Fix:
dont boot without btx load if possible;

for my diskless workstation that boots always without btx i hacked libkvm to use the 3.x style kvm_kernel.db for resolving symbols

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Fri Mar 31 05:33:00 PST 2000 
State-Changed-Why:  
Duplicate of PR 17422. 
>Unformatted:
