Bug 27639 - "bad namelist" when ps/w/
Summary: "bad namelist" when ps/w/
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 4.3-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-05-25 15:50 UTC by bd8ga
Modified: 2001-05-26 11:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bd8ga 2001-05-25 15:50:00 UTC
After I update my system by:
make update;make world
when I run :
chouyu@www:/usr/bin$ w
w: bad namelist
chouyu@www:/usr/bin$ ps
ps: bad namelist

Fix: 

I don't know
How-To-Repeat: I don't know
Comment 1 dwmalone freebsd_committer freebsd_triage 2001-05-25 15:58:29 UTC
State Changed
From-To: open->closed

This is almost always forgetting to upgrade your kernel when you 
upgrade the rest of the world (or vice versa). From the look of 
what you did to upgrade you may have forgotten to build a kernel. 

Have a look at: 

http://www.freebsd.org/doc/en_US.ISO_8859-1/books/faq/troubleshoot.html#NLIST-FAILED 

and check the handbook for details of how to upgrade your kernel.
Comment 2 Peter Pentchev 2001-05-25 16:08:57 UTC
On Fri, May 25, 2001 at 08:02:14AM -0700, dwmalone@FreeBSD.org wrote:
> Synopsis: "bad namelist" when ps/w/
> 
> State-Changed-From-To: open->closed
> State-Changed-By: dwmalone
> State-Changed-When: Fri May 25 07:58:29 PDT 2001
> State-Changed-Why: 
> This is almost always forgetting to upgrade your kernel when you
> upgrade the rest of the world (or vice versa). From the look of
> what you did to upgrade you may have forgotten to build a kernel.
> 
> Have a look at:
> 
> http://www.freebsd.org/doc/en_US.ISO_8859-1/books/faq/troubleshoot.html#NLIST-FAILED
> 
> and check the handbook for details of how to upgrade your kernel.
> 
> http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27639

..or it is possible that the 'make world' has built and installed
a kernel along with the rest, but the submitter has 'forgotten'
to reboot the machine, so that the new kernel takes effect :)

G'luck,
Peter

-- 
You have, of course, just begun reading the sentence that you have just finished reading.
Comment 3 Peter Pentchev 2001-05-26 11:17:10 UTC
On Sat, May 26, 2001 at 10:14:46AM +0800, BD8GA / Chou Yu wrote:
> > This is almost always forgetting to upgrade your kernel when you 
> > upgrade the rest of the world (or vice versa). From the look of 
> > what you did to upgrade you may have forgotten to build a kernel. 
> 
> 
> > ..or it is possible that the 'make world' has built and installed
> > a kernel along with the rest, but the submitter has 'forgotten'
> > to reboot the machine, so that the new kernel takes effect :)
>  
> Sorry for I didn't submit all information.
> 
> I do this step by step again:
> cd /usr/src
> make update
> cd /usr/src/sys/i386/conf
> cp GENERIC HELLOCQ
> vi HELLOCQ
> <delete some line of unuseful hardware configure>
> config HELLOCQ
> cd ../../compile/HELLOCQ
> make clean depend
> make 
> make install
> cd /usr/src
> make world
> reboot
> I got the error message too.

OK, why don't you try something else - the recommended procedure
for rebuilding the FreeBSD userland and kernel since at least 4.1
(as documented in /usr/src/UPDATING):

  cd /usr/src/sys/i386/conf
  cp GENERIC HELLOCQ
  # edit the HELLOCQ file
  cd /usr/src
  make buildworld buildkernel KERNCONF=HELLOCQ
  shutdown now  # drop to single-user mode
  make installkernel installworld KERNCONF=HELLOCQ
  mergemaster
  shutdown -r now  # a bit better than just 'reboot'

..then see if the problem persists.

The drop to single-user mode may be skipped, if there are no important
servers running on your system - some of them might croak when the system
libraries are replaced.  If you want to skip that drop to single-user
mode, then after editing the kernel config file, just do:

  cd /usr/src
  make buildworld buildkernel installkernel installworld KERNCONF=HELLOCQ
  mergemaster
  shutdown -r now

Hope this helps.
  
G'luck,
Peter

-- 
If the meanings of 'true' and 'false' were switched, then this sentence wouldn't be false.