[Bug 591119] Re: Telepathy-butterfly leaks memory

Yoav 591119 at bugs.launchpad.net
Fri Nov 26 14:03:50 UTC 2010

I have submitted this bug with upstream: https://bugs.freedesktop.org/show_bug.cgi?id=31936
A patch that works around the problem is attached.

Copying the bug details here:
Papyon 0.4.6 sends out requests to MSN's server that cause the server to return
a 400 HTTP response ("Bad Request").
When such responses are received, telepathy-butterfly (through it's use of
papyon) suffers from a huge memory leak. (about 200MB per hour on average)

In http://support.microsoft.com/kb/826437 you can see that the .Net framework
1.1 does not accept requests that contains ":" in the host name AND "&" in the
URL because of a bug.
Papyon sends requests to port 80 to a URL of the form:
The MSN server then responds to these responses with a '400 Bad Request'
These responses also result in a huge memory leak.

Since it is not necessary to send the port number with the URL when the port
number is 80, I created a patch that avoids sending it in this case. This helps
to avoid the 400 responses as well as the memory leak.
This attached patch relates to the papyon/gnet/protocol directory

Further details:
OS - Ubuntu 10.04 64 bit with all latest updates.

** Bug watch added: freedesktop.org Bugzilla #31936

** Patch added: "papyon.patch"

Telepathy-butterfly leaks memory
You received this bug notification because you are a member of
Telepathy, which is subscribed to telepathy-butterfly in ubuntu.

More information about the Ubuntu-telepathy mailing list