telepathy-sofia has serious memory leak

Bug #530536 reported by Gustaf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
telepathy-rakia (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: telepathy-sofiasip

In 9.10 and in Lucid Alpha 3, telepathy-sofia sometimes, at some random time it seems, begins to swallow huge amounts of memory. It swamps the physical memory as well as swap until the machine is completely borked and unresponsive and processes gets killed (or die for other OOM-related reasons).

$ cat /proc/`pidof telepathy-sofiasip`/maps
...
08c77000-7667b000 rw-p 00000000 00:00 0 [heap]
a2352000-b2353000 rw-p 00000000 00:00 0
b7898000-b789e000 rw-p 00000000 00:00 0
b78b9000-b78bb000 rw-p 00000000 00:00 0
b78bb000-b78c2000 r--s 00000000 08:05 4188554 /usr/lib/gconv/gconv-modules.cache
b78c2000-b78c4000 rw-p 00000000 00:00 0
bff36000-bff4b000 rw-p 00000000 00:00 0 [stack]

Or smaps on the messed up ranges:

08c77000-7667b000 rw-p 00000000 00:00 0 [heap]
Size: 1796112 kB
Rss: 899032 kB
Pss: 899032 kB
Shared_Clean: 0 kB
Shared_Dirty: 0 kB
Private_Clean: 76 kB
Private_Dirty: 898956 kB
Referenced: 691472 kB
Swap: 896976 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB
a2352000-b2353000 rw-p 00000000 00:00 0
Size: 262148 kB
Rss: 262148 kB
Pss: 262148 kB
Shared_Clean: 0 kB
Shared_Dirty: 0 kB
Private_Clean: 0 kB
Private_Dirty: 262148 kB
Referenced: 262000 kB
Swap: 0 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB

Revision history for this message
Gustaf (g-rantila) wrote :

Just to make it clear, it happens several times a day, and it happens fast. It's not a normal memory leak, it's somehow very bad code that loops through something and allocates memory. Quickly. Within seconds half your swap is gone.

Revision history for this message
Mikhail Zabaluev (mzabaluev) wrote :

I have never seen this, but I primarily use telepathy-sofiasip on Maemo, with a different snapshot of sofia-sip.

Can you try to build sofia-sip from its darcs master repository at http://sofia-sip.org/repos/sofia-sip
 and see if this leak is reproduced?

Colin Watson (cjwatson)
affects: telepathy-sofiasip (Ubuntu) → telepathy-rakia (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.