telepathy-sofia has serious memory leak
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-
...
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/
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
affects: | telepathy-sofiasip (Ubuntu) → telepathy-rakia (Ubuntu) |
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.