Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

Thanks!

share|improve this question
2  
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 stackoverflow.com –  Decio Lira Sep 17 '10 at 23:11
add comment

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.

1 Answer

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