← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1591868] Re: fwupd consuming 100% CPU

 

This bug was fixed in the package appstream-glib - 0.5.13-1ubuntu3

---------------
appstream-glib (0.5.13-1ubuntu3) xenial; urgency=medium

  * Catch errors from libyaml and display proper warnings
    rather than spin on them. (LP: #1591868)

 -- Mario Limonciello <mario_limonciello@xxxxxxxx>  Tue, 30 Aug 2016
13:51:56 -0500

** Changed in: appstream-glib (Ubuntu Xenial)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1591868

Title:
  fwupd consuming 100% CPU

Status in appstream-glib package in Ubuntu:
  Fix Released
Status in appstream-glib source package in Xenial:
  Fix Released
Status in appstream-glib source package in Yakkety:
  Fix Released

Bug description:
  [Impact]

   * Corrupt yaml data is causing consumers of appstream data (such as
  gnome-software or fwupd) to get stuck in a spin and consume CPU and
  battery.

  [Test Case]

   * Introduce corrupt data into /var/lib/app-info/yaml/
   * Execute sudo /usr/lib/x86_64-linux-gnu/fwupd/fwupd -v
   * Check CPU usage calms down after initialization

  [Regression Potential]

   * This patch has been backported from a newer stable release upstream.
   * Due to the nature of backporting, it doesn't directly apply to Ubuntu and will need some adjustments made.
   * Regressions would occur in gnome-software not displaying software or fwupd not running properly.

  [Other Info]
   
  Original bug report: 

  fwupd process has been consuming 100% of my CPU for several days now
  (IBM Thinkpad x250 running fully updated 16.04).

  gdb backtrace below.

  Thread 2 (Thread 0x7f3272cf5700 (LWP 4496)):
  #0  0x00007f3279b79e8d in poll () at ../sysdeps/unix/syscall-template.S:84
  No locals.
  #1  0x00007f327ae9331c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  No symbol table info available.
  #2  0x00007f327ae9342c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  No symbol table info available.
  #3  0x00007f327ae93469 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  No symbol table info available.
  #4  0x00007f327aeb9b45 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  No symbol table info available.
  #5  0x00007f3279e4f6fa in start_thread (arg=0x7f3272cf5700) at pthread_create.c:333
          __res = <optimized out>
          pd = 0x7f3272cf5700
          now = <optimized out>
          unwind_buf = {cancel_jmp_buf = {{jmp_buf = {139854651283200, 418179942412000561, 0, 140731891236207,
                  139854651283904, 0, -312637405101744847, -312613451844084431}, mask_was_saved = 0}}, priv = {pad = {
                0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
          not_first_call = <optimized out>
          pagesize_m1 = <optimized out>
          sp = <optimized out>
          freesize = <optimized out>
          __PRETTY_FUNCTION__ = "start_thread"
  #6  0x00007f3279b85b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
  No locals.

  Thread 1 (Thread 0x7f327c926900 (LWP 4486)):
  #0  0x00007f3279e542b7 in __GI___pthread_rwlock_rdlock (rwlock=0x7f3279e43920 <__libc_setlocale_lock>)
      at pthread_rwlock_rdlock.c:135
          result = 0
          wake = false
  #1  0x00007f3279aaf0e9 in __dcigettext (domainname=0x7f327aedee63 "glib20",
      msgid1=0x7f327b4ca11a "Invalid compressed data", msgid2=0x0, plural=0, n=0, category=5) at dcigettext.c:527
          __p = <optimized out>
          domain = <optimized out>
          binding = <optimized out>
          categoryname = <optimized out>
          categoryvalue = <optimized out>
          dirname = <optimized out>
          xdomainname = <optimized out>
          single_locale = <optimized out>
          retval = <optimized out>
          retlen = 93892446493824
          saved_errno = 0
          search = {domainname = 0x7ffeb262bb00 "`\234\353\teU", category = 166588464,
            localename = 0x556509ededa8 "p\362\355\teU", counter = 166589040, domain = 0x23,
            translation = 0x5565fffffffb <error: Cannot access memory at address 0x5565fffffffb>,
            translation_length = 93892446493792, msgid = {appended = 0x7ffeb262bb08 "",
              ptr = 0x52fb0a5631f15a00 <error: Cannot access memory at address 0x52fb0a5631f15a00>}}
          foundp = 0x0
          localename = <optimized out>
          domainname_len = <optimized out>
  #2  0x00007f327b44338c in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
  No symbol table info available.
  #3  0x00007f327b3e95f9 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
  No symbol table info available.
  #4  0x00007f327b40d315 in g_input_stream_read () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
  No symbol table info available.
  #5  0x00007f327c1ae569 in ?? () from /usr/lib/x86_64-linux-gnu/libappstream-glib.so.8
  No symbol table info available.
  #6  0x00007f3278c51a15 in ?? () from /usr/lib/x86_64-linux-gnu/libyaml-0.so.2
  No symbol table info available.
  #7  0x00007f3278c51cde in yaml_parser_update_buffer () from /usr/lib/x86_64-linux-gnu/libyaml-0.so.2
  No symbol table info available.
  #8  0x00007f3278c56498 in yaml_parser_fetch_more_tokens () from /usr/lib/x86_64-linux-gnu/libyaml-0.so.2
  No symbol table info available.
  #9  0x00007f3278c5b32f in yaml_parser_parse () from /usr/lib/x86_64-linux-gnu/libyaml-0.so.2
  No symbol table info available.
  #10 0x00007f327c1ae39b in ?? () from /usr/lib/x86_64-linux-gnu/libappstream-glib.so.8
  No symbol table info available.
  #11 0x00007f327c1ae890 in as_yaml_from_file () from /usr/lib/x86_64-linux-gnu/libappstream-glib.so.8
  No symbol table info available.
  #12 0x00007f327c1a9231 in ?? () from /usr/lib/x86_64-linux-gnu/libappstream-glib.so.8
  No symbol table info available.
  #13 0x00007f327c1a9867 in ?? () from /usr/lib/x86_64-linux-gnu/libappstream-glib.so.8
  No symbol table info available.
  #14 0x00007f327c1a9ee1 in ?? () from /usr/lib/x86_64-linux-gnu/libappstream-glib.so.8
  No symbol table info available.
  #15 0x00007f327c1aa994 in as_store_load () from /usr/lib/x86_64-linux-gnu/libappstream-glib.so.8
  No symbol table info available.
  #16 0x00005565094a59c7 in main ()
  No symbol table info available.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream-glib/+bug/1591868/+subscriptions