[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Recompiled GENERIC 2.3 kernel causes dmesg, ps, and top to fail



Greetings:

	I run OpenBSD 2.3/i386. top, ps, netstat fail on a recompiled
	GENERIC kernel.

	Before upgrading to OpenBSD 2.5, I wanted to compile a custom
	kernel from OpenBSD 2.3 kernel source:
	MD5 (srcsys.tar.gz) = 71c8b09066c9758baac0ea6df7cb062e

	So, what I did:
	1. Just compile the GENERIC without any changes again
		and saved it as /bsd.GTEST 

	2. The kernel works fine. 
	   a. dmesg fails (I cannot mail you a dmesg output):
		dmesg: kvm_read: kvm_read: Bad address
		
	   b. ps aex is different:
  		PID TT   STAT      TIME COMMAND
    		0 ??  DLs     0:00.01 (swapper)
		
	   c. top reports it cannot allocate memory:
		top: malloc: Cannot allocate memory

	3. Since I did not have free disk space is /usr/src/sys
		I saved the kernel in /home, and linked 		
		it to /usr/src/sys. I do not expect it to affect anything.
		Does it? Please let me know.

	Please let me know what is wrong? Or what I am doing wrong?

	There was a similar question, when a user reported a similar
	error message from top. And the reply was the userland was
	behind the kernel. But I am in 2.3 userland, with a 2.3 kernel.
	I append portions of that response.

	Thanks.

Dinesh

> From: "Todd C. Miller" <Todd_(_dot_)_Miller_(_at_)_courtesan_(_dot_)_com>
> To: Matthew C Smart <mcsmart_(_at_)_engin_(_dot_)_umich_(_dot_)_edu>
> Subject: Re: kvm messages from top 
> Date: Tue, 01 Jun 1999 09:49:52 -0600
> Sounds like you have a kernel with the new swap code, but an older
> userland that doesn't know about the swap changes. 
-- 
CNL OpenBSD Miscellany List <openbsd-misc_(_at_)_lists_(_dot_)_ece_(_dot_)_iisc_(_dot_)_ernet_(_dot_)_in>




Visit your host, monkey.org