From nobody@FreeBSD.org  Sat Jan 10 09:43:18 2009
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 64328106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 10 Jan 2009 09:43:18 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 530A38FC1E
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 10 Jan 2009 09:43:18 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n0A9hH30056488
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 10 Jan 2009 09:43:17 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n0A9hHT7056487;
	Sat, 10 Jan 2009 09:43:17 GMT
	(envelope-from nobody)
Message-Id: <200901100943.n0A9hHT7056487@www.freebsd.org>
Date: Sat, 10 Jan 2009 09:43:17 GMT
From: Vaclav Haisman <v.haisman@sh.cvut.cz>
To: freebsd-gnats-submit@FreeBSD.org
Subject: kvm_open: cannot open /proc/42997/mem corrupts top screen/output
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         130343
>Category:       bin
>Synopsis:       top(1): kvm_open: cannot open /proc/42997/mem corrupts screen output
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 10 09:50:01 UTC 2009
>Closed-Date:    
>Last-Modified:  Wed Jun  8 15:10:08 UTC 2011
>Originator:     Vaclav Haisman
>Release:        7.1
>Organization:
SU SH CTU
>Environment:
FreeBSD shelldell.sh.cvut.cz 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Fri Dec 26 19:39:12 CET 2008     root@shelldell.sh.cvut.cz:/usr/obj/usr/src/sys/SHELLDELL  amd64
>Description:
I am running buildworld and buildkernel with -j9 option to make and I am watching the top while it is building. Quite often the top screen gets corrupted with "kvm_open: cannot open /proc/42997/mem" or similar. I am running the top as root so it should not be a permission problem. The top says "Top version 3.5beta12".


>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: "Garrett Cooper" <yanefbsd@gmail.com>
To: "Vaclav Haisman" <v.haisman@sh.cvut.cz>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/130343: kvm_open: cannot open /proc/42997/mem corrupts top screen/output
Date: Sat, 10 Jan 2009 07:16:08 -0800

 Vaclav,
     Could you please complete your upgrade to 7.1-RELEASE or RELENG_7
 (if you use cvsup / csup / svn) and let us know whether or not this
 still continues?
     Also, how are you running FreeBSD when you're trying to do
 buildworld? Singleuser or multiuser? If multiuser, via serial, via a
 regular terminal, X11 based terminal (xterm, Gterminal, Kterm, etc)?
 Thanks,
 -Garrett

From: =?UTF-8?B?VsOhY2xhdiBIYWlzbWFu?= <v.haisman@sh.cvut.cz>
To: Garrett Cooper <yanefbsd@gmail.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/130343: kvm_open: cannot open /proc/42997/mem corrupts top
 screen/output
Date: Sat, 10 Jan 2009 20:54:31 +0100

 Garrett Cooper wrote, On 10.1.2009 16:16:
 > Vaclav,
 >     Could you please complete your upgrade to 7.1-RELEASE or RELENG_7
 > (if you use cvsup / csup / svn) and let us know whether or not this
 > still continues?
 After I have installed the built world and kernel I was not able to reproduce
 it again.
 
 >     Also, how are you running FreeBSD when you're trying to do
 > buildworld? Singleuser or multiuser? If multiuser, via serial, via a
 > regular terminal, X11 based terminal (xterm, Gterminal, Kterm, etc)?
 I am running PuTTY and screen in multiuser.
 
 > Thanks,
 > -Garrett
 
 --
 VH
 

From: Chris St Denis <chris@smartt.com>
To: bug-followup@FreeBSD.org, v.haisman@sh.cvut.cz
Cc:  
Subject: Re: bin/130343: top(1): kvm_open: cannot open /proc/42997/mem corrupts
 screen output
Date: Fri, 28 Aug 2009 10:47:15 -0700

 This is a multi-part message in MIME format.
 --------------020908090400030508080005
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 I am also experiencing this bug in 7.2
 
     carbon# uname -a
     FreeBSD carbon.smartt.com 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #9:
     Tue Jul  7 15:14:46 PDT 2009    
     cstdenis@carbon.smartt.com:/usr/obj/usr/src/sys/CARBON  i386
 
 Top header for other misc system status/info:
 
     last pid: 99255;  load averages:  0.28,  0.44, 0.41                 
     up 48+09:22:01  10:44:21
     243 processes: 1 running, 242 sleeping
     CPU:  0.5% user,  0.0% nice,  0.6% system,  0.1% interrupt, 98.7% idle
     Mem: 366M Active, 2235M Inact, 261M Wired, 125M Cache, 112M Buf, 21M
     Free
     Swap: 512M Total, 297M Used, 214M Free, 58% Inuse
 
 
 I setup top to run every minute from crontab to diagnose an unrelated 
 problem.
 
     carbon# crontab -l
     <snip>
     *    * * * *   top -a -I -j -t -n -osize >> /var/log/top.log ; echo
     '-----------------------------------------------------------------------------------------------------------------------------'
      >> /var/log/top.log
 
 and I'm getting emails containing "kvm_open: cannot open 
 /proc/<number>/mem".
 
 The error is not generated every run. It runs every minute, and the last 
 3 errors I have are 10:18, 10:27, 10:32 (current time, 10:47)
 
 -- 
 Chris St Denis
 Programmer
 SmarttNet (www.smartt.com)
 Ph: 604-473-9700 Ext. 200
 -------------------------------------------
 "Smart Internet Solutions For Businesses" 
 
 
 --------------020908090400030508080005
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
 <head>
 </head>
 <body bgcolor="#ffffff" text="#000000">
 I am also experiencing this bug in 7.2<br>
 <blockquote>carbon# uname -a<br>
 FreeBSD carbon.smartt.com 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #9: Tue
 Jul&nbsp; 7 15:14:46 PDT 2009&nbsp;&nbsp;&nbsp;&nbsp;
 <a class="moz-txt-link-abbreviated" href="mailto:cstdenis@carbon.smartt.com:/usr/obj/usr/src/sys/CARBON">cstdenis@carbon.smartt.com:/usr/obj/usr/src/sys/CARBON</a>&nbsp; i386<br>
 </blockquote>
 Top header for other misc system status/info:<br>
 <blockquote><tt>last pid: 99255;&nbsp; load averages:&nbsp; 0.28,&nbsp; 0.44,
 0.41&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; up 48+09:22:01&nbsp; 10:44:21<br>
 243 processes: 1 running, 242 sleeping<br>
 CPU:&nbsp; 0.5% user,&nbsp; 0.0% nice,&nbsp; 0.6% system,&nbsp; 0.1% interrupt, 98.7% idle<br>
 Mem: 366M Active, 2235M Inact, 261M Wired, 125M Cache, 112M Buf, 21M
 Free<br>
 Swap: 512M Total, 297M Used, 214M Free, 58% Inuse<br>
   </tt></blockquote>
 <br>
 I setup top to run every minute from crontab to diagnose an unrelated
 problem.<br>
 <blockquote>carbon# crontab -l<br>
 &lt;snip&gt;<br>
 *&nbsp;&nbsp;&nbsp; * * * *&nbsp;&nbsp; top -a -I -j -t -n -osize &gt;&gt; /var/log/top.log ;
 echo
 '-----------------------------------------------------------------------------------------------------------------------------'
 &gt;&gt; /var/log/top.log<br>
 </blockquote>
 and I'm getting emails containing "kvm_open: cannot open
 /proc/&lt;number&gt;/mem". <br>
 <br>
 The error is not generated every run. It runs every minute, and the
 last 3 errors I have are 10:18, 10:27, 10:32 (current time, 10:47)<br>
 <pre class="moz-signature" cols="72">-- 
 Chris St Denis
 Programmer
 SmarttNet (<a class="moz-txt-link-abbreviated" href="http://www.smartt.com">www.smartt.com</a>)
 Ph: 604-473-9700 Ext. 200
 -------------------------------------------
 "Smart Internet Solutions For Businesses" </pre>
 </body>
 </html>
 
 --------------020908090400030508080005--

From: Bruce Cran <bruce@cran.org.uk>
To: bug-followup@FreeBSD.org, v.haisman@sh.cvut.cz
Cc:  
Subject: Re: bin/130343: top(1): kvm_open: cannot open /proc/42997/mem
 corrupts screen output
Date: Thu, 3 Sep 2009 22:16:05 +0100

 I'm also seeing something similar on 8.0-BETA3 to do with libkvm
 trying to open /proc/%d/mem (/proc isn't mounted and
 kern.ps_arg_cache_limit is 256):
 
 console-kit-daemon[1286]: WARNING: kvm_getenvv failed: cannot
 open /proc/17935/mem
 
 -- 
 Bruce

From: Thomas Steen Rasmussen <thomas@gibfest.dk>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/130343: top(1): kvm_open: cannot open /proc/42997/mem corrupts
 screen output
Date: Sun, 20 Mar 2011 13:55:58 +0100

 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
  
 Hello,
 
 I am running amd64 8.1-REL, and running the command:
 
 $ freebsd-update upgrade -r 8.2-RELEASE
 
 and watching top (and I pressed 'a' after starting top),
 and I saw quite a few of these errors.
 
 Just to let you know that the problem has not been solved.
 
 Best regards
 
 Thomas Steen Rasmussen
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
  
 iEYEARECAAYFAk2F+V4ACgkQGjEBQafC9MDIMQCfTao27vN4VNoelVtYJUdxwI4g
 pZQAn3V5nEEi5oIW0TQ6WMzgigxh7f6L
 =+uWT
 -----END PGP SIGNATURE-----
 

From: Alexander Best <arundel@freebsd.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: bin/130343: top(1): kvm_open: cannot open /proc/42997/mem corrupts screen output
Date: Wed, 8 Jun 2011 15:01:42 +0000

 please note that this bug still exists in FreeBSD HEAD r222833 and has not
 been resolved, yet.
 
 cheers.
 alex
 
 -- 
 a13x
>Unformatted:
