qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
28.34k stars 3.98k forks source link

Crash #20947

Open soul-tan opened 5 months ago

soul-tan commented 5 months ago

qBittorrent & operating system versions

qBittorrent version: v4.6.3 (64-bit) Libtorrent version: 1.2.19.0 Qt version: 6.4.3 Boost version: 1.83.0 OpenSSL version: 1.1.1w zlib version: 1.3 OS version: Windows 11 Version 23H2 10.0.22631 x86_64

Caught signal: SIGABRT

What is the problem?

 0# boost::stacktrace::basic_stacktrace >::init at G:\QBITTORRENT\boost_1_83_0\boost\stacktrace\stacktrace.hpp:78
 1# getStacktrace at G:\QBITTORRENT\qbt-src-4.6.3\src\app\stacktrace.cpp:35
 2# `anonymous namespace'::abnormalExitHandler at G:\QBITTORRENT\qbt-src-4.6.3\src\app\signalhandler.cpp:104
 3# raise at minkernel\crts\ucrt\src\appcrt\misc\signal.cpp:547
 4# abort at minkernel\crts\ucrt\src\appcrt\startup\abort.cpp:71
 5# terminate at minkernel\crts\ucrt\src\appcrt\misc\terminate.cpp:58
 6# __scrt_unhandled_exception_filter at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\utility\utility_desktop.cpp:93
 7# UnhandledExceptionFilter in KERNELBASE
 8# RtlCopyMemory in ntdll
 9# _C_specific_handler in ntdll
10# _chkstk in ntdll
11# RtlFindCharInUnicodeString in ntdll
12# RtlRaiseException in ntdll
13# RaiseException in KERNELBASE
14# _CxxThrowException at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\throw.cpp:75
15# `BitTorrent::TorrentImpl::reload'::`1'::catch$26 at G:\QBITTORRENT\qbt-src-4.6.3\src\base\bittorrent\torrentimpl.cpp:1753
16# _CallSettingFrame_LookupContinuationIndex at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\amd64\handlers.asm:98
17# __FrameHandler4::CxxCallCatchBlock at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\frame.cpp:1435
18# RtlCaptureContext2 in ntdll
19# BitTorrent::TorrentImpl::reload at G:\QBITTORRENT\qbt-src-4.6.3\src\base\bittorrent\torrentimpl.cpp:1718
20# BitTorrent::TorrentImpl::endReceivedMetadataHandling at G:\QBITTORRENT\qbt-src-4.6.3\src\base\bittorrent\torrentimpl.cpp:1698
21# BitTorrent::SessionImpl::fileSearchFinished at G:\QBITTORRENT\qbt-src-4.6.3\src\base\bittorrent\sessionimpl.cpp:2307
22# QtPrivate::QSlotObject const &),QtPrivate::List const &>,void>::impl at G:\QBITTORRENT\packages_msvc2022_64\qt6\include\QtCore\qobjectdefs_impl.h:390
23# QMetaCallEvent::placeMetaCall in qbittorrent
24# QObject::event in qbittorrent
25# QApplicationPrivate::notify_helper in qbittorrent
26# QApplication::notify in qbittorrent
27# QCoreApplication::notifyInternal2 in qbittorrent
28# QCoreApplicationPrivate::sendPostedEvents in qbittorrent
29# QWindowsGuiEventDispatcher::sendPostedEvents in qbittorrent
30# QEventDispatcherWin32::processEvents in qbittorrent
31# QWindowsGuiEventDispatcher::processEvents in qbittorrent
32# QEventLoop::exec in qbittorrent
33# QDialog::exec in qbittorrent
34# displayErrorMessage at G:\QBITTORRENT\qbt-src-4.6.3\src\app\main.cpp:334
35# main$catch$81 at G:\QBITTORRENT\qbt-src-4.6.3\src\app\main.cpp:280
36# _CallSettingFrame_LookupContinuationIndex at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\amd64\handlers.asm:98
37# __FrameHandler4::CxxCallCatchBlock at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\frame.cpp:1435
38# RtlCaptureContext2 in ntdll
39# main at G:\QBITTORRENT\qbt-src-4.6.3\src\app\main.cpp:271
40# WinMain in qbittorrent
41# __scrt_common_main_seh at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
42# BaseThreadInitThunk in KERNEL32
43# RtlUserThreadStart in ntdll

Steps to reproduce

No response

Additional context

No response

Log(s) & preferences file(s)

No response

stalkerok commented 5 months ago

qBittorrent version: v4.6.3 (64-bit)

Latest 4.6.5

Steps to reproduce

No response

👎

glassez commented 4 months ago

FYI, there are similar crash reports that can be found by "BitTorrent::TorrentImpl::reload" term.

Steps to reproduce

No response

👎

I believe it's not that easy to reproduce. It occurs as a result of race conditions at the time the metadata is received.

qBittorrent version: v4.6.3 (64-bit)

Latest 4.6.5

Unfortunately, the v4.6.x branch does not contain any fixes for it, as I have only just researched this issue to understand (I hope) its reason. But fortunately, the v5.0.x branch contains some change that seems to prevent this problem.