Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 502 by
wick...@gmail.com: "TypeError: argument 2 to map() must
support iteration" in process.memory_maps
http://code.google.com/p/psutil/issues/detail?id=502
Got the following stacktrace in a production application:
File "thermos_executor/twitter/aurora/executor/executor_vars.py", line
91, in aggregate_memory
return sum(getattr(mmap, attribute) for mmap in
process.get_memory_maps())
File "/root/.pex/install/psutil-1.1.2-py2.6-linux-x86_64.egg/psutil/__init__.py",
line 790, in get_memory_maps
d[path] = map(lambda x, y: x+y, d[path], nums)
TypeError: argument 2 to map() must support iteration
What version of psutil are you using? What Python version?
psutil 1.1.2
Python 2.6.8
On what operating system? Is it 32bit or 64bit version?
Linux x86_64 2.6.50 custom kernel on EL5
Please provide any additional information below.
This has happened once after running in production for quite a while, so it
seems extremely rare. I check psutil 2.1.1 and the code is still there
roughly unchanged, so I figure it might still happen in production. It
seems it's possible for "path" to repeat multiple times in the loop such
that d[path] is no longer an iterable.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings