Bug 514395 - KTorrent crashes on an assert in Qt
Summary: KTorrent crashes on an assert in Qt
Status: REPORTED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.12.0
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2026-01-10 00:13 UTC by Jonathan Verner
Modified: 2026-01-11 21:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/330494/events/77c78be9aa3a435e9a3ce1c245c4afbd/


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Verner 2026-01-10 00:13:27 UTC
Application: ktorrent (25.12.0)

ApplicationNotResponding [ANR]: false
Qt Version: 6.10.1
Frameworks Version: 6.21.0
Operating System: Linux 6.14.0-36-generic x86_64
Windowing System: Wayland
Distribution: KDE neon User Edition
DrKonqi: 6.5.4 [CoredumpBackend]

-- Information about the crash:
Regularly, after some time that KTorrent is running (and downloading), it crashes with an assert in libktorrent (in Qt's qround, actually):

It seems that the in the method:

    Connection::updateDelayMeasurement 

on line 357 of utp/connection.cpp the value scaled_gain is computed as follows:

    double scaled_gain = MAX_CWND_INCREASE_PACKETS_PER_RTT * delay_factor * window_factor;

and is then passed to the RemoteWindow::updateWindowSize:

    remote_wnd->updateWindowSize(scaled_gain);

where (on line 168 in utp/remotewindow.cpp) it is passed to qRound which hits an assert in Qt. 

I suspect that this is due to scaled_gain being too large (i.e. not fitting into int).

The crash can be reproduced sometimes.

-- Backtrace:
Application: KTorrent (ktorrent), signal: Aborted


warning: Can't open file /memfd:wayland-shm (deleted) during file-backed mapping note processing
[New LWP 171745]
[New LWP 171730]
[New LWP 171729]
[New LWP 171728]
[New LWP 171733]
[New LWP 171731]
[New LWP 171736]
[New LWP 171735]
[New LWP 171738]
[New LWP 171737]
[New LWP 171734]
[New LWP 172285]
[New LWP 171732]
[New LWP 172284]
[New LWP 172283]
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6DBusAddons.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6DBusAddons.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6DBusAddons.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6KIOFileWidgets.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6KIOFileWidgets.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6KIOFileWidgets.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6NotifyConfig.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6Parts.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6StatusNotifierItem.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6StatusNotifierItem.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6StatusNotifierItem.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6XmlGui.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6XmlGui.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6XmlGui.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6GlobalAccel.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6ConfigWidgets.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6KIOWidgets.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6KIOWidgets.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6KIOGui.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6KIOGui.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6KIOCore.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6KIOCore.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6Crash.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6Notifications.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6Notifications.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6Notifications.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6CoreAddons.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6CoreAddons.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6CoreAddons.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6ConfigGui.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6ConfigGui.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6ConfigGui.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6ConfigCore.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6ConfigCore.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6I18n.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6I18n.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6I18n.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6WidgetsAddons.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6WidgetsAddons.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6WidgetsAddons.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6WindowSystem.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6WindowSystem.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6WindowSystem.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6KCMUtils.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6KCMUtils.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6KCMUtils.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6Archive.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libgmp.so.10...
Downloading separate debug info for /lib/x86_64-linux-gnu/libcrypto.so.3...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6ItemViews.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6IconWidgets.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6IconWidgets.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6IconWidgets.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6BookmarksWidgets.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6BookmarksWidgets.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6BookmarksWidgets.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6IconThemes.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6IconThemes.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6ColorScheme.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6GuiAddons.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6GuiAddons.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6GuiAddons.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6Solid.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6Solid.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6Solid.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6Completion.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6Bookmarks.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6Bookmarks.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libcanberra.so.0...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcanberra.so.0
Downloading separate debug info for /lib/x86_64-linux-gnu/libcanberra.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6Codecs.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6JobWidgets.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6JobWidgets.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6JobWidgets.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6Service.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6Service.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6Service.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libmount.so.1...
Downloading separate debug info for /lib/x86_64-linux-gnu/libproxy.so.1...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libproxy.so.1
Downloading separate debug info for /lib/x86_64-linux-gnu/libproxy.so.1...
Downloading separate debug info for /lib/x86_64-linux-gnu/libudev.so.1...
Downloading separate debug info for /lib/x86_64-linux-gnu/libxcb.so.1...
Downloading separate debug info for /lib/x86_64-linux-gnu/libxcb-res.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libglib-2.0.so.0...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libglib-2.0.so.0
Downloading separate debug info for /lib/x86_64-linux-gnu/libglib-2.0.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libpng16.so.16...
Downloading separate debug info for /lib/x86_64-linux-gnu/libharfbuzz.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libfreetype.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libsystemd.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libpcre2-16.so.0...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6KCMUtilsQuick.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6KCMUtilsQuick.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6KCMUtilsCore.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6KCMUtilsCore.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/liblzma.so.5...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6BreezeIcons.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libwayland-client.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libplist-2.0.so.4...
Downloading separate debug info for /lib/x86_64-linux-gnu/libvorbisfile.so.3...
Downloading separate debug info for /lib/x86_64-linux-gnu/libtdb.so.1...
Downloading separate debug info for /lib/x86_64-linux-gnu/libblkid.so.1...
Downloading separate debug info for /lib/x86_64-linux-gnu/libselinux.so.1...
Downloading separate debug info for /usr/lib/x86_64-linux-gnu/libproxy/libpxbackend-1.0.so...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgobject-2.0.so.0
Downloading separate debug info for /lib/x86_64-linux-gnu/libgobject-2.0.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libcap.so.2...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcap.so.2
Downloading separate debug info for /lib/x86_64-linux-gnu/libcap.so.2...
Downloading separate debug info for /lib/x86_64-linux-gnu/libexpat.so.1...
Downloading separate debug info for /lib/x86_64-linux-gnu/libpcre2-8.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libgraphite2.so.3...
Downloading separate debug info for /lib/x86_64-linux-gnu/libgcrypt.so.20...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6I18nQml.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6I18nQml.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libwayland-cursor.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libssl.so.3...
Downloading separate debug info for /lib/x86_64-linux-gnu/libvorbis.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libcurl-gnutls.so.4...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgio-2.0.so.0
Downloading separate debug info for /lib/x86_64-linux-gnu/libgio-2.0.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libbsd.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libgpg-error.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libnghttp2.so.14...
Downloading separate debug info for /lib/x86_64-linux-gnu/libidn2.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libssh.so.4...
Downloading separate debug info for /lib/x86_64-linux-gnu/libgnutls.so.30...
Downloading separate debug info for /lib/x86_64-linux-gnu/libldap.so.2...
Downloading separate debug info for /lib/x86_64-linux-gnu/liblber.so.2...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgmodule-2.0.so.0
Downloading separate debug info for /lib/x86_64-linux-gnu/libgmodule-2.0.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libmd.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libunistring.so.5...
Downloading separate debug info for /lib/x86_64-linux-gnu/libtasn1.so.6...
Downloading separate debug info for /usr/lib/x86_64-linux-gnu/ossl-modules/legacy.so...

warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/ossl-modules/legacy.so
Downloading separate debug info for /usr/lib/x86_64-linux-gnu/ossl-modules/legacy.so...
Downloading separate debug info for /usr/lib/x86_64-linux-gnu/qt6/plugins/platformthemes/KDEPlasmaPlatformTheme6.so...
Downloading separate debug info for /lib/x86_64-linux-gnu/libXcursor.so.1...
Downloading separate debug info for /lib/x86_64-linux-gnu/libwayland-egl.so.1...
Downloading separate debug info for /lib/x86_64-linux-gnu/libEGL_mesa.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so...
Downloading separate debug info for /lib/x86_64-linux-gnu/libgbm.so.1...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgbm.so.1
Downloading separate debug info for /lib/x86_64-linux-gnu/libgbm.so.1...
Downloading separate debug info for /lib/x86_64-linux-gnu/libxcb-randr.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libxcb-xfixes.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libxcb-shm.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libdrm.so.2...
Downloading separate debug info for /lib/x86_64-linux-gnu/libwayland-server.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libxcb-dri3.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libxcb-present.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libLLVM.so.20.1...
Downloading separate debug info for /lib/x86_64-linux-gnu/libsensors.so.5...
Downloading separate debug info for /lib/x86_64-linux-gnu/libxcb-sync.so.1...
Downloading separate debug info for /lib/x86_64-linux-gnu/libelf.so.1...
Downloading separate debug info for /lib/x86_64-linux-gnu/libdrm_amdgpu.so.1...
Downloading separate debug info for /lib/x86_64-linux-gnu/libdrm_intel.so.1...
Downloading separate debug info for /lib/x86_64-linux-gnu/libedit.so.2...
Downloading separate debug info for /lib/x86_64-linux-gnu/libxml2.so.2...
Downloading separate debug info for /lib/x86_64-linux-gnu/libpciaccess.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libtinfo.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libtinfo.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libtinfo.so.6...
Downloading separate debug info for /usr/lib/x86_64-linux-gnu/qt6/plugins/styles/breeze6.so...

warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/qt6/plugins/styles/breeze6.so
Downloading separate debug info for /usr/lib/x86_64-linux-gnu/qt6/plugins/styles/breeze6.so...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKirigamiPlatform.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKirigamiPlatform.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKirigamiPlatform.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6Style.so.6...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libKF6Style.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libKF6Style.so.6...
Downloading separate debug info for /usr/lib/x86_64-linux-gnu/qt6/plugins/imageformats/libqsvg.so...

warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/qt6/plugins/imageformats/libqsvg.so
Downloading separate debug info for /usr/lib/x86_64-linux-gnu/qt6/plugins/imageformats/libqsvg.so...

warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libQt6Svg.so.6
Downloading separate debug info for /lib/x86_64-linux-gnu/libQt6Svg.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libmaxminddb.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libnss_mymachines.so.2...
Downloading separate debug info for system-supplied DSO at 0x764d0a53d000...
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/bin/ktorrent'.
Program terminated with signal SIGABRT, Aborted.
Download failed: Invalid argument.  Continuing without source file ./nptl/./nptl/pthread_kill.c.
#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44

warning: 44	./nptl/pthread_kill.c: No such file or directory
[Current thread is 1 (Thread 0x764cd65fc6c0 (LWP 171745))]
Download failed: Invalid argument.  Continuing without source file ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S.
Download failed: Invalid argument.  Continuing without source file ./nptl/./nptl/pthread_create.c.
Downloading source file /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp...
Downloading source file /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/global/qflags.h...
Downloading source file /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qeventdispatcher_glib.cpp...
Downloading source file /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qcoreapplication.cpp...
Downloading source file /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/widgets/kernel/qapplication.cpp...
Downloading source file /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qsocketnotifier.cpp...
Downloading source file /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/obj-x86_64-linux-gnu/src/corelib/Core_autogen/include/moc_qsocketnotifier.cpp...
Downloading source file /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qobjectdefs.h...
Downloading source file /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qobject.cpp...
Downloading source file /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qobjectdefs_impl.h...
Downloading source file /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/utp/remotewindow.cpp...
Download failed: Invalid argument.  Continuing without source file ./stdlib/./stdlib/abort.c.
Download failed: Invalid argument.  Continuing without source file ./signal/../sysdeps/posix/raise.c.
Download failed: Invalid argument.  Continuing without source file ./nptl/./nptl/pthread_kill.c.
Downloading source file /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/net/networkthread.cpp...
Downloading source file /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/net/downloadthread.cpp...
Python Exception <class 'gdb.error'>: value has been optimized out
Downloading source file /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/net/poll.cpp...
Python Exception <class 'AttributeError'>: 'NoneType' object has no attribute 'pointer'
Download failed: Invalid argument.  Continuing without source file ./io/../sysdeps/unix/sysv/linux/poll.c.
Downloading source file /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/net/uploadthread.cpp...
Python Exception <class 'gdb.error'>: value has been optimized out
Python Exception <class 'AttributeError'>: 'NoneType' object has no attribute 'pointer'
Downloading source file /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/dbus/qdbusconnectionmanager.cpp...
Download failed: Invalid argument.  Continuing without source file ./nptl/./nptl/pthread_cond_wait.c.
Download failed: Invalid argument.  Continuing without source file ./nptl/./nptl/futex-internal.c.
Downloading source file /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/plugins/platforms/wayland/qwaylanddisplay.cpp...
Downloading source file /usr/src/ktorrent-25.12.0-0zneon+24.04+noble+release+build27/ktorrent/main.cpp...
Downloading source file /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/gui/kernel/qguiapplication.cpp...
Downloading source file /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qtimerinfo_unix.cpp...
Downloading source file /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/obj-x86_64-linux-gnu/src/corelib/Core_autogen/include/moc_qtimer.cpp...
Downloading source file /usr/src/ktorrent-25.12.0-0zneon+24.04+noble+release+build27/ktorrent/core.cpp...
Downloading source file /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/peer/peermanager.cpp...
Downloading source file /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/peer/peer.cpp...
Downloading source file /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/peer/packetreader.cpp...
Downloading source file /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/download/downloader.cpp...
Downloading source file /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/download/piece.h...
Downloading source file /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/diskio/piecedata.cpp...
Download failed: Invalid argument.  Continuing without source file ./string/../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S.
Downloading source file /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/net/reverseresolver.cpp...
Downloading source file /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qwaitcondition_unix.cpp...
[Current thread is 12 (Thread 0x764c77fff6c0 (LWP 172285))]

Thread 15 (Thread 0x764c9b7fe6c0 (LWP 172283)):
#0  0x0000764d0711b4fd in __GI___poll (fds=0x764c88001030, nfds=10, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x0000764d0a2aea52 in poll (__timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:39
#2  net::Poll::poll (this=0x5651126afa20, timeout=<optimized out>) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/net/poll.cpp:78
#3  0x0000764d0a2a9c2d in net::DownloadThread::update (this=0x5651126afa10) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/net/downloadthread.cpp:35
#4  0x0000764d0a2a9e89 in net::NetworkThread::run (this=0x5651126afa10) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/net/networkthread.cpp:35
#5  0x0000764d07ba6f53 in operator() (__closure=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:437
#6  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:367
#7  QThreadPrivate::start (arg=0x5651126afa10) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:397
#8  0x0000764d0709caa4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
#9  0x0000764d07129c6c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 14 (Thread 0x764c98ff96c0 (LWP 172284)):
#0  0x0000764d0711b4fd in __GI___poll (fds=0x565113992f80, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x0000764d0a2aea52 in poll (__timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:39
#2  net::Poll::poll (this=0x5651126afcc0, timeout=<optimized out>) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/net/poll.cpp:78
#3  0x0000764d0a2a956d in net::UploadThread::update (this=0x5651126afcb0) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/net/uploadthread.cpp:32
#4  0x0000764d0a2a9e89 in net::NetworkThread::run (this=0x5651126afcb0) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/net/networkthread.cpp:35
#5  0x0000764d07ba6f53 in operator() (__closure=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:437
#6  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:367
#7  QThreadPrivate::start (arg=0x5651126afcb0) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:397
#8  0x0000764d0709caa4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
#9  0x0000764d07129c6c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 13 (Thread 0x764cfdba26c0 (LWP 171732)):
#0  0x0000764d07098d71 in __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x565112852328) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (cancel=true, private=0, abstime=0x0, clockid=0, expected=0, futex_word=0x565112852328) at ./nptl/futex-internal.c:87
#2  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x565112852328, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x0000764d0709b7ed in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5651128522d0, cond=0x565112852300) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x565112852300, mutex=0x5651128522d0) at ./nptl/pthread_cond_wait.c:627
#5  0x0000764cedb9359d in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#6  0x0000764cedb6054b in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#7  0x0000764cedb934cc in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#8  0x0000764d0709caa4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
#9  0x0000764d07129c6c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 12 (Thread 0x764c77fff6c0 (LWP 172285)):
#0  0x0000764d07098d71 in __futex_abstimed_wait_common64 (private=30285, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x565113b72964) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (cancel=true, private=30285, abstime=0x0, clockid=0, expected=0, futex_word=0x565113b72964) at ./nptl/futex-internal.c:87
#2  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x565113b72964, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x0000764d0709b7ed in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x565113b72910, cond=0x565113b72938) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x565113b72938, mutex=0x565113b72910) at ./nptl/pthread_cond_wait.c:627
#5  0x0000764d07ac0a9c in QWaitConditionPrivate::wait (deadline=..., this=0x565113b72910) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qwaitcondition_unix.cpp:68
#6  QWaitCondition::wait (this=this@entry=0x565113b3f138, mutex=mutex@entry=0x565113b3f130, deadline=...) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qwaitcondition_unix.cpp:146
#7  0x0000764d0a2ad3b4 in net::ReverseResolverThread::run (this=0x565113b3f120) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/net/reverseresolver.cpp:101
#8  0x0000764d07ba6f53 in operator() (__closure=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:437
#9  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:367
#10 QThreadPrivate::start (arg=0x565113b3f120) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:397
#11 0x0000764d0709caa4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
#12 0x0000764d07129c6c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 11 (Thread 0x764cfca5f6c0 (LWP 171734)):
#0  0x0000764d07098d71 in __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x5651128534a0) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (cancel=true, private=0, abstime=0x0, clockid=0, expected=0, futex_word=0x5651128534a0) at ./nptl/futex-internal.c:87
#2  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x5651128534a0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x0000764d0709b7ed in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x565112853448, cond=0x565112853478) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x565112853478, mutex=0x565112853448) at ./nptl/pthread_cond_wait.c:627
#5  0x0000764cedb9359d in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#6  0x0000764cedb6054b in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#7  0x0000764cedb934cc in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#8  0x0000764d0709caa4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
#9  0x0000764d07129c6c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 10 (Thread 0x764cd75fe6c0 (LWP 171737)):
#0  0x0000764d07098d71 in __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x5651128c3978) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (cancel=true, private=0, abstime=0x0, clockid=0, expected=0, futex_word=0x5651128c3978) at ./nptl/futex-internal.c:87
#2  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x5651128c3978, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x0000764d0709b7ed in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5651128c3920, cond=0x5651128c3950) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x5651128c3950, mutex=0x5651128c3920) at ./nptl/pthread_cond_wait.c:627
#5  0x0000764cedb9359d in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#6  0x0000764cedb6054b in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#7  0x0000764cedb934cc in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#8  0x0000764d0709caa4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
#9  0x0000764d07129c6c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 9 (Thread 0x764cd6dfd6c0 (LWP 171738)):
#0  0x0000764d07098d71 in __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x565112908358) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (cancel=true, private=0, abstime=0x0, clockid=0, expected=0, futex_word=0x565112908358) at ./nptl/futex-internal.c:87
#2  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x565112908358, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x0000764d0709b7ed in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x565112908300, cond=0x565112908330) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x565112908330, mutex=0x565112908300) at ./nptl/pthread_cond_wait.c:627
#5  0x0000764cedb9359d in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#6  0x0000764cedb6054b in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#7  0x0000764cedb934cc in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#8  0x0000764d0709caa4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
#9  0x0000764d07129c6c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 8 (Thread 0x764ce4bff6c0 (LWP 171735)):
#0  0x0000764d07098d71 in __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x565112853650) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (cancel=true, private=0, abstime=0x0, clockid=0, expected=0, futex_word=0x565112853650) at ./nptl/futex-internal.c:87
#2  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x565112853650, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x0000764d0709b7ed in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5651128535f8, cond=0x565112853628) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x565112853628, mutex=0x5651128535f8) at ./nptl/pthread_cond_wait.c:627
#5  0x0000764cedb9359d in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#6  0x0000764cedb6054b in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#7  0x0000764cedb934cc in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#8  0x0000764d0709caa4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
#9  0x0000764d07129c6c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 7 (Thread 0x764cd7dff6c0 (LWP 171736)):
#0  0x0000764d07098d71 in __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x56511286ffb8) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (cancel=true, private=0, abstime=0x0, clockid=0, expected=0, futex_word=0x56511286ffb8) at ./nptl/futex-internal.c:87
#2  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x56511286ffb8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x0000764d0709b7ed in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x56511286ff60, cond=0x56511286ff90) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x56511286ff90, mutex=0x56511286ff60) at ./nptl/pthread_cond_wait.c:627
#5  0x0000764cedb9359d in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#6  0x0000764cedb6054b in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#7  0x0000764cedb934cc in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#8  0x0000764d0709caa4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
#9  0x0000764d07129c6c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 6 (Thread 0x764cfe5fe6c0 (LWP 171731)):
#0  0x0000764d0711b4fd in __GI___poll (fds=fds@entry=0x764cfe5fd730, nfds=nfds@entry=2, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x0000764d04daa8fa in poll (__timeout=-1, __nfds=2, __fds=0x764cfe5fd730) at /usr/include/x86_64-linux-gnu/bits/poll2.h:39
#2  QtWaylandClient::EventThread::run (this=0x5651127308e0) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/plugins/platforms/wayland/qwaylanddisplay.cpp:185
#3  0x0000764d07ba6f53 in operator() (__closure=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:437
#4  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:367
#5  QThreadPrivate::start (arg=0x5651127308e0) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:397
#6  0x0000764d0709caa4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
#7  0x0000764d07129c6c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 5 (Thread 0x764cfd2606c0 (LWP 171733)):
#0  0x0000764d07098d71 in __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x565112721858) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (cancel=true, private=0, abstime=0x0, clockid=0, expected=0, futex_word=0x565112721858) at ./nptl/futex-internal.c:87
#2  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x565112721858, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x0000764d0709b7ed in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x565112721800, cond=0x565112721830) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x565112721830, mutex=0x565112721800) at ./nptl/pthread_cond_wait.c:627
#5  0x0000764cedb9359d in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#6  0x0000764cedb6054b in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#7  0x0000764cedb934cc in ??? () at /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
#8  0x0000764d0709caa4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
#9  0x0000764d07129c6c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 4 (Thread 0x764d00380340 (LWP 171728)):
#0  __memcpy_avx512_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:660
#1  0x0000764d0a363ae1 in memcpy (__len=16384, __src=0x764c8810a039, __dest=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29
#2  bt::PieceData::write (this=0x565113b81a00, buf=0x764c8810a039 "\315!7(I\366\367\211\331`!Y\201\205\025\202\354\036'\337\362\360\340V\217D\351P\0025|\374\266\025ҽY\230\253V", buf_size=16384, off=off@entry=0) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/diskio/piecedata.cpp:58
#3  0x0000764d0a2e7222 in bt::ChunkDownload::piece (this=this@entry=0x5651139270a0, p=..., ok=ok@entry=@0x7fff8319ed0f: false) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/download/piece.h:31
#4  0x0000764d0a2f1480 in bt::Downloader::pieceReceived (this=0x565112d88f50, p=...) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/download/downloader.cpp:113
#5  0x0000764d0a2c2562 in bt::Peer::handlePiece (len=<optimized out>, packet=0x764c8810a030 "\a", this=<optimized out>) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/peer/peer.cpp:253
#6  bt::Peer::handlePiece (this=0x565113a99690, packet=0x764c8810a030 "\a", len=<optimized out>) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/peer/peer.cpp:237
#7  0x0000764d0a2d1e8e in bt::PacketReader::update (this=0x565113957330, peer=...) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/peer/packetreader.cpp:60
#8  0x0000764d0a2c2b26 in bt::Peer::update (this=0x565113a99690) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/peer/peer.cpp:506
#9  0x0000764d0a2c8cb7 in bt::PeerManager::Private::update (this=0x565112d8b700) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/peer/peermanager.cpp:594
#10 0x0000764d0a2c8d8d in bt::PeerManager::update (this=<optimized out>) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/peer/peermanager.cpp:120
#11 0x0000764d0a31d0c3 in bt::TorrentControl::update (this=0x565112d4d430) at /usr/include/c++/13/bits/unique_ptr.h:199
#12 0x00005650fc5ed49f in kt::Core::update (this=0x565112b1fc80) at /usr/src/ktorrent-25.12.0-0zneon+24.04+noble+release+build27/ktorrent/core.cpp:878
#13 0x0000764d07c9fc89 in QtPrivate::QSlotObjectBase::call (a=0x7fff8319f120, r=<optimized out>, this=0x565112a5ef80, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qobjectdefs_impl.h:461
#14 doActivate<false> (sender=0x565112b1fcb8, signal_index=3, argv=0x7fff8319f120) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qobject.cpp:4257
#15 0x0000764d07c4a0ad in QMetaObject::activate<void, QTimer::QPrivateSignal> (ret=0x0, local_signal_index=0, mo=<optimized out>, sender=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qobjectdefs.h:319
#16 QTimer::timeout (this=<optimized out>, _t1=...) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/obj-x86_64-linux-gnu/src/corelib/Core_autogen/include/moc_qtimer.cpp:182
#17 0x0000764d07c32d8e in QObject::event (this=0x565112b1fcb8, e=0x7fff8319f2b0) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qobject.cpp:1388
#18 0x0000764d0903d68d in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x565112b1fcb8, e=0x7fff8319f2b0) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/widgets/kernel/qapplication.cpp:3305
#19 0x0000764d07cd6ec0 in QCoreApplication::notifyInternal2 (receiver=0x565112b1fcb8, event=0x7fff8319f2b0) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qcoreapplication.cpp:1109
#20 0x0000764d07ba65e7 in QTimerInfoList::activateTimers (this=0x5651126c2d90) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qtimerinfo_unix.cpp:426
#21 0x0000764d07a88271 in timerSourceDispatch (source=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qeventdispatcher_glib.cpp:152
#22 idleTimerSourceDispatch (source=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qeventdispatcher_glib.cpp:199
#23 0x0000764d066cc5c5 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x0000764d0672b737 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x0000764d066cba63 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x0000764d07a86fef in QEventDispatcherGlib::processEvents (this=0x5651126c1660, flags=...) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#27 0x0000764d07ce14e3 in QEventLoop::exec (this=0x7fff8319f520, flags=...) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/global/qflags.h:77
#28 0x0000764d07cdb62f in QCoreApplication::exec () at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/global/qflags.h:77
#29 0x0000764d082c75fd in QGuiApplication::exec () at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/gui/kernel/qguiapplication.cpp:1973
#30 0x0000764d0903a1c9 in QApplication::exec () at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/widgets/kernel/qapplication.cpp:2575
#31 0x00005650fc5e481b in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/ktorrent-25.12.0-0zneon+24.04+noble+release+build27/ktorrent/main.cpp:260

Thread 3 (Thread 0x764cff9ff6c0 (LWP 171729)):
#0  0x0000764d0711b4fd in __GI___poll (fds=0x56511302d5a0, nfds=5, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x0000764d0672b68e in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x0000764d066cba63 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x0000764d07a86fef in QEventDispatcherGlib::processEvents (this=0x764cf8000b70, flags=...) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#4  0x0000764d07ce14e3 in QEventLoop::exec (this=0x764cff9fe6f0, flags=...) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/global/qflags.h:77
#5  0x0000764d07be0d84 in QThread::exec (this=this@entry=0x764d0956df40 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/global/qflags.h:77
#6  0x0000764d0954e54d in QDBusConnectionManager::run (this=0x764d0956df40 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/dbus/qdbusconnectionmanager.cpp:145
#7  0x0000764d07ba6f53 in operator() (__closure=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:437
#8  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:367
#9  QThreadPrivate::start (arg=0x764d0956df40 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:397
#10 0x0000764d0709caa4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
#11 0x0000764d07129c6c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 2 (Thread 0x764cfedff6c0 (LWP 171730)):
#0  0x0000764d0711b4fd in __GI___poll (fds=fds@entry=0x764cfedfe730, nfds=nfds@entry=2, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x0000764d04daa8fa in poll (__timeout=-1, __nfds=2, __fds=0x764cfedfe730) at /usr/include/x86_64-linux-gnu/bits/poll2.h:39
#2  QtWaylandClient::EventThread::run (this=0x5651127ce8a0) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/plugins/platforms/wayland/qwaylanddisplay.cpp:185
#3  0x0000764d07ba6f53 in operator() (__closure=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:437
#4  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:367
#5  QThreadPrivate::start (arg=0x5651127ce8a0) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:397
#6  0x0000764d0709caa4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
#7  0x0000764d07129c6c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 1 (Thread 0x764cd65fc6c0 (LWP 171745)):
[KCrash Handler]
#6  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#7  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#8  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#9  0x0000764d0704527e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#10 0x0000764d070288ff in __GI_abort () at ./stdlib/abort.c:79
#11 0x0000764d07d32891 in qAbort () at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/global/qassert.cpp:46
#12 qt_maybe_message_fatal<QString&> (message=..., context=<optimized out>, msgType=QtFatalMsg) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/global/qlogging.cpp:2166
#13 qt_message(QtMsgType, const QMessageLogContext &, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, context=..., msg=msg@entry=0x764d07a4e8e8 "ASSERT: \"%s\" in file %s, line %d", ap=ap@entry=0x764cd65fadb8) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/global/qlogging.cpp:412
#14 0x0000764d07d33653 in QMessageLogger::fatal (this=<optimized out>, msg=0x764d07a4e8e8 "ASSERT: \"%s\" in file %s, line %d") at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/global/qlogging.cpp:901
#15 0x0000764d07d21020 in qt_assert (assertion=assertion@entry=0x764d0a3b2e95 "value < maximalPlusOne", file=file@entry=0x764d0a3b1008 "/usr/include/x86_64-linux-gnu/qt6/QtCore/qnumeric.h", line=line@entry=516) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/global/qassert.cpp:113
#16 0x0000764d0a27e494 in QtPrivate::qCheckedFPConversionToInteger<int, double, true, true> (value=<optimized out>) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qnumeric.h:497
#17 QtPrivate::qCheckedFPConversionToInteger<int, double, true, true> (value=<optimized out>) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qnumeric.h:497
#18 qRound (d=<optimized out>) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qnumeric.h:565
#19 utp::RemoteWindow::updateWindowSize (this=<optimized out>, scaled_gain=<optimized out>) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/utp/remotewindow.cpp:168
#20 0x0000764d0a38f625 in utp::Connection::updateDelayMeasurement (this=this@entry=0x565113ef6920, hdr=hdr@entry=0x764cd65fb158) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/utp/connection.cpp:359
#21 0x0000764d0a391263 in utp::Connection::handlePacket (this=this@entry=0x565113ef6920, parser=..., packet=...) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/utp/connection.cpp:121
#22 0x0000764d0a38bd57 in utp::UTPServer::handlePacket (this=0x565112a64f00, buffer=..., addr=<optimized out>) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/utp/utpserver.cpp:318
#23 0x0000764d0a38a14e in utp::UTPServer::Private::dataReceived (this=0x5651129ab960, buffer=..., addr=...) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/utp/utpserver.cpp:182
#24 0x0000764d0a2afa97 in net::ServerSocket::readyToRead (this=0x565112a5e690) at /usr/src/libktorrent-25.12.0-0zneon+24.04+noble+release+build22/src/net/serversocket.cpp:132
#25 0x0000764d07c9fc89 in QtPrivate::QSlotObjectBase::call (a=0x764cd65fb3b0, r=<optimized out>, this=0x565112b0ed60, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qobjectdefs_impl.h:461
#26 doActivate<false> (sender=0x565112a5f8c0, signal_index=3, argv=0x764cd65fb3b0) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qobject.cpp:4257
#27 0x0000764d07d42563 in QMetaObject::activate<void, QSocketDescriptor, QSocketNotifier::Type, QSocketNotifier::QPrivateSignal> (ret=0x0, local_signal_index=0, mo=<optimized out>, sender=0x565112a5f8c0) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qobjectdefs.h:319
#28 QSocketNotifier::activated (this=this@entry=0x565112a5f8c0, _t1=..., _t2=<optimized out>, _t3=...) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/obj-x86_64-linux-gnu/src/corelib/Core_autogen/include/moc_qsocketnotifier.cpp:161
#29 0x0000764d07d42700 in QSocketNotifier::event (this=0x565112a5f8c0, e=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qsocketnotifier.cpp:324
#30 0x0000764d0903d68d in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x565112a5f8c0, e=0x764cd65fb500) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/widgets/kernel/qapplication.cpp:3305
#31 0x0000764d07cd6ec0 in QCoreApplication::notifyInternal2 (receiver=0x565112a5f8c0, event=0x764cd65fb500) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qcoreapplication.cpp:1109
#32 0x0000764d07a8a544 in socketNotifierSourceDispatch (source=0x764cbc001050) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qeventdispatcher_glib.cpp:77
#33 0x0000764d066cc5c5 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x0000764d0672b737 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x0000764d066cba63 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x0000764d07a87011 in QEventDispatcherGlib::processEvents (this=0x764cbc000b70, flags=...) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/kernel/qeventdispatcher_glib.cpp:401
#37 0x0000764d07ce14e3 in QEventLoop::exec (this=0x764cd65fb740, flags=...) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/global/qflags.h:77
#38 0x0000764d07be0d84 in QThread::exec (this=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/global/qflags.h:77
#39 0x0000764d07ba6f53 in operator() (__closure=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:437
#40 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:367
#41 QThreadPrivate::start (arg=0x565112a62b50) at /usr/src/qt6-base-6.10.1-0zneon+24.04+noble+release+build144/src/corelib/thread/qthread_unix.cpp:397
#42 0x0000764d0709caa4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
#43 0x0000764d07129c6c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Reported using DrKonqi
Comment 1 Jonathan Verner 2026-01-11 21:03:28 UTC
I've changed the `updateWindowSize` method as follows:

```cpp
    if (scaled_gain >= static_cast<double>(std::numeric_limits<int>::max())) {
        max_window = 5000 + 1;
        Out(SYS_UTP|LOG_DEBUG) << "RemoteWindow::updateWindowSize: scaled_gain too big: " << scaled_gain << " " << max_window << endl;
    } else if (scaled_gain <= static_cast<double>(std::numeric_limits<int>::min())) {
        max_window = MIN_PACKET_SIZE;
        Out(SYS_UTP|LOG_DEBUG) << "RemoteWindow::updateWindowSize: scaled_gain too small: " << scaled_gain << " " << max_window << endl;
    } else {
        int d = (int)qRound(scaled_gain);
        if (max_window + d < MIN_PACKET_SIZE)
            max_window = MIN_PACKET_SIZE;
        else
            max_window += d;
    }
```

And now it seems to run fine. However, the above change just avoids the assert 
(note that I've encountered a scaled_gain too large *and* too small). I don't quite 
understand the code, so I am not sure what to do if `scaled_gain` is outside of the valid range.
Comment 2 Jonathan Verner 2026-01-11 21:09:00 UTC
(In reply to Jonathan Verner from comment #1)
> I've changed the `updateWindowSize` method as follows:
> 
> ```cpp
>     if (scaled_gain >= static_cast<double>(std::numeric_limits<int>::max()))
> {
>         max_window = 5000 + 1;
>         Out(SYS_UTP|LOG_DEBUG) << "RemoteWindow::updateWindowSize:
> scaled_gain too big: " << scaled_gain << " " << max_window << endl;
>     } else if (scaled_gain <=
> static_cast<double>(std::numeric_limits<int>::min())) {
>         max_window = MIN_PACKET_SIZE;
>         Out(SYS_UTP|LOG_DEBUG) << "RemoteWindow::updateWindowSize:
> scaled_gain too small: " << scaled_gain << " " << max_window << endl;
>     } else {
>         int d = (int)qRound(scaled_gain);
>         if (max_window + d < MIN_PACKET_SIZE)
>             max_window = MIN_PACKET_SIZE;
>         else
>             max_window += d;
>     }
> ```
> 
> And now it seems to run fine. However, the above change just avoids the
> assert 
> (note that I've encountered a scaled_gain too large *and* too small). I
> don't quite 
> understand the code, so I am not sure what to do if `scaled_gain` is outside
> of the valid range.

With the above changes, I am now hitting a different assert in

    `RemoteWindow::checkLostPackets`

(on line 128):

```
126    if (lost_packets) {
127        Out(SYS_UTP | LOG_DEBUG) << "UTP: lost packets on connection " << hdr->connection_id << endl;
128        max_window = (bt::Uint32)qRound(0.78 * max_window);
129    }
```

I suspect that this is due to `qRound` rounding to `int` and being passed  (a double coming from) an `uint` which
can be out of range (even when multiplied by 0.78).