Preston Smith wrote:
On Thu, Mar 27, 2003 at 01:31:36AM -0500, Lester Vecsey ([EMAIL PROTECTED]) 
wrote:

I compiled gmond on FreeBSD 4.4-RELEASE and I'm running it with a non-root
account.. /dev/mem on the machine isn't accessible from this account, and so
theres a segfault on kvm_open when I run gmond. For now I just cleaned out
the swap function that calls kvm_open in gmond, there were a couple of them.
I tried './configure --without-kvm' but it didn't seem to leave the config.h
set properly, which has a HAVE_LIBKVM define.. additionally the gmond
sources don't use that define around the functions that I had to strip out.

I don't have a patch for this but I thought I'd submit this info and see if
others on FreeBSD have encountered something similar.


Ugh, perhaps I should check the return value of kvm_open so kvm_getswapinfo doesn't try to read a NULL descriptor. Attached is a patch, can you see if it fixes your problem? (It should apply to any
 version, it's only to freebsd.c)

I dimly remember attempting to put in an autoconf test for libkvm. I don't remember if it ever worked (in reference to it, the word "abandoned" floats in my head). I was pretty sure I didn't submit that particular patch but maybe it snuck in somewhere on one of my Solaris patches...


Reply via email to