shanecode / psutil

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

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by tehj...@gmail.com on 15 Mar 2013 at 11:43

Attachments:

GoogleCodeExporter commented 9 years ago
Out of curiosity, when was that Solaris version released? It seems pretty old.

Original comment by g.rodola on 16 Mar 2013 at 9:24

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

Original comment by g.rodola on 16 Mar 2013 at 9:50

GoogleCodeExporter commented 9 years ago
Great! Thanks for fixing.

Original comment by tehj...@gmail.com on 16 Mar 2013 at 7:27