bin/130343: top(1): kvm_open: cannot open /proc/42997/mem corrupts screen output

Chris St Denis chris at smartt.com
Fri Aug 28 18:10:06 UTC 2009


The following reply was made to PR bin/130343; it has been noted by GNATS.

From: Chris St Denis <chris at smartt.com>
To: bug-followup at FreeBSD.org, v.haisman at 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 at 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 at carbon.smartt.com:/usr/obj/usr/src/sys/CARBON">cstdenis at 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--


More information about the freebsd-bugs mailing list