https://bugs.kde.org/show_bug.cgi?id=525530
--- Comment #10 from ALex <[email protected]> --- Hi, sorry for the delay. Here is what I could collect. System: Manjaro Linux, kernel 6.18.55-1-MANJARO Packages: ktorrent 26.08.1-1, libktorrent 26.08.1-1, openssl 3.6.5-1 Reproduction: I started ktorrent with an empty profile and no torrents (XDG_CONFIG_HOME and XDG_DATA_HOME pointing to new temp dirs) and quit with File -> Quit. It crashes with SIGABRT in OPENSSL_cleanup every time, with the same backtrace as in the description. Raw "coredumpctl info" output is attached (coredump-info.txt). Only one thread is listed in the core dump at the time of the crash (I checked this on one core only). Extra tests (done with my normal profile with a torrent; in some of these runs I closed the app with Ctrl+C instead of File -> Quit, so please take them with a grain of salt): - GLIBC_TUNABLES=glibc.malloc.check=3 LD_PRELOAD=/usr/lib/libc_malloc_debug.so.0: the abort message became "free(): invalid pointer", and free() is called from libcrypto.so.3 (same frame #11 as before). - OPENSSL_CONF=/dev/null: still crashes ("double free or corruption (!prev)"). Why there is no symbolized backtrace: - gdb itself crashes on the core file (assertion in std::basic_string_view::back(), _M_len > 0). - debuginfod-find returns "No such file or directory" for libcrypto.so.3 and ld-linux-x86-64.so.2 (Manjaro build). - valgrind does not start: it cannot find the memcmp redirection in ld-linux-x86-64.so.2. Correction to my first message: I wrote that libktorrent links to libngtcp2_crypto_ossl. This is wrong. libKTorrent6 links directly to libcrypto.so.3 only (see below); libngtcp2_crypto_ossl is pulled in by other libraries, as far as I can tell via KIO/libcurl. What I found in libKTorrent6: $ LC_ALL=C readelf -d /usr/lib/libKTorrent6.so.6 | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libKF6Archive.so.6] 0x0000000000000001 (NEEDED) Shared library: [libgmp.so.10] 0x0000000000000001 (NEEDED) Shared library: [libcrypto.so.3] 0x0000000000000001 (NEEDED) Shared library: [libKF6KIOCore.so.6] 0x0000000000000001 (NEEDED) Shared library: [libQt6Network.so.6] 0x0000000000000001 (NEEDED) Shared library: [libKF6I18n.so.6] 0x0000000000000001 (NEEDED) Shared library: [libQt6Xml.so.6] 0x0000000000000001 (NEEDED) Shared library: [libKF6CoreAddons.so.6] 0x0000000000000001 (NEEDED) Shared library: [libKF6ConfigCore.so.6] 0x0000000000000001 (NEEDED) Shared library: [libQt6Core.so.6] 0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6] 0x0000000000000001 (NEEDED) Shared library: [libm.so.6] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] $ nm -D /usr/lib/libKTorrent6.so.6 | grep OSSL_PROVIDER U OSSL_PROVIDER_try_load@OPENSSL_3.0.0 It imports OSSL_PROVIDER_try_load, but I don't see OSSL_PROVIDER_unload in ktorrent, libktcore.so.16 or libKTorrent6.so.6 (I did not check the plugins). I don't know if this is related, just a note. If you need anything else (other commands, a different test), tell me what to run. -- You are receiving this mail because: You are watching all bug changes.
