Hello gentlemen, I've discovered an interesting failure on some machine running 4.7. It's so weird so I'd very unlikely notice it at all, but thanks to top(1): when launched, instead of displaying some useful figures it exits with an error: "top: nlist failed".>From quick look it appears that kvm_nlist() returns NULL fornlst[0].n_type. Strange, ignoring; next exit point is: "top: kvm_read for _ccpu: Bad address" Something bad happens: kernel virtual memory symbol table becomes unreadable, so kvm calls fail... But system runs all right, has completed buildworld today... Source of the problem is objcopy(1), i.e. wiping symbols from kernel to make it more compact. This shouldn't be a problem, but libkvm holds another point of view... --- Regards, Rhett __________________________________________________ Yahoo! Plus For a better Internet experience http://www.yahoo.co.uk/btoffer
On Thu, Apr 24, 2003 at 02:40:37AM +0100, RMH wrote:> Hello gentlemen, > > I've discovered an interesting failure on some machine running > 4.7. It's so weird so I'd very unlikely notice it at all, but > thanks to top(1): when launched, instead of displaying some > useful figures it exits with an error: "top: nlist failed".It's in the FAQ: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/troubleshoot.html#NLIST-FAILED -- Jonathan Chen <jonc@chen.org.nz> ---------------------------------------------------------------------- "If you wish your merit to be known, acknowledge that of other people"
typical 'kernel and world out of sync', I'd guess. Regards, Holger Kipp RMH (rmhlldr@yahoo.co.uk) wrote:> > >Hello gentlemen, > >I've discovered an interesting failure on some machine running >4.7. It's so weird so I'd very unlikely notice it at all, but >thanks to top(1): when launched, instead of displaying some >useful figures it exits with an error: "top: nlist failed".
FAQ doesn't solve the problem, because: a) both kernel and world are from 4.7-RC1, i.e synchronised; b) kernel was loaded in usual way, through /boot/loader. The problem is, that kernel _without_symbols_ doesn't work with libkvm, but otherwise does fine. Why? Also interesting that this doesn't happen on -CURRENT. Is it a bug of libkvm? Can anyone reproduce this issue on -STABLE or 4.8-RELEASE? --- Regards, Rhett>It's in the FAQ: > > >http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/troubleshoot.html#NLIST-FAILED > >-- >Jonathan Chen <jonc at chen.org.nz> >---------------------------------------------------------------------- >"If you wish your merit to be known, acknowledge that of other people">typical 'kernel and world out of sync', I'd guess. > >Regards, >Holger Kipp__________________________________________________ Yahoo! Plus For a better Internet experience http://www.yahoo.co.uk/btoffer