← Back to team overview

touch-packages team mailing list archive

[Bug 1364368] Re: maliit-server has a memory leak

 

This appears to occur in all graphical applications running on the phone
(but not on the desktop). Running "smemstat -p $(pidof unity8-dash) 10"
provides the same symptoms. So presumably this is a result of an issue
somewhere lower down in the stack. I haven't been able to figure out
what specifically, so I'll add any projects that seems plausible and
their respective developers can remove/invalidate them as appropriate.

** Also affects: mir
   Importance: Undecided
       Status: New

** Also affects: qtmir
   Importance: Undecided
       Status: New

** Also affects: qtubuntu
   Importance: Undecided
       Status: New

** Summary changed:

- maliit-server has a memory leak
+ Something has a memory leak

** No longer affects: mir

** No longer affects: qtmir

** No longer affects: ubuntu-keyboard

** No longer affects: qtubuntu

** Also affects: qtubuntu-sensors
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to maliit-framework in
Ubuntu.
https://bugs.launchpad.net/bugs/1364368

Title:
  Something has a memory leak

Status in QT Ubuntu Sensors:
  New
Status in “maliit-framework” package in Ubuntu:
  New

Bug description:
  I've tracked memory utilisation of maliit-server over a 12 hour period
  and can see that the heap is growing at about 1700 bytes a second.
  One can see this by strac'ing the process and seeing glib's malloc
  performing 4K mprotects every ~2.4 seconds and the occasional 1MB
  mmap2 to anonymous memory (aka heap) every 600-620 seconds.

  [pid  2708] 12:48:57 mprotect(0xa01fa000, 4096, PROT_READ|PROT_WRITE) = 0
  [pid  2708] 12:48:59 mprotect(0xa01fb000, 4096, PROT_READ|PROT_WRITE) = 0
  [pid  2708] 12:49:02 mprotect(0xa01fc000, 4096, PROT_READ|PROT_WRITE) = 0
  [pid  2708] 12:49:04 mprotect(0xa01fd000, 4096, PROT_READ|PROT_WRITE) = 0
  [pid  2708] 12:49:07 mprotect(0xa01fe000, 4096, PROT_READ|PROT_WRITE) = 0
  [pid  2708] 12:49:09 mprotect(0xa01ff000, 4096, PROT_READ|PROT_WRITE) = 0
  [pid  2708] 12:49:11 mmap2(0xa0200000, 1048576, PROT_NONE, MAP_PRIVATE|MAP_ANONY
  MOUS|MAP_NORESERVE, -1, 0) = 0xa0200000
  [pid  2708] 12:49:11 mprotect(0xa0200000, 135168, PROT_READ|PROT_WRITE) = 0

  Over a period of 1 day this will leak 140MB.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qtubuntu-sensors/+bug/1364368/+subscriptions


References