← Back to team overview

touch-packages team mailing list archive

[Bug 1410506] Re: MTP looping between start and stopping causing constant ~10% cpu load

 

Backtrace I got:
(gdb) bt full
#0  __libc_do_syscall () at ../ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:44
No locals.
#1  0xb6c77e5e in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
        _a1 = 0
        _a3tmp = 6
        _a1tmp = 0
        _a3 = 6
        _nametmp = 268
        _a2tmp = 4227
        _a2 = 4227
        _name = 268
        _sys_result = <optimized out>
        pd = 0xb6731450
        pid = 0
        selftid = 4227
#2  0xb6c78b4e in __GI_abort () at abort.c:89
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0}, sa_mask = {__val = {0 <repeats 32 times>}}, sa_flags = 0, sa_restorer = 0xb6730c98}
        sigs = {__val = {32, 0 <repeats 31 times>}}
#3  0xb6ca13f8 in __libc_message (do_abort=<optimized out>, fmt=0xb6d1f638 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
        ap = {__ap = 0xb6730ce4}
        fd = 2
        on_2 = <optimized out>
        list = <optimized out>
        nlist = <optimized out>
        cp = <optimized out>
        written = <optimized out>
#4  0xb6ca5296 in malloc_printerr (action=1, str=0xb6d1f76c "double free or corruption (!prev)", ptr=<optimized out>) at malloc.c:4996
        buf = "01d78008"
        cp = <optimized out>
#5  0xb6ca5d76 in _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3840
        size = <optimized out>
        fb = <optimized out>
        nextchunk = <optimized out>
        nextsize = <optimized out>
        nextinuse = <optimized out>
        prevsize = <optimized out>
        bck = <optimized out>
        fwd = <optimized out>
        errstr = <optimized out>
        locked = <optimized out>
        __func__ = "_int_free"
#6  0x0003a652 in deallocate (this=0x1d7f6a8, __p=<optimized out>) at /usr/include/c++/4.9/ext/new_allocator.h:110
No locals.
#7  deallocate (__a=..., __n=<optimized out>, __p=<optimized out>) at /usr/include/c++/4.9/bits/alloc_traits.h:383
No locals.
#8  _M_deallocate (this=0x1d7f6a8, __n=<optimized out>, __p=<optimized out>) at /usr/include/c++/4.9/bits/stl_vector.h:178
No locals.
#9  std::vector<char, std::allocator<char> >::_M_default_append (this=this@entry=0x1d7f6a8, __n=__n@entry=896) at /usr/include/c++/4.9/bits/vector.tcc:578
        __new_start = 0xb3c00468 "\350\235\327\001 \233\327\001"
        __new_finish = 0xb3c00868 ""
#10 0x0004657e in _M_default_append (__n=896, this=0x1d7f6a8) at /usr/include/c++/4.9/bits/vector.tcc:545
No locals.
#11 resize (__new_size=<optimized out>, this=0x1d7f6a8) at /usr/include/c++/4.9/bits/stl_vector.h:676
No locals.
#12 boost::asio::basic_streambuf<std::allocator<char> >::reserve (this=this@entry=0x1d7f684, n=n@entry=1024) at /usr/include/boost/asio/basic_streambuf.hpp:325
        gnext = <optimized out>
        pnext = 0
        pend = 1024
#13 0x00049570 in prepare (n=1024, this=0x1d7f684) at /usr/include/boost/asio/basic_streambuf.hpp:207
No locals.
#14 MtpDaemon::read_more_notify (this=0x1d7f628) at /build/buildd/mtp-0.0.4+15.04.20141113/server/server.cpp:191
        __PRETTY_FUNCTION__ = "void MtpDaemon::read_more_notify()"
#15 0xb6f035de in ?? () from /usr/lib/arm-linux-gnueabihf/libboost_thread.so.1.55.0
No symbol table info available.
#16 0xb6ea7f98 in start_thread (arg=0xb6731450) at pthread_create.c:311

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

Title:
  MTP looping between start and stopping causing constant ~10% cpu load

Status in mtp package in Ubuntu:
  Confirmed

Bug description:
  When unplugged from USB, I notice when running $ top that init, dbus-
  daemon, mpdecision are constantly using in total ~10% CPU.

  The steps I have performed to cause this:
  1) Ensure the device is off
  2) Plug a USB cable into the device and a computer with MTP support
  3) Boot the device
  4) Unlock the device, run the terminal and the command $ top
  5) Wait until the CPU settles, then unplug the USB cable
  6) Now notice that init, dbus-daemon, mpdecision start using ~10% CPU

  This is the output from running dbus-monitor [0]

  Note that when I plugged my device into a PC the CPU usage reduced
  back to normal, but then when I unplugged it again it increased back
  to ~10% again.

  0 - http://pastebin.ubuntu.com/9734788/

  $ system-image-cli -i
  current build number: 161
  device name: mako
  channel: ubuntu-touch/ubuntu-rtm/devel-proposed
  alias: ubuntu-touch/ubuntu-rtm/14.09-proposed
  last update: 2015-01-13 18:37:40
  version version: 161
  version ubuntu: 20150113
  version device: 20141119
  version custom: mako-1.1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mtp/+bug/1410506/+subscriptions


References