Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to debug a memory leak in telepathy-butterfly. I tried to use valgrind, but Empathy does not connect to MSN when telepathy-butterfly is run this way. So, I figured out the only option left is to debug the memory leak by printing object sizes from within the code.

I was able to get all objects (using the gc module) and print their sizes and types. The leak seems to come from a dictionary (or dictionaries), which have no __name__ property, so I can't tell where their coming from. I tried to check all objects in globals(), but it looks like they are not related to the dictionaries that leak.

Since this is my first time hunting memory leaks in unfamiliar python code, I thought it is best to ask for advice. Any ideas?


share|improve this question

closed as too localized by Luis Alvarado Mar 14 '13 at 17:17

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

While your question is on topic here since you're trying to debug a program in Ubuntu, I think you'll get a better response on the sibling site Stack Overflow, which is for programming questions. – Gilles Sep 17 '10 at 22:27
This question would probably get more good quality answers on – Decio Lira Sep 17 '10 at 23:11

They suggest Heapy amongst others.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.