Package: fwupd
Version: 1.3.2-2
Severity: normal

Hi,

approximately a few times a day fwupd is automatically called as "fwupd
refresh". Unfortunately on my system it gets stuck in a busy loop trying
to read from a stream. I believe that it fails to read, but it also
fails to acknowledge an error condition, therefore keeping trying.

Here is the gdb session:

> (gdb) attach 6735
> Attaching to process 6735
> [New LWP 6736]
> [New LWP 6737]
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> 0x00007fc5d7e115ce in _IO_fgets (buf=buf@entry=0x7fff674457b4 "", 
> n=n@entry=4, fp=0x7fc5d7f58a00 <_IO_2_1_stdin_>) at iofgets.c:39
> 39    iofgets.c: File o directory non esistente.
> (gdb) info threads 
>   Id   Target Id                                   Frame 
> * 1    Thread 0x7fc5d530b8c0 (LWP 6735) "fwupdmgr" 0x00007fc5d7e115ce in 
> _IO_fgets (buf=buf@entry=0x7fff674457b4 "", n=n@entry=4, fp=0x7fc5d7f58a00 
> <_IO_2_1_stdin_>) at iofgets.c:39
>   2    Thread 0x7fc5d5023700 (LWP 6736) "gmain"    0x00007fc5d7e8ed2f in 
> __GI___poll (fds=0x556a5107a1b0, nfds=1, timeout=-1) at 
> ../sysdeps/unix/sysv/linux/poll.c:29
>   3    Thread 0x7fc5d4822700 (LWP 6737) "gdbus"    0x00007fc5d7e8ed2f in 
> __GI___poll (fds=0x556a510988a0, nfds=2, timeout=-1) at 
> ../sysdeps/unix/sysv/linux/poll.c:29
> (gdb) bt
> #0  0x00007fc5d7e115ce in _IO_fgets (buf=buf@entry=0x7fff674457b4 "", 
> n=n@entry=4, fp=0x7fc5d7f58a00 <_IO_2_1_stdin_>) at iofgets.c:39
> #1  0x0000556a4f0d58e4 in fgets (__stream=<optimized out>, __n=4, 
> __s=0x7fff674457b4 "") at /usr/include/x86_64-linux-gnu/bits/stdio2.h:265
> #2  fu_util_prompt_for_boolean (def=1) at ../src/fu-util-common.c:126
> #3  0x0000556a4f0d4327 in fu_util_download_metadata_enable_lvfs 
> (error=0x7fff67445870, priv=0x556a51073a90) at ../src/fu-util.c:1203
> #4  fu_util_download_metadata (priv=0x556a51073a90, error=0x7fff67445870) at 
> ../src/fu-util.c:1234
> #5  0x0000556a4f0d079f in main (argc=<optimized out>, argv=<optimized out>) 
> at ../src/fu-util.c:2478
> (gdb) continue
> Continuing.
> ^C
> Thread 1 "fwupdmgr" received signal SIGINT, Interrupt.
> __GI___uflow (fp=0x7fc5d7f58a00 <_IO_2_1_stdin_>) at genops.c:298
> 298   genops.c: File o directory non esistente.
> (gdb) bt
> #0  __GI___uflow (fp=0x7fc5d7f58a00 <_IO_2_1_stdin_>) at genops.c:298
> #1  0x00007fc5d7e125bc in __GI__IO_getline_info (fp=fp@entry=0x7fc5d7f58a00 
> <_IO_2_1_stdin_>, buf=buf@entry=0x7fff674457b4 "", n=n@entry=3, 
> delim=delim@entry=10, extract_delim=extract_delim@entry=1, eof=eof@entry=0x0) 
> at iogetline.c:60
> #2  0x00007fc5d7e126b8 in __GI__IO_getline (fp=fp@entry=0x7fc5d7f58a00 
> <_IO_2_1_stdin_>, buf=buf@entry=0x7fff674457b4 "", n=n@entry=3, 
> delim=delim@entry=10, extract_delim=extract_delim@entry=1) at iogetline.c:34
> #3  0x00007fc5d7e1166d in _IO_fgets (buf=buf@entry=0x7fff674457b4 "", 
> n=n@entry=4, fp=0x7fc5d7f58a00 <_IO_2_1_stdin_>) at iofgets.c:53
> #4  0x0000556a4f0d58e4 in fgets (__stream=<optimized out>, __n=4, 
> __s=0x7fff674457b4 "") at /usr/include/x86_64-linux-gnu/bits/stdio2.h:265
> #5  fu_util_prompt_for_boolean (def=1) at ../src/fu-util-common.c:126
> #6  0x0000556a4f0d4327 in fu_util_download_metadata_enable_lvfs 
> (error=0x7fff67445870, priv=0x556a51073a90) at ../src/fu-util.c:1203
> #7  fu_util_download_metadata (priv=0x556a51073a90, error=0x7fff67445870) at 
> ../src/fu-util.c:1234
> #8  0x0000556a4f0d079f in main (argc=<optimized out>, argv=<optimized out>) 
> at ../src/fu-util.c:2478

The only way I can get rid of it is by killing it with SIGKILL.

Please, let me know how I can provide more useful information.

Thanks, Giovanni.


--- System information. ---
Architecture: Kernel:       Linux 5.2.0-3-amd64

Debian Release: bullseye/sid
  500 xenial          updates.signal.org   500 unstable-debug
debug.mirrors.debian.org   500 unstable        deb.debian.org   500
testing         deb.debian.org   500 stable          repo.skype.com
500 stable          dl.google.com     1 experimental    deb.debian.org
--- Package information. ---
Depends                      (Version) | Installed
======================================-+-=============
libarchive13                (>= 3.0.4) | 3.4.0-1
libc6                        (>= 2.17) | libefiboot1
(>= 37) | libefivar1                     (>= 37) | libelf1
       (>= 0.142) | libfwupd2                   (>= 1.3.2) |
libgcab-1.0-0                 (>= 1.0) | libglib2.0-0               (>=
2.53.2) | libgnutls30                 (>= 3.6.5) | libgpg-error0
        (>= 1.14) | libgpgme11                  (>= 1.2.0) |
libgudev-1.0-0                (>= 212) | libgusb2                   (>=
0.2.10) | libjson-glib-1.0-0          (>= 1.2.0) | libpolkit-gobject-1-0
       (>= 0.99) | libsmbios-c2                           | libsoup2.4-1
             (>= 2.41.90) | libsqlite3-0                (>= 3.5.9) |
libtss2-esys0                          | libxmlb1
        | shared-mime-info                       |

Recommends        (Version) | Installed
===========================-+-===========
python3                     | 3.7.5-1
bolt                        | 0.8-4
fwupd-signed                |

Package's Suggests field is empty.
-- 
Giovanni Mascellani <g.mascell...@gmail.com>
Postdoc researcher - Université Libre de Bruxelles

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to