From nobody@FreeBSD.org  Wed Oct 10 01:30:41 2001
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 B0E8837B403
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 10 Oct 2001 01:30:40 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f9A8UeY80531;
	Wed, 10 Oct 2001 01:30:40 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200110100830.f9A8UeY80531@freefall.freebsd.org>
Date: Wed, 10 Oct 2001 01:30:40 -0700 (PDT)
From: "Serg O. Malakhov" <serg@servocomp.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Program, like top,  is used libkvm doesn't work
X-Send-Pr-Version: www-1.0

>Number:         31190
>Category:       bin
>Synopsis:       Program, like top,  is used libkvm doesn't work
>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 Oct 10 01:40:01 PDT 2001
>Closed-Date:    Wed Oct 10 03:40:16 PDT 2001
>Last-Modified:  Wed Oct 10 03:43:44 PDT 2001
>Originator:     Serg O. Malakhov
>Release:        4.4 Stable
>Organization:
Servocomp Inc.
>Environment:
FreeBSD camel.servocomp.ru 4.3-RELEASE FreeBSD 4.4-RELEASE #0: Wed Sep 26 15:34:56 MSD 2001
  root@camel.servocomp.ru:/usr/src/sys/compile/SERG  i386
>Description:
After upgrade system to 4.4 and nothing else, program like top and systat
repot error "nlist failed"
In kdump we can see the messeges:
CALL  kldsym(0,0x1,0xbfbff834)
RET   kldsym -1 errno 2 No such file or directory

>How-To-Repeat:
make cvsup for src and build kernel and all sources, reboot, and just type after login top
>Fix:

>Release-Note:
>Audit-Trail:

From: Peter Pentchev <roam@ringlet.net>
To: "Serg O. Malakhov" <serg@servocomp.ru>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/31190: Program, like top,  is used libkvm doesn't work
Date: Wed, 10 Oct 2001 11:44:00 +0300

 On Wed, Oct 10, 2001 at 01:30:40AM -0700, Serg O. Malakhov wrote:
 > 
 > >Number:         31190
 > >Category:       bin
 > >Synopsis:       Program, like top,  is used libkvm doesn't work
 > >Originator:     Serg O. Malakhov
 > >Release:        4.4 Stable
 > >Organization:
 > Servocomp Inc.
 > >Environment:
 > FreeBSD camel.servocomp.ru 4.3-RELEASE FreeBSD 4.4-RELEASE #0: Wed Sep 26 15:34:56 MSD 2001
 >   root@camel.servocomp.ru:/usr/src/sys/compile/SERG  i386
 > >Description:
 > After upgrade system to 4.4 and nothing else, program like top and systat
 > repot error "nlist failed"
 > In kdump we can see the messeges:
 > CALL  kldsym(0,0x1,0xbfbff834)
 > RET   kldsym -1 errno 2 No such file or directory
 > 
 > >How-To-Repeat:
 > make cvsup for src and build kernel and all sources, reboot, and just type after login top
 
 What were the exact commands you used to 'build kernel and all sources'?
 Did you run 'make world', or did you use 'make buildworld buildkernel'?
 If you did it the 'buildworld' way, did you run both 'make installkernel'
 and 'make installworld' afterwards?
 
 What is the output of 'ls -l /usr/bin/top'?
 
 G'luck,
 Peter
 
 -- 
 Thit sentence is not self-referential because "thit" is not a word.

