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

Incorrectly used free() in _psutil_osx.c #240

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

Incorrectly used free() in _psutil_osx.c #240

giampaolo opened this issue May 23, 2014 · 9 comments

Comments

@giampaolo
Copy link
Owner

From alexey.p...@qik.com on December 23, 2011 16:18:40

free(fds_pointer);
...
fdp_pointer = &fds_pointer[i];

fds_pointer is freed, then accessed.

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

@giampaolo giampaolo self-assigned this May 23, 2014
@giampaolo
Copy link
Owner Author

From alexey.p...@qik.com on December 23, 2011 07:20:24

It's for 0.4.1. There is one more similar bug in trunk.

@giampaolo
Copy link
Owner Author

From g.rodola on December 23, 2011 11:25:53

Can you provide a patch?
@Jay: my virtualized OSX box is gone; can you look into this?

Labels: OpSys-OSX

@giampaolo
Copy link
Owner Author

From jlo...@gmail.com on December 23, 2011 11:54:59

Summary: Incorrectly used free() in _psutil_osx.c

@giampaolo
Copy link
Owner Author

From jlo...@gmail.com on December 23, 2011 11:55:51

Thanks for the report, there were two functions affected by this (incorrectly 
using free() on a pointer that was still in use later in the function. Fixed in r1244

Status: FixedInSVN

@giampaolo
Copy link
Owner Author

From g.rodola on January 30, 2012 04:19:51

Labels: Milestone-0.5.0

@giampaolo
Copy link
Owner Author

From g.rodola on April 16, 2012 08:30:51

After r1244 I see a lot of these errors:

    python(910) malloc: *** error for object 0xa9a6d0: Non-aligned pointer 
being freed (2)
*** set a breakpoint in malloc_error_break to debug

    python(910) malloc: *** error for object 0x1137800: double free
*** set a breakpoint in malloc_error_break to debug

They go away if I remove the "free(fds_pointer);" lines.

Status: ReOpened

@giampaolo
Copy link
Owner Author

From g.rodola on April 16, 2012 08:43:35

Fixed in r1285 .

Status: FixedInSVN

@giampaolo
Copy link
Owner Author

From g.rodola on June 27, 2012 11:54:03

0.5.0 is finally out. Closing out as fixed.

Status: Fixed

@giampaolo
Copy link
Owner Author

From g.rodola on March 02, 2013 04:06:19

Updated csets after the SVN -> Mercurial migration: r1244 == revision 
c624cdc5374b r1285 == revision 50786548c5c6

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