[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

vigilian c_cromphout at hotmail.com
Sun Dec 18 21:25:33 UTC 2016


even with the fix on my production server I still have some problems. :

@docker:~$ sudo apt update
[sudo] Mot de passe de vigilian : 
Atteint:1 http://ppa.launchpad.net/x2go/stable/ubuntu xenial InRelease
Atteint:2 http://be.archive.ubuntu.com/ubuntu xenial InRelease                                                                           
Réception de:3 http://be.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]                                                     
Atteint:4 http://download.virtualbox.org/virtualbox/debian xenial InRelease                                                       
Réception de:5 http://be.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]                                            
Atteint:6 https://apt.dockerproject.org/repo ubuntu-xenial InRelease                              
Réception de:7 http://be.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [441 kB]   
Réception de:8 http://be.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [433 kB]                           
Réception de:9 http://be.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [303 kB]                   
Réception de:10 http://be.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [186 kB]                      
Réception de:11 http://be.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [121 kB]           
Réception de:12 http://be.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [145 kB]                   
Réception de:13 http://be.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [2.516 B]        
Réception de:14 http://be.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [208 B]                    
Réception de:15 http://be.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [212 B]
Réception de:16 http://be.archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 DEP-11 Metadata [212 B]
Réception de:17 https://download.01.org/gfx/ubuntu/16.04/main xenial InRelease [3.651 B]       
Réception de:18 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]                                               
Réception de:19 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [68,2 kB]
Réception de:20 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [48,0 kB]
Réception de:21 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [19,4 kB]
Réception de:22 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [25,6 kB]
Réception de:23 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [212 B]
2.103 ko réceptionnés en 5s (392 ko/s)                                
AppStream cache update completed, but some metadata was ignored due to errors.
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
All packages are up to date.
W: https://download.01.org/gfx/ubuntu/16.04/main/dists/xenial/InRelease: Signature by key 09D6EF97BFB38E916EF060E756A3DEF863961D39 uses weak digest algorithm (SHA1)
vigilian at docker:~$ sudo apt dist-upgrade
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Calcul de la mise à jour... Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
@docker:~$ sudo apt update
Atteint:1 http://ppa.launchpad.net/x2go/stable/ubuntu xenial InRelease
Atteint:2 http://download.virtualbox.org/virtualbox/debian xenial InRelease                                                                                                                            
Atteint:3 http://be.archive.ubuntu.com/ubuntu xenial InRelease                                                                                                                                         
Atteint:4 http://be.archive.ubuntu.com/ubuntu xenial-updates InRelease                                                
Atteint:5 http://be.archive.ubuntu.com/ubuntu xenial-backports InRelease                                              
Atteint:6 https://apt.dockerproject.org/repo ubuntu-xenial InRelease                                                  
Réception de:7 https://download.01.org/gfx/ubuntu/16.04/main xenial InRelease [3.651 B]
Atteint:8 http://security.ubuntu.com/ubuntu xenial-security InRelease
3.651 o réceptionnés en 0s (4.899 o/s)                         
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
All packages are up to date.
W: https://download.01.org/gfx/ubuntu/16.04/main/dists/xenial/InRelease: Signature by key 09D6EF97BFB38E916EF060E756A3DEF863961D39 uses weak digest algorithm (SHA1)

as you see I still have this bug but not all the time. I've already, delete the appstream and install the new one with wget but still get the bug from time to time.... So does anyone have any occurence of this still happens to one of you?
It is  really really annoying so please look into this or tell me if I need to reopen a new ticket ? or show you a specific log?

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

Status in appstream package in Ubuntu:
  Fix Released
Status in appstream source package in Xenial:
  Fix Released

Bug description:
  [Impact]

   * The cache refresh is blocked on a strdup on a non-NULL-terminated string in some very rare occasions (very rare because this bug is present for almost 3y without a single report).
   * Fixing this bug resolves the issue for people who might experience it.
   * See https://github.com/ximion/appstream/issues/35 for details.

  [Test Case 1]

   * Run `sudo appstreamcli refresh --force`
   * The AppStream cache should be updated, no change in behavior should be seen.

  [Test Case 2]

   * In case you were experiencing the almost-infinite hang when running
  `sudo appstreamcli refresh --force`, this issue should be fixed with
  the SRU.

  [Regression Potential]

   * Very low, since this only fixes the decompression code. There
  should be no sideeffects of that (given that the patch itself doesn't
  break anything, which it shouldn't, since it has been tested upstream
  for a while)

  [Other Info]

   * This fix has been applied upstream: https://github.com/ximion/appstream/commit/f33c520c37e2ba51d92402220250b8d501a2bf43
   * A smaller version of the patch (one-liner) is available, at the expense of not having reduced memory usage: https://github.com/ximion/appstream/commit/378941787d3584b3eb31a6ebe40e0aacc10e180a

  ####

  /!\ Installing the bugfix from xenial-proposed, without going through APT:
  To install the fixed packages manually, please execute the following commands (for amd64, adjust URLs for other architectures):

  ```
  cd /tmp && mkdir asfix
  cd asfix
  wget https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb
  wget https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb
  sudo dpkg -i libappstream3*.deb
  sudo dpkg -i appstream*.deb
  ```

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



More information about the Ubuntu-sponsors mailing list