qBit v4.4.3.1 + libtorrent 2.0.x freezes regularly (Arch Linux)
qbittorrent: 4.4.3.1 x64 OS: Arch Linux Qt: 6.3.0 and 5.15.4 libtorrent-rasterbar: 2.0.6
I reported it first in the qBittorrent bugtracker but the problem only happens with version 2.x of libtorrent, if I use version 1.x it works without problems. So I'm not sure where the problem really lies: in the program or in the library.
I have the computer always on with qBittorrent running. Every now and then qBittorrent freezes. I have to restart the computer because I can't even kill the process.
Some more information: I met this issue four times in the last month. When I meet this issue, I need to long-press the power key to shutdown because even the shutdown freezes. ps -f also freezes. After killing qBittorrent by SIGKILL, ps -f works but qBittorrent is defunct, new qBittorrent cannot be opened, and shutdown still freezes.
Stack trace
Stack trace of thread 4804:
#0 0x00007f7320523f04 n/a (libtorrent-rasterbar.so.2.0 + 0x2cef04)
#1 0x00007f732054f192 n/a (libtorrent-rasterbar.so.2.0 + 0x2fa192)
#2 0x00007f73203f3233 n/a (libtorrent-rasterbar.so.2.0 + 0x19e233)
#3 0x00007f73203f45a8 n/a (libtorrent-rasterbar.so.2.0 + 0x19f5a8)
#4 0x00007f732060ed1f n/a (libtorrent-rasterbar.so.2.0 + 0x3b9d1f)
#5 0x00007f732047c421 n/a (libtorrent-rasterbar.so.2.0 + 0x227421)
#6 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#7 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#8 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 4808:
#0 0x00007f731f2eec3f __poll (libc.so.6 + 0x105c3f)
#1 0x00007f731efb1f68 n/a (libglib-2.0.so.0 + 0xaaf68)
#2 0x00007f731ef59392 g_main_context_iteration (libglib-2.0.so.0 + 0x52392)
#3 0x00007f731fa618d0 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x32c8d0)
#4 0x00007f731f85094b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x11b94b)
#5 0x00007f731f9334ff _ZN7QThread4execEv (libQt6Core.so.6 + 0x1fe4ff)
#6 0x00007f731f999455 n/a (libQt6Core.so.6 + 0x264455)
#7 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#8 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 4800:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274920 pthread_cond_wait (libc.so.6 + 0x8b920)
#2 0x00007f731f5ccd71 __gthread_cond_wait (libstdc++.so.6 + 0xced71)
#3 0x00007f731f5a20fe _ZN9__gnu_cxx17__nothrow_wait_cv4waitERSt11unique_lockISt5mutexE (libstdc++.so.6 + 0xa40fe)
#4 0x00007f732047830c n/a (libtorrent-rasterbar.so.2.0 + 0x22330c)
#5 0x00007f7320570811 _ZNK10libtorrent14torrent_handle6statusENS_5flags13bitfield_flagIjNS_16status_flags_tagEvEE (libtorrent-rasterbar.so.2.0 + 0x31b811)
#6 0x0000562c189e9638 n/a (qbittorrent + 0x146638)
#7 0x0000562c189eb377 n/a (qbittorrent + 0x148377)
#8 0x0000562c189c17db n/a (qbittorrent + 0x11e7db)
#9 0x0000562c189c4bfb n/a (qbittorrent + 0x121bfb)
#10 0x00007f731f88e74b _ZN7QObject5eventEP6QEvent (libQt6Core.so.6 + 0x15974b)
#11 0x00007f7321087b5d _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt6Widgets.so.6 + 0x175b5d)
#12 0x00007f731f84843a _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt6Core.so.6 + 0x11343a)
#13 0x00007f731f848608 _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData (libQt6Core.so.6 + 0x113608)
#14 0x00007f731fa63768 n/a (libQt6Core.so.6 + 0x32e768)
#15 0x00007f731ef5bc6b g_main_context_dispatch (libglib-2.0.so.0 + 0x54c6b)
#16 0x00007f731efb2001 n/a (libglib-2.0.so.0 + 0xab001)
#17 0x00007f731ef59392 g_main_context_iteration (libglib-2.0.so.0 + 0x52392)
#18 0x00007f731fa618d0 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x32c8d0)
#19 0x00007f731f85094b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x11b94b)
#20 0x00007f731f84afb9 _ZN16QCoreApplication4execEv (libQt6Core.so.6 + 0x115fb9)
#21 0x0000562c189621ec n/a (qbittorrent + 0xbf1ec)
#22 0x00007f731f212290 n/a (libc.so.6 + 0x29290)
#23 0x00007f731f21234a __libc_start_main (libc.so.6 + 0x2934a)
#24 0x0000562c18969ed5 n/a (qbittorrent + 0xc6ed5)
Stack trace of thread 4805:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274920 pthread_cond_wait (libc.so.6 + 0x8b920)
#2 0x00007f732060ead7 n/a (libtorrent-rasterbar.so.2.0 + 0x3b9ad7)
#3 0x00007f732035135d n/a (libtorrent-rasterbar.so.2.0 + 0xfc35d)
#4 0x00007f73203478c4 n/a (libtorrent-rasterbar.so.2.0 + 0xf28c4)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 4802:
#0 0x00007f731f2eec3f __poll (libc.so.6 + 0x105c3f)
#1 0x00007f731e27d20b n/a (libxcb.so.1 + 0xd20b)
#2 0x00007f731e27eccd xcb_wait_for_event (libxcb.so.1 + 0xeccd)
#3 0x00007f731b9ee782 n/a (libQt6XcbQpa.so.6 + 0x51782)
#4 0x00007f731f999455 n/a (libQt6Core.so.6 + 0x264455)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 4809:
#0 0x00007f731f2eec3f __poll (libc.so.6 + 0x105c3f)
#1 0x00007f731efb1f68 n/a (libglib-2.0.so.0 + 0xaaf68)
#2 0x00007f731ef59392 g_main_context_iteration (libglib-2.0.so.0 + 0x52392)
#3 0x00007f731fa618d0 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x32c8d0)
#4 0x00007f731f85094b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x11b94b)
#5 0x00007f731f9334ff _ZN7QThread4execEv (libQt6Core.so.6 + 0x1fe4ff)
#6 0x00007f731f999455 n/a (libQt6Core.so.6 + 0x264455)
#7 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#8 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 346242:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 346245:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 4803:
#0 0x00007f731f2eec3f __poll (libc.so.6 + 0x105c3f)
#1 0x00007f731efb1f68 n/a (libglib-2.0.so.0 + 0xaaf68)
#2 0x00007f731ef59392 g_main_context_iteration (libglib-2.0.so.0 + 0x52392)
#3 0x00007f731fa618d0 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x32c8d0)
#4 0x00007f731f85094b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x11b94b)
#5 0x00007f731f9334ff _ZN7QThread4execEv (libQt6Core.so.6 + 0x1fe4ff)
#6 0x00007f731fcd0f5f n/a (libQt6DBus.so.6 + 0x33f5f)
#7 0x00007f731f999455 n/a (libQt6Core.so.6 + 0x264455)
#8 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#9 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349754:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 4859:
#0 0x00007f731f2eec3f __poll (libc.so.6 + 0x105c3f)
#1 0x00007f731efb1f68 n/a (libglib-2.0.so.0 + 0xaaf68)
#2 0x00007f731ef59392 g_main_context_iteration (libglib-2.0.so.0 + 0x52392)
#3 0x00007f731fa618d0 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x32c8d0)
#4 0x00007f731f85094b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x11b94b)
#5 0x00007f731f9334ff _ZN7QThread4execEv (libQt6Core.so.6 + 0x1fe4ff)
#6 0x00007f731f999455 n/a (libQt6Core.so.6 + 0x264455)
#7 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#8 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 346238:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349758:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349764:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 348851:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349024:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349762:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349756:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 346391:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 348852:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349753:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349749:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349750:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349751:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349752:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349757:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349755:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 346244:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349026:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349761:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 346257:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 346248:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 342087:
#0 0x00007f731f2ea953 __open64 (libc.so.6 + 0x101953)
#1 0x00007f73203751d5 n/a (libtorrent-rasterbar.so.2.0 + 0x1201d5)
#2 0x00007f73203eed88 n/a (libtorrent-rasterbar.so.2.0 + 0x199d88)
#3 0x00007f73203f0881 n/a (libtorrent-rasterbar.so.2.0 + 0x19b881)
#4 0x00007f73203f24a9 n/a (libtorrent-rasterbar.so.2.0 + 0x19d4a9)
#5 0x00007f7320609f36 n/a (libtorrent-rasterbar.so.2.0 + 0x3b4f36)
#6 0x00007f73203ed833 n/a (libtorrent-rasterbar.so.2.0 + 0x198833)
#7 0x00007f73203f43af n/a (libtorrent-rasterbar.so.2.0 + 0x19f3af)
#8 0x00007f73203e2ba6 n/a (libtorrent-rasterbar.so.2.0 + 0x18dba6)
#9 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#10 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#11 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#12 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349047:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 4811:
#0 0x00007f731f2eec3f __poll (libc.so.6 + 0x105c3f)
#1 0x00007f731efb1f68 n/a (libglib-2.0.so.0 + 0xaaf68)
#2 0x00007f731ef59392 g_main_context_iteration (libglib-2.0.so.0 + 0x52392)
#3 0x00007f731fa618d0 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x32c8d0)
#4 0x00007f731f85094b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x11b94b)
#5 0x00007f731f9334ff _ZN7QThread4execEv (libQt6Core.so.6 + 0x1fe4ff)
#6 0x00007f731f999455 n/a (libQt6Core.so.6 + 0x264455)
#7 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#8 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 344687:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 342086:
#0 0x00007ffcff955a0d __vdso_clock_gettime (linux-vdso.so.1 + 0xa0d)
#1 0x00007f731f2c0ecd __clock_gettime (libc.so.6 + 0xd7ecd)
#2 0x00007f731f5c9ac3 _ZNSt6chrono3_V212system_clock3nowEv (libstdc++.so.6 + 0xcbac3)
#3 0x00007f73203ed3a1 n/a (libtorrent-rasterbar.so.2.0 + 0x1983a1)
#4 0x00007f73203f43af n/a (libtorrent-rasterbar.so.2.0 + 0x19f3af)
#5 0x00007f73203e2ba6 n/a (libtorrent-rasterbar.so.2.0 + 0x18dba6)
#6 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#7 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#8 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#9 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349760:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349759:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349763:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 346387:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 348850:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 349025:
#0 0x00007f731f272119 n/a (libc.so.6 + 0x89119)
#1 0x00007f731f274f27 pthread_cond_clockwait (libc.so.6 + 0x8bf27)
#2 0x00007f73203e2c56 n/a (libtorrent-rasterbar.so.2.0 + 0x18dc56)
#3 0x00007f732035ae46 n/a (libtorrent-rasterbar.so.2.0 + 0x105e46)
#4 0x00007f731f5d4183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183)
#5 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#6 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 4806:
#0 0x00007f731f2eec3f __poll (libc.so.6 + 0x105c3f)
#1 0x00007f731efb1f68 n/a (libglib-2.0.so.0 + 0xaaf68)
#2 0x00007f731ef59392 g_main_context_iteration (libglib-2.0.so.0 + 0x52392)
#3 0x00007f731fa618d0 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x32c8d0)
#4 0x00007f731f85094b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x11b94b)
#5 0x00007f731f9334ff _ZN7QThread4execEv (libQt6Core.so.6 + 0x1fe4ff)
#6 0x00007f731f999455 n/a (libQt6Core.so.6 + 0x264455)
#7 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#8 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
Stack trace of thread 4807:
#0 0x00007f731f2eec3f __poll (libc.so.6 + 0x105c3f)
#1 0x00007f731efb1f68 n/a (libglib-2.0.so.0 + 0xaaf68)
#2 0x00007f731ef59392 g_main_context_iteration (libglib-2.0.so.0 + 0x52392)
#3 0x00007f731fa6195a _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x32c95a)
#4 0x00007f731f85094b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x11b94b)
#5 0x00007f731f9334ff _ZN7QThread4execEv (libQt6Core.so.6 + 0x1fe4ff)
#6 0x00007f731f999455 n/a (libQt6Core.so.6 + 0x264455)
#7 0x00007f731f27554d n/a (libc.so.6 + 0x8c54d)
#8 0x00007f731f2fa874 __clone (libc.so.6 + 0x111874)
ELF object binary architecture: AMD x86-64
When I meet this issue, I need to long-press the power key to shutdown because even the shutdown freezes.
ps -falso freezes.
Exactly same problem. I had to press Alt + Impr Pant + R E I S U B to reboot the system.
Could be related: #6937
It's possible.
I have read that issue and what is not clear to me is how to change the libtorrent values: close_file_interval and disk_io_read_mode. In the Advanced section of qBittorrent preferences I cannot find these values.
How many torrents do you have and how old is the settings profile? Did you have similar issues with a fresh profile and only a very small amount of torrents? Just wondering if the issue I've encountered could be similar to this or distinct
Around 2431 torrents. I don't know how old my profile is, how do I see that? The configuration file is dated today but it is much older.
I'm not sure how to check its date if it's not on any of the files, but it sure sounds old enough given the amount of torrents. I lately restored my old profile that I cleaned up due to issues I had generally with qBittorrent in order to check some files of older torrents, and also noticed it was lagging heavily, especially on startup (but not instantly, it could be around a second after opening). Switching back to the new almost-fresh profile made it work as it should on the other hand. My amount of torrents was much smaller though, it could be around 100 or so, perhaps too many of them in queued/unfinished state? Worth to note I'm on Windows though, which is why I'm unsure if it could be the same thing or not. But try renaming the old profile (not sure if on Linux the config and the stuff like BT_backup is stored in the same dir, but if not, then all of them) and have just like 1-3 torrents in the new one with default settings and see if the freezes occur there as well, if they do then the issue would be distinct
I have gone back to using version 1.x of libtorrent, I don't really need the features of version 2.x. When libtorrent 2.x manages memory better, I will try it again.
I also have similar issues I've reverted to the 4.3.9 version that is in a docker container but I prefer to run natively. The thing is, my profile is really old so old that it even was running on ubuntu 18.04. on top of that, I am running 2500+ torrents and if I use the newest version of qbittorrent(nox) it really chugs sometimes. This is also on a consistent interval but gets worse over time, memory use does not get worse but the virtual memory requested is insane and higher than what my system possibly even has. in the range of 1024 gigs and that is more than the boot disk even has. I've been looking at the settings file but to my knowledge, it does not seem to have any issues. if anyone wants the config I could send it but not publicly.
I can also confirm that I hit it with libtorrent-rasterbar-2.0.7 and net-p2p/qbittorrent-4.4.5-r1. My qbittorrent profile has a handful of years for sure.
The problem is not the qbittorrent profile or its age, since the problem is not in qbittorrent. The problem is caused by libtorrent 2.x because of the way it manages memory and/or resources.
I wonder if its really libtorrent problem or libtorrent is just a trigger to it. When it happens, the qbittorrent process goes defunct, 'ps aux' will hang on reading the /proc/PID_OF_QBT/cmdline indefinitely and killing it by pid is the only way to recovery, however it will then become zombie and hang around as qbittorrent <defunct>. That sounds awfully like we have some striking issue in Linux Kernel and libtorrent just manages to get there, otherwise it shouldn't ever require a full system reboot to recovery it.
There is an interesting discussion in this qBittorrent thread: https://github.com/qbittorrent/qBittorrent/issues/17545#issuecomment-1225777480
I am not entirely sure if it's related, but since rebuilding qbittorrent with 1.2 series libtorrent I no longer have this issue, and I no longer have null pointer popping out in my kernel log either. The issue could be related to triggering in-kernel fault after all
Oct 11 04:28:23 [kernel] [111115.499140] BUG: kernel NULL pointer dereference, address: 00000000000000d6
Oct 11 04:28:23 [kernel] [111115.499476] #PF: supervisor read access in kernel mode
Oct 11 04:28:23 [kernel] [111115.499744] #PF: error_code(0x0000) - not-present page
Oct 11 04:28:23 [kernel] [111115.499999] PGD 0 P4D 0
Oct 11 04:28:23 [kernel] [111115.500251] Oops: 0000 [#1] PREEMPT SMP NOPTI
Oct 11 04:28:23 [kernel] [111115.500505] CPU: 7 PID: 16002 Comm: Disk Tainted: G O 6.0.0 #1
Oct 11 04:28:23 [kernel] [111115.500767] Hardware name: To Be Filled By O.E.M. B550 Taichi/B550 Taichi, BIOS P2.20 09/29/2022
Oct 11 04:28:23 [kernel] [111115.501031] RIP: 0010:__filemap_get_folio+0x9c/0x440
Oct 11 04:28:23 [kernel] [111115.501300] Code: 10 e8 a8 a1 5e 00 48 89 c3 48 3d 02 04 00 00 74 e2 48 3d 06 04 00 00 74 da 48 85 c0 0f 84 d2 02 00 00 a8 01 0f 85 d4 02 00 00 <8b> 40 34 85 c0 7
4 c2 8d 50 01 f0 0f b1 53 34 75 f2 48 8b 54 24 28
Oct 11 04:28:23 [kernel] [111115.501595] RSP: 0000:ffff9699c751bc88 EFLAGS: 00010246
Oct 11 04:28:23 [kernel] [111115.501888] RAX: 00000000000000a2 RBX: 00000000000000a2 RCX: 0000000000000002
Oct 11 04:28:23 [kernel] [111115.502186] RDX: 000000000000002c RSI: ffff8b6ff30c9488 RDI: ffff9699c751bc98
Oct 11 04:28:23 [kernel] [111115.502482] RBP: 0000000000000000 R08: 000000000000f96f R09: 000000000000f970
Oct 11 04:28:23 [kernel] [111115.502780] R10: ffffffffffffffc0 R11: 0000000000000000 R12: 0000000000000000
Oct 11 04:28:23 [kernel] [111115.503080] R13: ffff8b76b840a2b0 R14: 000000000000f96f R15: ffff8b6f06fd6be0
Oct 11 04:28:23 [kernel] [111115.503380] FS: 00007fe6853ff6c0(0000) GS:ffff8b7dfe3c0000(0000) knlGS:0000000000000000
Oct 11 04:28:23 [kernel] [111115.503685] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Oct 11 04:28:23 [kernel] [111115.503989] CR2: 00000000000000d6 CR3: 0000000104934000 CR4: 0000000000750ee0
Oct 11 04:28:23 [kernel] [111115.504295] PKRU: 55555554
Oct 11 04:28:23 [kernel] [111115.504600] Call Trace:
Oct 11 04:28:23 [kernel] [111115.504906] <TASK>
Oct 11 04:28:23 [kernel] [111115.505208] filemap_fault+0x5a/0x990
Oct 11 04:28:23 [kernel] [111115.505515] __do_fault+0x36/0x130
Oct 11 04:28:23 [kernel] [111115.505820] do_fault+0x1da/0x440
Oct 11 04:28:23 [kernel] [111115.506123] __handle_mm_fault+0x64d/0xe40
Oct 11 04:28:23 [kernel] [111115.506428] handle_mm_fault+0xae/0x290
Oct 11 04:28:23 [kernel] [111115.506732] do_user_addr_fault+0x1cd/0x690
Oct 11 04:28:23 [kernel] [111115.507037] exc_page_fault+0x70/0x170
Oct 11 04:28:23 [kernel] [111115.507343] asm_exc_page_fault+0x22/0x30
Oct 11 04:28:23 [kernel] [111115.507647] RIP: 0033:0x7fe78358b409
Oct 11 04:28:23 [kernel] [111115.507947] Code: 66 66 2e 0f 1f 84 00 00 00 00 00 66 66 2e 0f 1f 84 00 00 00 00 00 66 66 2e 0f 1f 84 00 00 00 00 00 48 89 f8 48 83 fa 20 72 27 <c5> fe 6f 06 48 8
3 fa 40 0f 87 a9 00 00 00 c5 fe 6f 4c 16 e0 c5 fe
Oct 11 04:28:23 [kernel] [111115.508275] RSP: 002b:00007fe6853fd428 EFLAGS: 00010202
Oct 11 04:28:23 [kernel] [111115.508603] RAX: 00007fe7440063a0 RBX: 0000000000000000 RCX: 00007fe6853fd5d0
Oct 11 04:28:23 [kernel] [111115.508931] RDX: 0000000000004000 RSI: 00007fdf0ef6f1a7 RDI: 00007fe7440063a0
Oct 11 04:28:23 [kernel] [111115.509259] RBP: 00007fe6853fd448 R08: 0000000000000003 R09: 0000000000000000
Oct 11 04:28:23 [kernel] [111115.509587] R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000000000
Oct 11 04:28:23 [kernel] [111115.509915] R13: 00007fe774537050 R14: 0000000000000025 R15: 00007fe744001910
Oct 11 04:28:23 [kernel] [111115.510244] </TASK>
I have this same issue on deluge.
deluge: 2.1.1 x64 (running in docker linuxserver/deluge) libtorrent: 2.0.8.0 OS: Unraid (Slackware Linux) 6.11.2
The Unraid community has been tracking this issue here where many of us using both deluge and qbittorent, experienced this same issue.
Note that this issue was only recently reported with the newest series of the Unraid distribution (i.e. Linux kernel). From: v5.15.46 [Worked without issue] To: v5.19.9 (CVE-2022-21123 CVE-2022-21123 CVE-2022-21125 CVE-2022-21166) [BUG: kernel NULL pointer dereference]
Seems like it indeed is kernel bug that is getting triggered with series 2 libtorrent, the same null pointer dereferences errors as my boxes reported above.
Same problem: 6.0.9 gentoo-kernel, qbittorrent 4.4.5, libtorrent-rasterbar 2.0.6. In dmesg kernel NULL pointer dereference and filemap_fault On same system and software versions but with libtorrent-rasterbar 1.2.18 all works as intended.
... Reposting what I posted on deluge forum, in response to JesterEE's reported findings:
Found some hinting at issue with transparent_hugepages in kernel being culprit, and disabling it a functioning workaround.
I think you can test that(disabling), through a kernel cmd-line parameter, or tempfiles.d approach.
https://bugzilla.kernel.org/show_bug.cgi?id=216646
More info about disabling THP here: https://docs.kernel.org/admin-guide/mm/transhuge.html https://access.redhat.com/solutions/46111 https://wiki.archlinux.org/title/Redis#Warning_about_Transparent_Huge_Pages_(THP)
I have it deactivated and qBittorrent is already working correctly.
But the question is: whose fault is this malfunction? libtorrent, qBittorrent/Deluge or the Linux Kernel?
Looks like issue is gone after kernel >= 6.0.12
Not for me.
Are you guys using encryption? I've found disabling queues fixes the issue for me: https://wiki.archlinux.org/title/Dm-crypt/Specialties#Disable_workqueue_for_increased_solid_state_drive_(SSD)_performance
No encryption, but I noticed something. It deadlocks hard, when adding a large torrent in qBit. But if you manage to kill qBit, and restart it, it restarts and works just fine.
I am using simple patch to prevent kernel null pointer dereference. It is not a fix but getting rid of symptoms. Torrent is working and i am do not have to restart it.
--- linux-gentoo/mm/filemap.c 2022-12-14 00:00:00.000 +0200
+++ linux-gentoo-old/mm/filemap.c 2022-12-06 00:00:00.000 +0200
@@ -1850,22 +1850,24 @@
static void *mapping_get_entry(struct address_space *mapping, pgoff_t index)
{
XA_STATE(xas, &mapping->i_pages, index);
struct folio *folio;
rcu_read_lock();
repeat:
xas_reset(&xas);
folio = xas_load(&xas);
if (xas_retry(&xas, folio))
goto repeat;
+ if (WARN_ON(unlikely(xa_is_internal(folio))))
+ goto repeat;
/*
* A shadow entry of a recently evicted page, or a swap entry from
* shmem/tmpfs. Return it without attempting to raise page count.
*/
if (!folio || xa_is_value(folio))
goto out;
if (!folio_try_get_rcu(folio))
goto repeat;
if (unlikely(folio != xas_reload(&xas))) {
Are you guys using encryption? I've found disabling queues fixes the issue for me: https://wiki.archlinux.org/title/Dm-crypt/Specialties#Disable_workqueue_for_increased_solid_state_drive_(SSD)_performance
I am using disk encryption. Hit issue with disabled queues.
Problem with kernel page cache and before any reading to page.
@corvus1 could you reproduce if you set aio_threads=1?
@corvus1 could you reproduce if you set aio_threads=1?
where do you put it?
Preferences / Advanced / libtorrent Section
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I still have this problem. https://bugzilla.kernel.org/show_bug.cgi?id=216646 The kernel bug tracker thread suggests it may also relate to the filesystem you use (in my case, xfs).