qBittorrent
qBittorrent copied to clipboard
Invalid Handle exception 0xC0000008 with 4.2.2
Please provide the following information
qBittorrent version and Operating System
qBittorrent 4.2.2 (Official) - Windows 10 Pro x64 Version 1909 Build 18363.752
10.0.18363
If on linux, libtorrent-rasterbar and Qt version
N/A
What is the problem
Unhandled exception 0xC0000008
What is the expected behavior
Not to have a Unhandled exception 0xC0000008
Steps to reproduce
EDIT: Enable Handle Checking in Application Verifier

Just started up the program & was waiting for it to fully load up for a few minutes.
All torrents were in paused state before opening the program - so no download/uploading/seeding/checking etc.
See partial stacktrace below - boost asio problem?!
Extra info(if any)
(17b4.a80): Invalid handle - code c0000008 (first chance)
[3/30/2020 1:35:42 AM]
Exception 0XC0000008 on thread 2756. DetailID = 1
Stack Trace
RetAddr : Args to Child : Call Site
00007ffd`03f8158b : 00000000`000007d8 00000018`f69ff450 00000018`f69ff458 00000018`f69ff460 : ntdll!KiRaiseUserExceptionDispatcher+0x3a
00007ffd`12a9ec88 : 00000000`00000000 00000000`000007e8 00000000`00000000 00000000`00000000 : vfbasics+0x1158b
00007ffd`16181f7c : 00000018`f69ff778 00000018`f69ff778 00007ffd`03fb6ec0 00007ffd`03f74cf2 : MSWSOCK!WSPSelect+0x588
00007ff6`c6566e8e : 000001ff`6206dff0 000001ff`61f35f98 000001ff`61f35e50 000001ff`61f35e80 : WS2_32!select+0x1ac
(Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : qbittorrent!boost::asio::detail::socket_ops::select+0x85 [G:\QBITTORRENT\boost_1_72_0\boost\asio\detail\impl\socket_ops.ipp @ 1795]
00007ff6`c6567030 : 00000000`00000001 00000000`00000000 000001ff`5f465f50 00000000`00000a80 : qbittorrent!boost::asio::detail::select_reactor::run+0x2de [G:\QBITTORRENT\boost_1_72_0\boost\asio\detail\impl\select_reactor.ipp @ 237]
00007ff6`c6504a7e : 000001ff`62085fd0 00000000`00000000 000001ff`6207bfe0 00007ff6`c6504a60 : qbittorrent!boost::asio::detail::select_reactor::run_thread+0x68 [G:\QBITTORRENT\boost_1_72_0\boost\asio\detail\impl\select_reactor.ipp @ 280]
00007ff6`c6fdf850 : 000001ff`6207bfe0 000001ff`62085fd0 00000000`00000000 00000000`00000000 : qbittorrent!boost::asio::detail::win_thread_function+0x2e [G:\QBITTORRENT\boost_1_72_0\boost\asio\detail\impl\win_thread.ipp @ 127]
00007ffd`03f82534 : 000001ff`50dc7fc0 00000000`00000000 000001ff`50dc7fc0 00000000`00000000 : qbittorrent!thread_start<unsigned int (__cdecl*)(void *),1>+0x50 [minkernel\crts\ucrt\src\appcrt\startup\thread.cpp @ 97]
00007ffd`157a7bd4 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : vfbasics+0x12534
00007ffd`1642ced1 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : KERNEL32!BaseThreadInitThunk+0x14
00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21
[3/30/2020 1:35:43 AM]
Action limit of 1 reached for unconfigured first chance exceptions.
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
=======================================
VERIFIER STOP 0000000000000300: pid 0x17B4: Invalid handle exception for current stack trace.
00000000C0000008 : Exception code.
00000018F69FF0F0 : Exception record. Use .exr to display it.
00000018F69FEC00 : Context record. Use .cxr to display it.
0000000000000000 : Not used.
=======================================
This verifier stop is continuable.
After debugging it use `go' to continue.
=======================================
(17b4.a80): Break instruction exception - code 80000003 (first chance)
Exception 0X80000003 on thread 2756. DetailID = 2
[3/30/2020 1:36:41 AM]
It did not crash per se, in fact the same instance of qBittorrent is currently running, have debugdiag attached as always & have added 0xC0000008 to my rules now for hopefully a full stacktrace if it happens again.