From: Peter Pentchev <roam@ringlet.net>
To: Serg <serg@servocomp.ru>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/31190: Program, like top,  is used libkvm doesn't work
Date: Wed, 10 Oct 2001 12:02:47 +0300

 On Wed, Oct 10, 2001 at 12:52:00PM +0400, Serg wrote:
 > Peter Pentchev wrote:
 > 
 > >On Wed, Oct 10, 2001 at 01:30:40AM -0700, Serg O. Malakhov wrote:
 > >>>Environment:
 > >>>
 > >>FreeBSD camel.servocomp.ru 4.3-RELEASE FreeBSD 4.4-RELEASE #0: Wed Sep 26 15:34:56 MSD 2001
 [snip]
 > >>make cvsup for src and build kernel and all sources, reboot, and just type after login top
 > >>
 > >
 > >What were the exact commands you used to 'build kernel and all sources'?
 > >Did you run 'make world', or did you use 'make buildworld buildkernel'?
 > >If you did it the 'buildworld' way, did you run both 'make installkernel'
 > >and 'make installworld' afterwards?
 > >
 > Sure
 > 
 > >
 > >
 > >What is the output of 'ls -l /usr/bin/top'?
 > >
 > -r-xr-sr-x  1 root  kmem  32456  9 okt 21:36 /usr/bin/top
 
 OK, now for a really stupid question: are you sure you are running
 your newly compiled kernel?  What does 'uname -a' say?  If it says
 the same as in your PR (quoted above, saying 4.4-RELEASE #0 Sep 26),
 you are *not* running your compiled kernel, but the default 4.4-RELEASE
 kernel.
 
 G'luck,
 Peter
 
 -- 
 This sentence is false.

From: Peter Pentchev <roam@ringlet.net>
To: Serg <serg@servocomp.ru>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/31190: Program, like top,  is used libkvm doesn't work
Date: Wed, 10 Oct 2001 12:36:13 +0300

 On Wed, Oct 10, 2001 at 01:14:55PM +0400, Serg wrote:
 > Peter Pentchev wrote:
 > 
 > >On Wed, Oct 10, 2001 at 12:52:00PM +0400, Serg wrote:
 > >
 > >>Peter Pentchev wrote:
 > >>
 > >>>On Wed, Oct 10, 2001 at 01:30:40AM -0700, Serg O. Malakhov wrote:
 > >>>
 > >>>>>Environment:
 > >>>>>
 > >>>>FreeBSD camel.servocomp.ru 4.3-RELEASE FreeBSD 4.4-RELEASE #0: Wed Sep 26 15:34:56 MSD 2001
 > >>>>
 > >[snip]
 > >
 > >>>>make cvsup for src and build kernel and all sources, reboot, and just type after login top
 > >>>>
 > >>>What were the exact commands you used to 'build kernel and all sources'?
 > >>>Did you run 'make world', or did you use 'make buildworld buildkernel'?
 > >>>If you did it the 'buildworld' way, did you run both 'make installkernel'
 > >>>and 'make installworld' afterwards?
 > >>>
 > >>Sure
 > >>
 > >>>
 > >>>What is the output of 'ls -l /usr/bin/top'?
 > >>>
 > >>-r-xr-sr-x  1 root  kmem  32456  9 okt 21:36 /usr/bin/top
 > >>
 > >
 > >OK, now for a really stupid question: are you sure you are running
 > >your newly compiled kernel?  What does 'uname -a' say?  If it says
 > >the same as in your PR (quoted above, saying 4.4-RELEASE #0 Sep 26),
 > >you are *not* running your compiled kernel, but the default 4.4-RELEASE
 > >kernel.
 > >
 > No. It's ok
 > I loaded various kernel, with patch of des@freebsd.org for linuxprocfs 
 > and without.
 > 
 > I've got mail from Alexey Neyman. He wrote:
 > 
 > I encountered this when I started the kernel directly, bypassing the loader.
 > (I used /boot.config file to do this). Since I switched back to starting 
 > /boot/loader instead of /kernel, top & family works fine.
 > 
 >
 > I done all this and top works properly for now.
 > I don't understend why and can I load without the loader.
 
 Ahh... now I remember that I had this problem when booting a diskless
 station using Etherboot, too.
 
 Well, the loader's task is to load the kernel binary (the kernel is
 almost a normal ELF executable file) into memory, then fix up some
 symbols, load the necessary modules (just more ELF objects) and link
 the whole together.  I had the nlist problem too, when I tried to bypass
 the loader; first I worked around it by removing the 'static' keyword
 before a couple of variable definitions in kern_{clock,fork,malloc,synch}.c,
 vfs_bio.c and vm_zone.c - that made top(1) work.  Then, I just started
 actually loading loader(8) before the kernel and letting it do its job :)
 
 So.. now that you are not bypassing loader(8), things work for you, right?
 Can this PR be closed?
 
 G'luck,
 Peter
 
 -- 
 This sentence was in the past tense.
State-Changed-From-To: open->closed 
State-Changed-By: roam 
State-Changed-When: Wed Oct 10 03:40:16 PDT 2001 
State-Changed-Why:  
The problem was due to booting the kernel directly, bypassing loader(8). 
This PR is thus a duplicate of kern/17422. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31190 
>Unformatted:
