From nobody@FreeBSD.org  Thu Mar 10 15:34:19 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 749DE106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 10 Mar 2011 15:34:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 62F8B8FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 10 Mar 2011 15:34:19 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p2AFYIlh049453
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 10 Mar 2011 15:34:18 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p2AFYIrk049441;
	Thu, 10 Mar 2011 15:34:18 GMT
	(envelope-from nobody)
Message-Id: <201103101534.p2AFYIrk049441@red.freebsd.org>
Date: Thu, 10 Mar 2011 15:34:18 GMT
From: Andreas Longwitz <longwitz@incore.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Spurious error message kvm_nlist: No such file or directory
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         155439
>Category:       kern
>Synopsis:       [libkvm] [patch] Spurious error message kvm_nlist: No such file or directory
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 10 15:40:12 UTC 2011
>Closed-Date:    
>Last-Modified:  Fri Mar 11 04:27:54 UTC 2011
>Originator:     Andreas Longwitz
>Release:        8.1-RELEASE-p1
>Organization:
Data Service Stockelsdorf
>Environment:
FreeBSD pclong.incore 8.1-RELEASE-p1 FreeBSD 8.1-RELEASE-p1 #3: Mon Feb 14 14:47:50 CET 2011     root@pclong.incore:/usr/src/sys/i386/compile/PCLONG  i386
>Description:
The error message kvm_nlist: No such file or directory from libkvm is sometimes spurious.
>How-To-Repeat:
=== root@pclong (ttyv2) -> dconschat
dconschat: kvm_nlist: No such file or directory
[dcons connected]
>Fix:
--- src/lib/libkvm/kvm.c.orig   2010-06-14 04:09:06.000000000 +0200
+++ src/lib/libkvm/kvm.c        2011-01-31 18:16:03.000000000 +0100
@@ -487,7 +487,7 @@
         * also fill internal error buffer.
         */
        error = ((p - nl) - nvalid);
-       if (error)
+       if (error && initialize)
                _kvm_syserr(kd, kd->program, "kvm_nlist");
        return (error);
 }

>Release-Note:
>Audit-Trail:
>Unformatted:
