Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
giampaolo opened this issue May 23, 2014 · 7 comments
Closed

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

giampaolo opened this issue May 23, 2014 · 7 comments

Comments

@giampaolo
Copy link
Owner

From dumbbou...@gmail.com on December 11, 2012 18:19:16

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)

Attachment: patch-psutil-_psutil_bsd.c-get_swap_mem.1.patch

Original issue: http://code.google.com/p/psutil/issues/detail?id=344

@giampaolo
Copy link
Owner Author

From dumbbou...@gmail.com on December 11, 2012 09:20:39

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

@giampaolo
Copy link
Owner Author

From dumbbou...@gmail.com on December 11, 2012 12:01:49

I confirm this fixes the problem with FreeBSD 10-CURRENT too.

@giampaolo
Copy link
Owner Author

From g.rodola on December 11, 2012 15:43:34

Fixed in r1550 .
Thanks a lot.

Status: FixedInSVN
Labels: OpSys-FreeBSD Milestone-0.6.2

@giampaolo
Copy link
Owner Author

From g.rodola on March 02, 2013 04:14:08

Updated csets after the SVN -> Mercurial migration: r1550 == revision 
67bb7e248c5b

@giampaolo
Copy link
Owner Author

From g.rodola on April 07, 2013 18:21:49

Status: FixedInHG

@giampaolo
Copy link
Owner Author

From g.rodola on April 11, 2013 02:17:39

Labels: -Milestone-0.6.2 Milestone-0.7.0

@giampaolo
Copy link
Owner Author

From g.rodola on April 12, 2013 11:21:27

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant