Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Gnome software stuck due to flatpak #5519

Closed
4 tasks done
razzeee opened this issue Sep 13, 2023 · 3 comments · Fixed by #5520
Closed
4 tasks done

[Bug]: Gnome software stuck due to flatpak #5519

razzeee opened this issue Sep 13, 2023 · 3 comments · Fixed by #5520
Labels

Comments

@razzeee
Copy link

razzeee commented Sep 13, 2023

Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.
  • If this is an issue with a particular app, I have tried filing it in the appropriate issue tracker for the app (e.g. under https://github.com/flathub/) and determined that it is an issue with Flatpak itself.
  • This issue is not a report of a security vulnerability (see here if you need to report a security issue).

Flatpak version

1.15.4

What Linux distribution are you using?

Fedora Linux

Linux distribution version

38

What architecture are you using?

x86_64

How to reproduce

Not sure it can be reproduced without problems

  1. Use gnome software
  2. Go to updates
  3. Fetch for new ones

Expected Behavior

It should fetch updates and show them

Actual Behavior

It keeps spinning forever. According to a gnome software dev due to flatpak not returning/timing out from a download in thread 11.

Additional Information

[New LWP 14117]
[New LWP 14119]
[New LWP 14120]
[New LWP 14130]
[New LWP 14564]
[New LWP 14565]
[New LWP 14566]
[New LWP 14568]
[New LWP 14718]
[New LWP 14775]
[New LWP 15368]
[New LWP 15369]
[New LWP 15373]
[New LWP 15374]
[New LWP 15378]
[New LWP 15379]
[New LWP 15380]
[New LWP 15381]
[New LWP 15397]
[New LWP 15399]
[New LWP 15400]
[New LWP 15401]
[New LWP 15402]
[New LWP 15403]
[New LWP 15406]
[New LWP 15407]
[New LWP 15409]
[New LWP 15411]
[New LWP 15491]
[New LWP 15506]
[New LWP 15516]
[New LWP 15670]
[New LWP 15671]
[New LWP 15673]
[New LWP 15674]

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.fedoraproject.org/>
Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal]
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007f6139d4635d in poll () from /lib64/libc.so.6

Thread 36 (Thread 0x7f60cbfff6c0 (LWP 15674) "gnome-so:shlo4"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 35 (Thread 0x7f60ef7fe6c0 (LWP 15673) "gnome-so:shlo3"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 34 (Thread 0x7f60effff6c0 (LWP 15671) "gnome-so:shlo2"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 33 (Thread 0x7f60ee7fc6c0 (LWP 15670) "gnome-so:shlo1"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 32 (Thread 0x7f60ecff96c0 (LWP 15516) "gnome-soft:sh10"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 31 (Thread 0x7f60edffb6c0 (LWP 15506) "gnome-s:disk$3"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 30 (Thread 0x7f60eeffd6c0 (LWP 15491) "gnome-soft:sh9"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 29 (Thread 0x7f606ffff6c0 (LWP 15411) "gnome-soft:sh8"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 28 (Thread 0x7f6090ff96c0 (LWP 15409) "gnome-s:disk$2"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 27 (Thread 0x7f60917fa6c0 (LWP 15407) "gnome-s:disk$1"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 26 (Thread 0x7f6091ffb6c0 (LWP 15406) "gnome-soft:sh7"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 25 (Thread 0x7f60927fc6c0 (LWP 15403) "gnome-soft:sh6"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 24 (Thread 0x7f6092ffd6c0 (LWP 15402) "gnome-soft:sh5"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 23 (Thread 0x7f60937fe6c0 (LWP 15401) "gnome-soft:sh4"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 22 (Thread 0x7f6093fff6c0 (LWP 15400) "gnome-soft:sh3"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 21 (Thread 0x7f60b4ff96c0 (LWP 15399) "gnome-soft:sh2"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 20 (Thread 0x7f60b57fa6c0 (LWP 15397) "gnome-soft:sh1"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 19 (Thread 0x7f60b5ffb6c0 (LWP 15381) "gnome-soft:gl0"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 18 (Thread 0x7f60b67fc6c0 (LWP 15380) "gnome-so:gdrv0"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 17 (Thread 0x7f60b6ffd6c0 (LWP 15379) "gnome-soft:gl0"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 16 (Thread 0x7f60b77fe6c0 (LWP 15378) "gnome-so:gdrv0"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 15 (Thread 0x7f60b7fff6c0 (LWP 15374) "gnome-so:shlo0"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 14 (Thread 0x7f60bc9ff6c0 (LWP 15373) "gnome-soft:sh0"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 13 (Thread 0x7f60c8ffe6c0 (LWP 15369) "gnome-s:disk$0"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 12 (Thread 0x7f60c97ff6c0 (LWP 15368) "gnome-soft:cs0"):
#0  0x00007f6139cca1d9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007f6139cccb79 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f60c9912dbd in cnd_wait () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f60c98c3c7b in util_queue_thread_func () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f60c9912cec in impl_thrd_routine () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 11 (Thread 0x7f60ff7fe6c0 (LWP 14775) "pool-org.gnome."):
#0  0x00007f6139d4635d in poll () at /lib64/libc.so.6
#1  0x00007f6139a6d318 in Curl_poll () at /lib64/libcurl.so.4
#2  0x00007f6139a62baa in multi_wait.part () at /lib64/libcurl.so.4
#3  0x00007f6139a62dad in curl_multi_poll () at /lib64/libcurl.so.4
#4  0x00007f6139a3f096 in curl_easy_perform () at /lib64/libcurl.so.4
#5  0x00007f611a595e62 in flatpak_download_http_uri_once.lto_priv () at /lib64/libflatpak.so.0
#6  0x00007f611a5beb41 in flatpak_load_uri_full.constprop () at /lib64/libflatpak.so.0
#7  0x00007f611a55670a in flatpak_remote_state_ensure_subsummary () at /lib64/libflatpak.so.0
#8  0x00007f611a5b12e6 in _flatpak_dir_get_remote_state.constprop.0 () at /lib64/libflatpak.so.0
#9  0x00007f611a5911b0 in flatpak_transaction_ensure_remote_state () at /lib64/libflatpak.so.0
#10 0x00007f611a5943ea in flatpak_transaction_add_ref.lto_priv () at /lib64/libflatpak.so.0
#11 0x00007f611a594e82 in flatpak_transaction_add_update () at /lib64/libflatpak.so.0
#12 0x00007f611a576f02 in flatpak_installation_list_installed_refs_for_update () at /lib64/libflatpak.so.0
#13 0x00007f611ab3751e in gs_flatpak_add_updates () at /usr/lib64/gnome-software/plugins-20/libgs_plugin_flatpak.so
#14 0x00007f611ab45343 in gs_plugin_add_updates () at /usr/lib64/gnome-software/plugins-20/libgs_plugin_flatpak.so
#15 0x00007f613aecbd75 in gs_plugin_loader_run_results.lto_priv () at /usr/lib64/gnome-software/libgnomesoftware.so.20
#16 0x00007f613aed48ee in gs_plugin_loader_process_old_api_job_cb () at /usr/lib64/gnome-software/libgnomesoftware.so.20
#17 0x00007f613aaaa112 in g_thread_pool_thread_proxy.lto_priv () at /lib64/libglib-2.0.so.0
#18 0x00007f613aaa79f3 in g_thread_proxy () at /lib64/libglib-2.0.so.0
#19 0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#20 0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 10 (Thread 0x7f61189ba6c0 (LWP 14718) "gnome-software"):
#0  0x00007f6139d4635d in poll () at /lib64/libc.so.6
#1  0x00007f613aad7629 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#2  0x00007f613aa76b83 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007f613aed70ae in thread_cb () at /usr/lib64/gnome-software/libgnomesoftware.so.20
#4  0x00007f613aaa79f3 in g_thread_proxy () at /lib64/libglib-2.0.so.0
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 9 (Thread 0x7f60fffff6c0 (LWP 14568) "gnome-software"):
#0  0x00007f6139d4635d in poll () at /lib64/libc.so.6
#1  0x00007f613aad7629 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#2  0x00007f613aa76b83 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007f613aed70ae in thread_cb () at /usr/lib64/gnome-software/libgnomesoftware.so.20
#4  0x00007f613aaa79f3 in g_thread_proxy () at /lib64/libglib-2.0.so.0
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 8 (Thread 0x7f61191bb6c0 (LWP 14566) "gnome-software"):
#0  0x00007f6139d4635d in poll () at /lib64/libc.so.6
#1  0x00007f613aad7629 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#2  0x00007f613aa76b83 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007f613aed70ae in thread_cb () at /usr/lib64/gnome-software/libgnomesoftware.so.20
#4  0x00007f613aaa79f3 in g_thread_proxy () at /lib64/libglib-2.0.so.0
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 7 (Thread 0x7f61199bc6c0 (LWP 14565) "gnome-software"):
#0  0x00007f6139d4635d in poll () at /lib64/libc.so.6
#1  0x00007f613aad7629 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#2  0x00007f613aa76b83 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007f613aed70ae in thread_cb () at /usr/lib64/gnome-software/libgnomesoftware.so.20
#4  0x00007f613aaa79f3 in g_thread_proxy () at /lib64/libglib-2.0.so.0
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 6 (Thread 0x7f611a1bd6c0 (LWP 14564) "gnome-software"):
#0  0x00007f6139d4635d in poll () at /lib64/libc.so.6
#1  0x00007f613aad7629 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#2  0x00007f613aa76b83 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007f613aed70ae in thread_cb () at /usr/lib64/gnome-software/libgnomesoftware.so.20
#4  0x00007f613aaa79f3 in g_thread_proxy () at /lib64/libglib-2.0.so.0
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 5 (Thread 0x7f6128bfc6c0 (LWP 14130) "dconf worker"):
#0  0x00007f6139d4635d in poll () at /lib64/libc.so.6
#1  0x00007f613aad7629 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#2  0x00007f613aa76b83 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007f611bbf75c5 in dconf_gdbus_worker_thread () at /usr/lib64/gio/modules/libdconfsettings.so
#4  0x00007f613aaa79f3 in g_thread_proxy () at /lib64/libglib-2.0.so.0
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 4 (Thread 0x7f61293fd6c0 (LWP 14120) "gdbus"):
#0  0x00007f6139d4635d in poll () at /lib64/libc.so.6
#1  0x00007f613aad7629 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#2  0x00007f613aa78aff in g_main_loop_run () at /lib64/libglib-2.0.so.0
#3  0x00007f613ace07b2 in gdbus_shared_thread_func.lto_priv () at /lib64/libgio-2.0.so.0
#4  0x00007f613aaa79f3 in g_thread_proxy () at /lib64/libglib-2.0.so.0
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 3 (Thread 0x7f6129bfe6c0 (LWP 14119) "pool-spawner"):
#0  0x00007f6139d4bb5d in syscall () at /lib64/libc.so.6
#1  0x00007f613aace7bd in g_cond_wait () at /lib64/libglib-2.0.so.0
#2  0x00007f613aa4413b in g_async_queue_pop_intern_unlocked () at /lib64/libglib-2.0.so.0
#3  0x00007f613aaa95d3 in g_thread_pool_spawn_thread () at /lib64/libglib-2.0.so.0
#4  0x00007f613aaa79f3 in g_thread_proxy () at /lib64/libglib-2.0.so.0
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 2 (Thread 0x7f612a3ff6c0 (LWP 14117) "gmain"):
#0  0x00007f6139d4635d in poll () at /lib64/libc.so.6
#1  0x00007f613aad7629 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#2  0x00007f613aa76b83 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007f613aa76bd9 in glib_worker_main () at /lib64/libglib-2.0.so.0
#4  0x00007f613aaa79f3 in g_thread_proxy () at /lib64/libglib-2.0.so.0
#5  0x00007f6139ccd907 in start_thread () at /lib64/libc.so.6
#6  0x00007f6139d53870 in clone3 () at /lib64/libc.so.6

Thread 1 (Thread 0x7f6137bf7ac0 (LWP 13993) "gnome-software"):
#0  0x00007f6139d4635d in poll () at /lib64/libc.so.6
#1  0x00007f613aad7629 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#2  0x00007f613aa76b83 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007f613acae01d in g_application_run () at /lib64/libgio-2.0.so.0
#4  0x0000564ba3b00a24 in main ()
[Inferior 1 (process 13993) detached]

@razzeee razzeee added the bug label Sep 13, 2023
@razzeee
Copy link
Author

razzeee commented Sep 13, 2023

Not sure if this is helpful, here's what thread 11 returns:

(gdb) bt full
#0  0x00007f6139d4635d in __GI___poll (fds=0x7f60ff7f8d50, nfds=2, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
        sc_ret = -516
        sc_cancel_oldtype = 0
#1  0x00007f6139a6d318 in poll (__timeout=<optimized out>, __nfds=<optimized out>, __fds=0x7f60ff7f8d50) at /usr/include/bits/poll2.h:39
        pending_ms = <optimized out>
        fds_none = false
        i = <optimized out>
        r = <optimized out>
#2  Curl_poll (ufds=0x7f60ff7f8d50, nfds=<optimized out>, timeout_ms=<optimized out>) at ../../lib/select.c:312
        pending_ms = <optimized out>
        fds_none = false
        i = <optimized out>
        r = <optimized out>
#3  0x00007f6139a62baa in multi_wait (multi=<optimized out>, extra_fds=0x0, extra_nfds=<optimized out>, timeout_ms=<optimized out>, ret=<optimized out>, extrawait=extrawait@entry=true, use_wakeup=<optimized out>)
    at ../../lib/multi.c:1332
        pollrc = <optimized out>
        data = <optimized out>
        sockbunch = {42, 32608, -8417768, 32608, 0}
        i = <optimized out>
        nfds = <optimized out>
        curlfds = <optimized out>
        timeout_internal = -1
        retcode = <optimized out>
        a_few_on_stack = {{fd = 42, events = 1, revents = 0}, {fd = 40, events = 1, revents = 0}, {fd = 969403248, events = 32609, revents = 0}, {fd = 4096, events = 0, revents = 0}, {fd = 1, events = 0, revents = 0}, {fd = 335544320, events = 0, revents = 0}, {fd = 969403248, events = 32609, revents = 0}, {fd = 4096, events = 0, revents = 0}, {fd = 1, events = 0, revents = 0}, {fd = 335544320, events = 0, revents = 0}}
        ufds = 0x7f60ff7f8d50
        ufds_malloc = <optimized out>
#4  0x00007f6139a62dad in multi_wait (use_wakeup=true, extrawait=true, ret=<optimized out>, timeout_ms=<optimized out>, extra_nfds=<optimized out>, extra_fds=<optimized out>, multi=<optimized out>)
    at ../../lib/multi.c:1478
#5  curl_multi_poll (multi=<optimized out>, extra_fds=<optimized out>, extra_nfds=<optimized out>, timeout_ms=<optimized out>, ret=<optimized out>) at ../../lib/multi.c:1479
#6  0x00007f6139a3f096 in easy_transfer (multi=<optimized out>) at ../../lib/easy.c:665
        still_running = 0
        done = <optimized out>
        mcode = <optimized out>
        result = CURLE_OK
        multi = 0x7f60f4043980
        mcode = <optimized out>
        result = CURLE_OK
        pipe_st = {old_pipe_act = {__sigaction_handler = {sa_handler = 0x1, sa_sigaction = 0x1}, sa_mask = {__val = {4096, 140055573060374, 140055573052232, 18446744073709551615, 140055573060163, 140055030877001, 0, 94882899115024, 0, 140054580137264, 140055572964961, 140737175529904, 140054387529008, 140054387505536, 140054387529008, 140054387505536}}, sa_flags = 335544320, sa_restorer = 0x7f6139c7eb70 <__restore_rt>}, no_signal = false}
#7  easy_perform (events=false, data=0x7f60f4049530) at ../../lib/easy.c:758
        multi = 0x7f60f4043980
        mcode = <optimized out>
        result = CURLE_OK
        pipe_st = {old_pipe_act = {__sigaction_handler = {sa_handler = 0x1, sa_sigaction = 0x1}, sa_mask = {__val = {4096, 140055573060374, 140055573052232, 18446744073709551615, 140055573060163, 140055030877001, 0, 94882899115024, 0, 140054580137264, 140055572964961, 140737175529904, 140054387529008, 140054387505536, 140054387529008, 140054387505536}}, sa_flags = 335544320, sa_restorer = 0x7f6139c7eb70 <__restore_rt>}, no_signal = false}
#8  curl_easy_perform (data=0x7f60f4049530) at ../../lib/easy.c:777
#9  0x00007f611a595e62 in flatpak_download_http_uri_once
    (session=0x7f60f40292f0, data=0x7f60ff7f8fe0, uri=0x7f60f4089e50 "https://dl.flathub.org/repo/summaries/d4ae95d361620008e68e2196bfa86553e66e3000506563ba51dbed1754508fe6.gz", error=0x7f60ff7f8fc8)
    at ../common/flatpak-utils-http.c:520
        res = <optimized out>
        auth_header = <optimized out>
        cache_header = 0x0
        header_list = 0x0
        curl_lock = 0x7f60f40292f8
        response = 140054580137824
        curl = 0x7f60f4049530
#10 0x00007f611a5beb41 in flatpak_load_uri_full.constprop.0
    (http_session=0x7f60f40292f0, uri=uri@entry=0x7f60f4089e50 "https://dl.flathub.org/repo/summaries/d4ae95d361620008e68e2196bfa86553e66e3000506563ba51dbed1754508fe6.gz", flags=flags@entry=FLATPAK_HTTP_FLAGS_NONE, token=token@entry=0x0, progress=progress@entry=0x0, user_data=user_data@entry=0x0, out_content_type=0x0, cancellable=0x0, error=0x7f60ff7fd6f8, out_www_authenticate=0x0, out_status=0x0, auth=0x0)
    at ../common/flatpak-utils-http.c:973
        data = {context = 0x7f60f41789f0, done = 0, error = 0x0, flags = FLATPAK_HTTP_FLAGS_NONE, auth = 0x0, token = 0x0, progress = 0x0, cancellable = 0x0, user_data = 0x0, cache_data = 0x0, downloaded_bytes = 64929, status = 0, hdr_content_type = 0x7f60f40b0f50 "application/octet-stream", hdr_www_authenticate = 0x0, hdr_etag = 0x7f60f4046360 "\"65015482-101a7e\"", hdr_last_modified = 0x7f60f417bfc0 "Wed, 13 Sep 2023 06:19:46 GMT", hdr_cache_control = 0x7f60f4160950 "max-age=3600, public", hdr_expires = 0x7f60f417c150 "Wed, 13 Sep 2023 07:20:23 GMT", hdr_content_encoding = 0x0, out = 0x0, content = 0x7f60f404f950, out_tmpfile = 0x0, out_tmpfile_parent_dfd = 0, buffer = '\000' <repeats 16383 times>, last_progress_time = 442625944, store_compressed = 0}
        local_error = 0x0
        n_retries_remaining = <optimized out>
        main_context = 0x7f60f41789f0
        success = <optimized out>
#11 0x00007f611a55670a in flatpak_load_uri
    (error=0x7f60ff7fd6f8, cancellable=0x0, out_content_type=0x0, user_data=0x0, progress=0x0, token=0x0, flags=FLATPAK_HTTP_FLAGS_NONE, uri=0x7f60f4089e50 "https://dl.flathub.org/repo/summaries/d4ae95d361620008e68e2196bfa86553e66e3000506563ba51dbed1754508fe6.gz", http_session=<optimized out>) at ../common/flatpak-utils-http.c:1013
--Type <RET> for more, q to quit, c to continue without paging--
        filename = 0x7f60f41789a0 "d4ae95d361620008e68e2196bfa86553e66e3000506563ba51dbed1754508fe6.gz"
        subsummary_url = 0x7f60f4089e50 "https://dl.flathub.org/repo/summaries/d4ae95d361620008e68e2196bfa86553e66e3000506563ba51dbed1754508fe6.gz"
        old_checksum = 0x7f60f4178950 "978274e334b274f4ca44312fcb481f88e962eeadb67ac3c11ac17198ec547cee"
        old_summary = 0x0
        history = {base = <optimized out>, size = <optimized out>}
        history_len = <optimized out>
        url = 0x7f60f417c3c0 "https://dl.flathub.org/repo/"
        is_local = <optimized out>
        subsummary_info = {base = <optimized out>, size = <optimized out>}
        cache_name = 0x7f60f404c040 "flathub-x86_64-d4ae95d361620008e68e2196bfa86553e66e3000506563ba51dbed1754508fe6"
        cache_error = 0x7f60f404fb90
        summary_z = 0x0
        checksum = 0x7f60f4178190 "d4ae95d361620008e68e2196bfa86553e66e3000506563ba51dbed1754508fe6"
        summary = 0x0
        sha256 = 0x0
        checksum_bytes = <optimized out>
        subsummary = <optimized out>
        subsummary_info_v = <optimized out>
        bytes = 0x0
#12 flatpak_dir_remote_fetch_indexed_summary
    (error=0x7f60ff7fd6f8, cancellable=0x0, out_summary=0x7f60ff7fd1c8, only_cached=<optimized out>, subsummary_info_v=<optimized out>, arch=0x7f611a5cc96a "x86_64", name_or_uri=0x7f60f4028830 "flathub", self=0x7f60f4028310) at ../common/flatpak-dir.c:12606
        filename = 0x7f60f41789a0 "d4ae95d361620008e68e2196bfa86553e66e3000506563ba51dbed1754508fe6.gz"
        subsummary_url = 0x7f60f4089e50 "https://dl.flathub.org/repo/summaries/d4ae95d361620008e68e2196bfa86553e66e3000506563ba51dbed1754508fe6.gz"
        old_checksum = 0x7f60f4178950 "978274e334b274f4ca44312fcb481f88e962eeadb67ac3c11ac17198ec547cee"
        old_summary = 0x0
        history = {base = <optimized out>, size = <optimized out>}
        history_len = <optimized out>
        url = 0x7f60f417c3c0 "https://dl.flathub.org/repo/"
        is_local = <optimized out>
        subsummary_info = {base = <optimized out>, size = <optimized out>}
        cache_name = 0x7f60f404c040 "flathub-x86_64-d4ae95d361620008e68e2196bfa86553e66e3000506563ba51dbed1754508fe6"
        cache_error = 0x7f60f404fb90
        summary_z = 0x0
        checksum = 0x7f60f4178190 "d4ae95d361620008e68e2196bfa86553e66e3000506563ba51dbed1754508fe6"
        summary = 0x0
        sha256 = 0x0
        checksum_bytes = <optimized out>
        subsummary = <optimized out>
        subsummary_info_v = <optimized out>
        bytes = 0x0
#13 flatpak_remote_state_ensure_subsummary (self=0x7f60f4023990, dir=0x7f60f4028310, arch=0x7f611a5cc96a "x86_64", only_cached=<optimized out>, cancellable=0x0, error=0x7f60ff7fd6f8)
    at ../common/flatpak-dir.c:577
        subsummary = <optimized out>
        subsummary_info_v = <optimized out>
        bytes = 0x0
#14 0x00007f611a5b12e6 in _flatpak_dir_get_remote_state.constprop.0
    (self=0x7f60f4028310, remote_or_uri=remote_or_uri@entry=0x7f60f402aa60 "flathub", optional=optional@entry=1, local_only=local_only@entry=0, only_cached=only_cached@entry=0, cancellable=cancellable@entry=0x0, error=0x7f60ff7fd6f8, opt_summary_sig=0x0, opt_summary=0x0, opt_summary_is_index=0) at ../common/flatpak-dir.c:12872
        require_subset = 0x0
        subsummaries = {base = 0x7f60f41740a0, size = <optimized out>}
        n_subsummaries = <optimized out>
        state = 0x7f60f4023990
        sideload_paths = <optimized out>
        url = 0x7f60f402b3d0 "https://dl.flathub.org/repo/"
        my_error = 0x0
        is_local = <optimized out>
        got_summary = <optimized out>
        arch = 0x7f611a5cc96a "x86_64"
        index_bytes = 0x7f60f40d0290
        index_sig_bytes = 0x0
        summary_bytes = 0x0
        summary_sig_bytes = 0x0
#15 0x00007f611a5911b0 in flatpak_dir_get_remote_state_optional (only_cached=0, error=0x7f60ff7fd6f8, cancellable=0x0, remote=0x7f60f402aa60 "flathub", self=<optimized out>) at ../common/flatpak-dir.c:12953
        priv = 0x7f60f4028210
        state = 0x0
        cached_state = 0x0
#16 flatpak_transaction_ensure_remote_state
    (self=self@entry=0x7f60f40282f0, kind=kind@entry=FLATPAK_TRANSACTION_OPERATION_UPDATE, remote=remote@entry=0x7f60f402aa60 "flathub", opt_arch=opt_arch@entry=0x7f60f402aa00 "x86_64", error=error@entry=0x7f60ff7fd6f8) at ../common/flatpak-transaction.c:2057
        priv = 0x7f60f4028210
        state = 0x0
        cached_state = 0x0
#17 0x00007f611a5943ea in flatpak_transaction_add_ref (self=self@entry=0x7f60f40282f0, remote=0x7f60f402aa60 "flathub", remote@entry=0x0, ref=ref@entry=0x7f60f402cfe0, subpaths=0x7f60f4029d20, 
--Type <RET> for more, q to quit, c to continue without paging--
    subpaths@entry=0x0, previous_ids=previous_ids@entry=0x0, commit=commit@entry=0x0, kind=FLATPAK_TRANSACTION_OPERATION_UPDATE, bundle=0x0, external_metadata=0x0, pin_on_deploy=0, error=0x7f60ff7fd6f8)
    at ../common/flatpak-transaction.c:2732
        arch = 0x7f60f402aa00 "x86_64"
        priv = <optimized out>
        origin = 0x7f60f402aa60 "flathub"
        new_subpaths = <optimized out>
        pref = <optimized out>
        origin_remote = 0x0
        state = 0x0
        op = <optimized out>
        __func__ = "flatpak_transaction_add_ref"
#18 0x00007f611a594e82 in flatpak_transaction_add_update (self=0x7f60f40282f0, ref=<optimized out>, subpaths=0x0, commit=0x0, error=0x7f60ff7fd6f8) at ../common/flatpak-transaction.c:2940
        all_paths = {0x0}
        decomposed = 0x7f60f402cfe0
        __func__ = "flatpak_transaction_add_update"
#19 0x00007f611a576f02 in flatpak_installation_list_installed_refs_for_update (self=self@entry=0x7f610c010880, cancellable=cancellable@entry=0x564ba5feeff0, error=error@entry=0x7f60ff7fd880)
    at ../common/flatpak-installation.c:1103
        installed_ref = 0x7f60f40323c0
        ref = 0x7f60f4020010 "app/app.ytmdesktop.ytmdesktop/x86_64/stable"
        i = 0
        installed_refs = 0x7f60f4009430
        installed_refs_hash = <optimized out>
        installed_refs_for_update = 0x0
        installed_refs_for_update_set = 0x0
        related_to_ops = 0x0
        eol_rebase_refs = 0x0
        transaction = 0x7f60f40282f0
        local_error = 0x0
        _glnx_ht_iter_guard_17 = <optimized out>
        __func__ = "flatpak_installation_list_installed_refs_for_update"
#20 0x00007f611ab3751e in gs_flatpak_add_updates (self=0x7f610c012010, list=0x564ba5ff4d70, interactive=1, cancellable=0x564ba5feeff0, error=0x7f60ff7fd880) at ../plugins/flatpak/gs-flatpak.c:2105
        xrefs = 0x0
        installation = 0x7f610c010880
#21 0x00007f611ab45343 in gs_plugin_add_updates (plugin=0x564ba58831e0, list=0x564ba5ff4d70, cancellable=0x564ba5feeff0, error=<optimized out>) at ../plugins/flatpak/gs-plugin-flatpak.c:484
        flatpak = 0x7f610c012010
        local_error = 0x0
        i = 0
        self = 0x564ba58831e0
        interactive = 1
#22 0x00007f613aecbd75 in gs_plugin_loader_call_vfunc (app=0x0, list=0x564ba5ff4d70, refine_flags=<optimized out>, error=0x7f60ff7fd970, cancellable=<optimized out>, plugin=0x564ba58831e0, helper=0x564ba62c06b0)
    at ../lib/gs-plugin-loader.c:624
        plugin_func = 0x7f611ab452b0 <gs_plugin_add_updates>
        GsProfilerPluginLoader = {begin_time = 442270485158, name = 0x7f60f40096f0 "vfunc:get-updates", description = 0x7f60f4007130 "running get-updates on plugin=fwupd with refine-flags=require-size,require-version,require-update-details,require-icon,require-runtime with interactive=True, elapsed time since creation 48ms"}
        ScopedGsProfilerTraceHeadPluginLoader = 0x7f60ff7fd9b0
        plugin_loader = 0x564ba599e890
        action = GS_PLUGIN_ACTION_GET_UPDATES
        ret = 1
        func = 0x7f611ab452b0 <gs_plugin_add_updates>
        timer = 0x7f60f40095f0
        sysprof_name = 0x7f60f4009b10 "vfunc:get-updates"
        error_local = 0x0
        sysprof_message = 0x7f6120036460 "running get-updates on plugin=fwupd with refine-flags=require-size,require-version,require-update-details,require-icon,require-runtime with interactive=True, elapsed time since creation 48ms"
        plugin = 0x564ba58831e0
        local_error = 0x0
        i = 7
        GsProfilerPluginLoader = {begin_time = 442222193962, name = 0x7f60f40015f0 "run-results:get-updates", description = 0x7f60f4002c00 "running get-updates with refine-flags=require-size,require-version,require-update-details,require-icon,require-runtime with interactive=True"}
        ScopedGsProfilerTraceHeadPluginLoader = 0x7f60ff7fd990
        plugin_loader = 0x564ba599e890
        sysprof_name = 0x7f60f40017b0 "run-results:get-updates"
        sysprof_message = 0x7f60f4002af0 "running get-updates with refine-flags=require-size,require-version,require-update-details,require-icon,require-runtime with interactive=True"
        __func__ = "gs_plugin_loader_run_results"
#23 gs_plugin_loader_run_results (helper=0x564ba62c06b0, cancellable=0x564ba5feeff0, error=0x7f60ff7fda68) at ../lib/gs-plugin-loader.c:752
        plugin = 0x564ba58831e0
        local_error = 0x0
        i = 7
        GsProfilerPluginLoader = {begin_time = 442222193962, name = 0x7f60f40015f0 "run-results:get-updates", description = 0x7f60f4002c00 "running get-updates with refine-flags=require-size,require-version,require-update-details,require-icon,require-runtime with interactive=True"}
        ScopedGsProfilerTraceHeadPluginLoader = 0x7f60ff7fd990
        plugin_loader = 0x564ba599e890
        sysprof_name = 0x7f60f40017b0 "run-results:get-updates"
        sysprof_message = 0x7f60f4002af0 "running get-updates with refine-flags=require-size,require-version,require-update-details,require-icon,require-runtime with interactive=True"
--Type <RET> for more, q to quit, c to continue without paging--
        __func__ = "gs_plugin_loader_run_results"
#24 0x00007f613aed48ee in gs_plugin_loader_process_old_api_job_cb (task_data=0x0, user_data=0x564ba599e890) at ../lib/gs-plugin-loader.c:3129
        GsProfilerPluginLoader = {begin_time = 442222190436, name = 0x7f60f4001090 "process-thread:get-updates", description = 0x7f60f4001dc0 "running get-updates with refine-flags=require-size,require-version,require-update-details,require-icon,require-runtime with interactive=True"}
        ScopedGsProfilerTraceHeadPluginLoader = 0x7f60ff7fda80
        task = 0x564ba60c16a0
        error = 0x0
        cancellable = 0x564ba5feeff0
        helper = 0x564ba62c06b0
        dedupe_flags = <optimized out>
        list = 0x564ba5ff4d70
        action = GS_PLUGIN_ACTION_GET_UPDATES
        plugin_loader = 0x564ba599e890
        add_to_pending_array = <optimized out>
        context = 0x7f60f4001920
        pusher = 0x7f60f4001920
        sysprof_name = 0x7f60f4000e60 "process-thread:get-updates"
        sysprof_message = 0x7f60f40028b0 "running get-updates with refine-flags=require-size,require-version,require-update-details,require-icon,require-runtime with interactive=True"
        job_debug = 0x0
#25 0x00007f613aaaa112 in g_thread_pool_thread_proxy (data=<optimized out>) at ../glib/gthreadpool.c:350
        task = 0x564ba60c16a0
        pool = 0x564ba596a180
#26 0x00007f613aaa79f3 in g_thread_proxy (data=0x7f611c000df0) at ../glib/gthread.c:831
        thread = 0x7f611c000df0
        __func__ = "g_thread_proxy"
#27 0x00007f6139ccd907 in start_thread (arg=<optimized out>) at pthread_create.c:444
        ret = <optimized out>
        pd = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140055558280720, 8885542736429155504, 140054580160192, -120, 0, 140055288993824, 8885542736408183984, 8884554696548123824}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
#28 0x00007f6139d53870 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
(gdb) frame 4
#4  0x00007f6139a62dad in multi_wait (use_wakeup=true, extrawait=true, ret=<optimized out>, timeout_ms=<optimized out>, extra_nfds=<optimized out>, extra_fds=<optimized out>, multi=<optimized out>)
    at ../../lib/multi.c:1478
Downloading source file /usr/src/debug/curl-8.0.1-3.fc38.x86_64/build-full/lib/../../lib/multi.c
1478    {           
(gdb) info locals
sockbunch = <optimized out>
bitmap = <optimized out>
nfds = 0
curlfds = <optimized out>
retcode = 0
a_few_on_stack = <optimized out>
ufds = <optimized out>
data = <optimized out>
timeout_internal = <optimized out>
ufds_malloc = false
i = <optimized out>
data = <optimized out>
sockbunch = <optimized out>
bitmap = <optimized out>
i = <optimized out>
nfds = <optimized out>
curlfds = <optimized out>
timeout_internal = <optimized out>
retcode = <optimized out>
a_few_on_stack = <optimized out>
ufds = <optimized out>
ufds_malloc = <optimized out>
s = <optimized out>
s = <optimized out>
pollrc = <optimized out>
r = <optimized out>
mask = <optimized out>
buf = <optimized out>
nread = <optimized out>
sleep_ms = <optimized out>
(gdb) frame 5
#5  curl_multi_poll (multi=<optimized out>, extra_fds=<optimized out>, extra_nfds=<optimized out>, timeout_ms=<optimized out>, ret=<optimized out>) at ../../lib/multi.c:1479
1479	  return multi_wait(multi, extra_fds, extra_nfds, timeout_ms, ret, TRUE,
(gdb) info locals
No locals.

pwithnall added a commit to pwithnall/flatpak that referenced this issue Sep 13, 2023
There was already a timeout set using `CURLOPT_CONNECTTIMEOUT`, but that
only affects the initial connection. Once a HTTP connection is
established, the timeout is ineffective.

That means that once a HTTP connection is established, there is no bound
on the length of time a download can take. Sometimes, downloads drop to
very low speeds (for Networking Reasons) and we need a way to give up on
a download if that happens.

So, set a low speed limit of 10KB/s for 60s. If a curl download goes
more slowly than this, it will be considered timed out, and the
`CURLE_OPERATION_TIMEDOUT` code path will be taken.

Signed-off-by: Philip Withnall <[email protected]>

Fixes: flatpak#5519
@pwithnall
Copy link
Collaborator

#5520 might fix this, but it’s a guess. I cannot reproduce the issue.

From frame 10 (flatpak_load_uri_full()), the data struct says that 64929 bytes have been downloaded already, which indicates that the HTTP connection has been successful, but it’s then fallen over. The full compressed summary file is about 1.5MB big, so the download has a way to go.

Adding a low-speed timeout should help with that. I’m guessing it’s fallen over for misc Networking Reasons, rather than any bugs in the client side (libcurl should be pretty robust as a HTTP implementation!).

smcv pushed a commit that referenced this issue Sep 15, 2023
There was already a timeout set using `CURLOPT_CONNECTTIMEOUT`, but that
only affects the initial connection. Once a HTTP connection is
established, the timeout is ineffective.

That means that once a HTTP connection is established, there is no bound
on the length of time a download can take. Sometimes, downloads drop to
very low speeds (for Networking Reasons) and we need a way to give up on
a download if that happens.

So, set a low speed limit of 10KB/s for 60s. If a curl download goes
more slowly than this, it will be considered timed out, and the
`CURLE_OPERATION_TIMEDOUT` code path will be taken.

Signed-off-by: Philip Withnall <[email protected]>

Fixes: #5519
@saenglert
Copy link

I think I am affected by this issue as well. Is there a way for me to update flatpak to #5520 and try out the fix?

When trying to install an app via flatpak (i.e. flatpak install org.mozilla.firefox) Gnome freezes periodically.

Using strace flatpak install org.mozilla.firefox I found what, I believe, are two bottlenecks:

The close function takes a couple of seconds to complete:
Bildschirmfoto vom 2023-10-30 08-56-12

Secondly (and I guess that's the bigger issue) the poll function starts only returning timeouts:
Bildschirmfoto vom 2023-10-30 08-53-56

smcv pushed a commit to smcv/flatpak that referenced this issue Nov 14, 2023
There was already a timeout set using `CURLOPT_CONNECTTIMEOUT`, but that
only affects the initial connection. Once a HTTP connection is
established, the timeout is ineffective.

That means that once a HTTP connection is established, there is no bound
on the length of time a download can take. Sometimes, downloads drop to
very low speeds (for Networking Reasons) and we need a way to give up on
a download if that happens.

So, set a low speed limit of 10KB/s for 60s. If a curl download goes
more slowly than this, it will be considered timed out, and the
`CURLE_OPERATION_TIMEDOUT` code path will be taken.

Signed-off-by: Philip Withnall <[email protected]>

Fixes: flatpak#5519
(cherry picked from commit d6b10c2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants