kiranvizru / psutil

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

Calling psutil.get_process_list() allocates all the memory on system (FreeBSD) #339

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call psutil.get_process_list() (or any other process-related method) on 
FreeBSD.

What is the expected output?
Process list.

What do you see instead?
Python allocates all the memory on system and gets killed.

What version of psutil are you using? What Python version?
Bug exists in both latest stable (0.6.1) and latest SVN version.

On what operating system? Is it 32bit or 64bit version?
Tested on FreeBSD 9.1-PRERELEASE r243026 (amd64).

Please provide any additional information below.

Bug exists in "char *getcmdargs()" function in 
"psutil/arch/bsd/process_info.c", which causes all system memory to be 
allocated, attached patch fixes the issue for me.

Original issue reported on code.google.com by itsgoing...@gtempaccount.com on 17 Nov 2012 at 8:22

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in r1547.
Thanks a lot.

Original comment by g.rodola on 18 Nov 2012 at 6:40

GoogleCodeExporter commented 9 years ago
Updated csets after the SVN -> Mercurial migration:
r1547 == revision cea9ff990255
r243026 == revision ???

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

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago

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