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

Error when reading struct data from /proc on Solaris 11 #358

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

Error when reading struct data from /proc on Solaris 11 #358

giampaolo opened this issue May 23, 2014 · 3 comments

Comments

@giampaolo
Copy link
Owner

From tehj...@gmail.com on March 16, 2013 00:43:54

When calling any function that uses _fill_struct_from_file in _psutil_sunos.c I 
encounter "structure size mismatch" error. There are also 3 build warnings that 
I receive about casting NULL pointer to int. 

What version of psutil are you using? What Python version?  
psutil 0.6.0 (sunos branch) 
Python 2.7.3 x64 

On what operating system? Is it 32bit or 64bit version?  
SunOS 5.11 11.1 i86pc i386 i86pc 

Please provide any additional information below.  
I have attached a patch which fixes all of the problems. I have not tested it 
on older Solaris platforms.

Attachment: sunos.patch

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

@giampaolo
Copy link
Owner Author

From g.rodola on March 16, 2013 02:24:11

Out of curiosity, when was that Solaris version released? It seems pretty old.

@giampaolo
Copy link
Owner Author

From g.rodola on March 16, 2013 02:50:16

Ah Solaris 11, I'm sorry (I just woke up :P).
Fixed in revision 91944c14850d .
Also merging this issue into issue 18 .

Status: Duplicate
Mergedinto: 18

@giampaolo
Copy link
Owner Author

From tehj...@gmail.com on March 16, 2013 12:27:30

Great! Thanks for fixing.

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