zhengzheng / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

FreeBSD: kwm_getswapinfo(3) called without calling kvm_open(3) #344

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In psutil/_psutil_bsd.c, kvm_getswapinfo(3) is called without calling 
kvm_open(3) before, to get a valid descriptor. The values returned by 
kvm_getswapinfo(3) are useless in this case.

What version of psutil are you using? What Python version?
psutil-0.6.1
python 2.7.3

On what operating system? Is it 32bit or 64bit version?
FreeBSD 9.0-RELEASE-p3 amd64
(I will test on FreeBSD 10-CURRENT amd64 when I get the chance)

Original issue reported on code.google.com by dumbbou...@gmail.com on 11 Dec 2012 at 5:19

Attachments:

GoogleCodeExporter commented 8 years ago
The original patch comes from Jan Beich <jbeich@tormail.org>. See the following 
PR:
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports%2F172802

Original comment by dumbbou...@gmail.com on 11 Dec 2012 at 5:20

GoogleCodeExporter commented 8 years ago
I confirm this fixes the problem with FreeBSD 10-CURRENT too.

Original comment by dumbbou...@gmail.com on 11 Dec 2012 at 8:01

GoogleCodeExporter commented 8 years ago
Fixed in r1550.
Thanks a lot.

Original comment by g.rodola on 11 Dec 2012 at 11:43

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Updated csets after the SVN -> Mercurial migration:
r1550 == revision 67bb7e248c5b

Original comment by g.rodola on 2 Mar 2013 at 12:14

GoogleCodeExporter commented 8 years ago

Original comment by g.rodola on 8 Apr 2013 at 1:21

GoogleCodeExporter commented 8 years ago

Original comment by g.rodola on 11 Apr 2013 at 9:17

GoogleCodeExporter commented 8 years ago

Original comment by g.rodola on 12 Apr 2013 at 6:21