Invalid Handle Crash Dump #13036

Closed
opened 2026-02-21 23:28:57 -05:00 by deekerman · 4 comments
Owner

Originally created by @rugabunda on GitHub (Feb 9, 2022).

qBittorrent & operating system versions

qBittorrent 4.4.0

Win 11x64 21h2 (10.0.22000)

What is the problem?

Invalid handle, while minimized without user interaction; tends to happen shortly after initial load.

`
Microsoft (R) Windows Debugger Version 10.0.22000.194 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.

Loading Dump File [C:\Users\Ty\AppData\Local\CrashDumps\backup\qbittorrent.exe.10456.dmp]
User Mini Dump File: Only registers, stack and portions of memory are available

Symbol search path is: srv*
Executable search path is:
Windows 10 Version 22000 MP (12 procs) Free x64
Product: WinNt, suite: SingleUserTS
Edition build lab: 22000.1.amd64fre.co_release.210604-1628
Machine Name:
Debug session time: Wed Feb 9 01:09:35.000 2022 (UTC - 7:00)
System Uptime: not available
Process Uptime: 0 days 0:00:40.000
................................................................
.......................
Loading unloaded module list
..........
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(28d8.2a48): Invalid handle - code c0000008 (first/second chance not available)
For analysis of this file, run !analyze -v
ntdll!NtWaitForMultipleObjects+0x14:
00007ffc`9a2642a4 c3 ret
0:012> !analyze -v


  •                                                                         *
    
  •                    Exception Analysis                                   *
    
  •                                                                         *
    

*** WARNING: Unable to verify checksum for qbittorrent.exe

KEY_VALUES_STRING: 1

Key  : Analysis.CPU.mSec
Value: 1859

Key  : Analysis.DebugAnalysisManager
Value: Create

Key  : Analysis.Elapsed.mSec
Value: 6798

Key  : Analysis.Init.CPU.mSec
Value: 468

Key  : Analysis.Init.Elapsed.mSec
Value: 3471

Key  : Analysis.Memory.CommitPeak.Mb
Value: 212

Key  : Timeline.Process.Start.DeltaSec
Value: 40

Key  : WER.OS.Branch
Value: co_release

Key  : WER.OS.Timestamp
Value: 2021-06-04T16:28:00Z

Key  : WER.OS.Version
Value: 10.0.22000.1

Key  : WER.Process.Version
Value: 4.4.0.0

NTGLOBALFLAG: 0

PROCESS_BAM_CURRENT_THROTTLED: 0

PROCESS_BAM_PREVIOUS_THROTTLED: 0

APPLICATION_VERIFIER_FLAGS: 0

APPLICATION_VERIFIER_LOADED: 1

CONTEXT: (.ecxr)
rax=000001df9821e790 rbx=0000000000000001 rcx=0000000000000000
rdx=00007ffc8aae908e rsi=000001df981f80f0 rdi=0000000000000000
rip=00007ffc9a26777a rsp=0000006247dfefe0 rbp=0000006247dff440
r8=000001df9faae000 r9=0000000000017000 r10=000001df00000004
r11=ffffffffffffffff r12=000001df978b8870 r13=000001df981fe170
r14=000001df9eb08a50 r15=000001df9eb08a40
iopl=0 nv up ei pl nz na pe nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000202
ntdll!KiRaiseUserExceptionDispatcher+0x3a:
00007ffc9a26777a 8b8424c0000000 mov eax,dword ptr [rsp+0C0h] ss:0000006247dff0a0=c0000008
Resetting default scope

EXCEPTION_RECORD: (.exr -1)
ExceptionAddress: 00007ffc9a26777a (ntdll!KiRaiseUserExceptionDispatcher+0x000000000000003a)
ExceptionCode: c0000008 (Invalid handle)
ExceptionFlags: 00000080
NumberParameters: 0
Thread tried to close a handle that was invalid or illegal to close

PROCESS_NAME: qbittorrent.exe

ERROR_CODE: (NTSTATUS) 0xc0000008 - An invalid HANDLE was specified.

EXCEPTION_CODE_STR: c0000008

STACK_TEXT:
0000006247dfefe0 00007ffc96c836a6 : 0000000000000000 0000000000000001 000001df981f80f0 0000000000000000 : ntdll!KiRaiseUserExceptionDispatcher+0x3a
0000006247dff0b0 00007ffc99da2402 : 0000000000000000 0000000000000000 0000cbb479d45750 000001df957c7ce0 : mswsock!WSPSelect+0x536
0000006247dff260 00007ff7821949cc : 0000006200000000 0000000000000000 0000006247dff878 ffffffffffffffff : ws2_32!select+0x152
0000006247dff340 00007ff782194d69 : 0000006247dff8a0 000001df95777a00 000001df95777a00 0000000000000001 : qbittorrent+0x3d49cc
0000006247dff850 00007ff78212e0b8 : 000001df957cd590 0000000000000000 000001df957cd560 0000000000000000 : qbittorrent+0x3d4d69
0000006247dff8d0 00007ff782c93400 : 000001df957cd560 000001df957cd590 0000000000000000 0000000000000000 : qbittorrent+0x36e0b8
0000006247dff910 00007ffc99ae54e0 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : qbittorrent+0xed3400
0000006247dff940 00007ffc9a1c485b : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : kernel32!BaseThreadInitThunk+0x10
0000006247dff970 0000000000000000 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!RtlUserThreadStart+0x2b

SYMBOL_NAME: mswsock!WSPSelect+536

MODULE_NAME: mswsock

IMAGE_NAME: mswsock.dll

STACK_COMMAND: ~12s ; .ecxr ; kb

FAILURE_BUCKET_ID: INVALID_HANDLE_AVRF_c0000008_mswsock.dll!WSPSelect

OS_VERSION: 10.0.22000.1

BUILDLAB_STR: co_release

OSPLATFORM_TYPE: x64

OSNAME: Windows 10

IMAGE_VERSION: 10.0.22000.1

FAILURE_ID_HASH: {679ee48b-0cb0-3e87-1dda-806e7b390877}

Followup: MachineOwner

`

Steps to reproduce

Enable handle validation for qbit, Load Qbittorrent, patiently wait.

Additional context

No response

Log(s) & preferences file(s)

No response

Originally created by @rugabunda on GitHub (Feb 9, 2022). ### qBittorrent & operating system versions qBittorrent 4.4.0 Win 11x64 21h2 (10.0.22000) ### What is the problem? Invalid handle, while minimized without user interaction; tends to happen shortly after initial load. ` Microsoft (R) Windows Debugger Version 10.0.22000.194 AMD64 Copyright (c) Microsoft Corporation. All rights reserved. Loading Dump File [C:\Users\Ty\AppData\Local\CrashDumps\backup\qbittorrent.exe.10456.dmp] User Mini Dump File: Only registers, stack and portions of memory are available Symbol search path is: srv* Executable search path is: Windows 10 Version 22000 MP (12 procs) Free x64 Product: WinNt, suite: SingleUserTS Edition build lab: 22000.1.amd64fre.co_release.210604-1628 Machine Name: Debug session time: Wed Feb 9 01:09:35.000 2022 (UTC - 7:00) System Uptime: not available Process Uptime: 0 days 0:00:40.000 ................................................................ ....................... Loading unloaded module list .......... This dump file has an exception of interest stored in it. The stored exception information can be accessed via .ecxr. (28d8.2a48): Invalid handle - code c0000008 (first/second chance not available) For analysis of this file, run !analyze -v ntdll!NtWaitForMultipleObjects+0x14: 00007ffc`9a2642a4 c3 ret 0:012> !analyze -v ******************************************************************************* * * * Exception Analysis * * * ******************************************************************************* *** WARNING: Unable to verify checksum for qbittorrent.exe KEY_VALUES_STRING: 1 Key : Analysis.CPU.mSec Value: 1859 Key : Analysis.DebugAnalysisManager Value: Create Key : Analysis.Elapsed.mSec Value: 6798 Key : Analysis.Init.CPU.mSec Value: 468 Key : Analysis.Init.Elapsed.mSec Value: 3471 Key : Analysis.Memory.CommitPeak.Mb Value: 212 Key : Timeline.Process.Start.DeltaSec Value: 40 Key : WER.OS.Branch Value: co_release Key : WER.OS.Timestamp Value: 2021-06-04T16:28:00Z Key : WER.OS.Version Value: 10.0.22000.1 Key : WER.Process.Version Value: 4.4.0.0 NTGLOBALFLAG: 0 PROCESS_BAM_CURRENT_THROTTLED: 0 PROCESS_BAM_PREVIOUS_THROTTLED: 0 APPLICATION_VERIFIER_FLAGS: 0 APPLICATION_VERIFIER_LOADED: 1 CONTEXT: (.ecxr) rax=000001df9821e790 rbx=0000000000000001 rcx=0000000000000000 rdx=00007ffc8aae908e rsi=000001df981f80f0 rdi=0000000000000000 rip=00007ffc9a26777a rsp=0000006247dfefe0 rbp=0000006247dff440 r8=000001df9faae000 r9=0000000000017000 r10=000001df00000004 r11=ffffffffffffffff r12=000001df978b8870 r13=000001df981fe170 r14=000001df9eb08a50 r15=000001df9eb08a40 iopl=0 nv up ei pl nz na pe nc cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000202 ntdll!KiRaiseUserExceptionDispatcher+0x3a: 00007ffc`9a26777a 8b8424c0000000 mov eax,dword ptr [rsp+0C0h] ss:00000062`47dff0a0=c0000008 Resetting default scope EXCEPTION_RECORD: (.exr -1) ExceptionAddress: 00007ffc9a26777a (ntdll!KiRaiseUserExceptionDispatcher+0x000000000000003a) ExceptionCode: c0000008 (Invalid handle) ExceptionFlags: 00000080 NumberParameters: 0 Thread tried to close a handle that was invalid or illegal to close PROCESS_NAME: qbittorrent.exe ERROR_CODE: (NTSTATUS) 0xc0000008 - An invalid HANDLE was specified. EXCEPTION_CODE_STR: c0000008 STACK_TEXT: 00000062`47dfefe0 00007ffc`96c836a6 : 00000000`00000000 00000000`00000001 000001df`981f80f0 00000000`00000000 : ntdll!KiRaiseUserExceptionDispatcher+0x3a 00000062`47dff0b0 00007ffc`99da2402 : 00000000`00000000 00000000`00000000 0000cbb4`79d45750 000001df`957c7ce0 : mswsock!WSPSelect+0x536 00000062`47dff260 00007ff7`821949cc : 00000062`00000000 00000000`00000000 00000062`47dff878 ffffffff`ffffffff : ws2_32!select+0x152 00000062`47dff340 00007ff7`82194d69 : 00000062`47dff8a0 000001df`95777a00 000001df`95777a00 00000000`00000001 : qbittorrent+0x3d49cc 00000062`47dff850 00007ff7`8212e0b8 : 000001df`957cd590 00000000`00000000 000001df`957cd560 00000000`00000000 : qbittorrent+0x3d4d69 00000062`47dff8d0 00007ff7`82c93400 : 000001df`957cd560 000001df`957cd590 00000000`00000000 00000000`00000000 : qbittorrent+0x36e0b8 00000062`47dff910 00007ffc`99ae54e0 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : qbittorrent+0xed3400 00000062`47dff940 00007ffc`9a1c485b : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0x10 00000062`47dff970 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x2b SYMBOL_NAME: mswsock!WSPSelect+536 MODULE_NAME: mswsock IMAGE_NAME: mswsock.dll STACK_COMMAND: ~12s ; .ecxr ; kb FAILURE_BUCKET_ID: INVALID_HANDLE_AVRF_c0000008_mswsock.dll!WSPSelect OS_VERSION: 10.0.22000.1 BUILDLAB_STR: co_release OSPLATFORM_TYPE: x64 OSNAME: Windows 10 IMAGE_VERSION: 10.0.22000.1 FAILURE_ID_HASH: {679ee48b-0cb0-3e87-1dda-806e7b390877} Followup: MachineOwner --------- ` ### Steps to reproduce Enable handle validation for qbit, Load Qbittorrent, patiently wait. ### Additional context _No response_ ### Log(s) & preferences file(s) _No response_
deekerman 2026-02-21 23:28:57 -05:00
Author
Owner

@rugabunda commented on GitHub (Feb 9, 2022):

Dump. qbittorrent.exe.12692.7z.zip

@rugabunda commented on GitHub (Feb 9, 2022): Dump. [qbittorrent.exe.12692.7z.zip](https://github.com/qbittorrent/qBittorrent/files/8030767/qbittorrent.exe.12692.7z.zip)
Author
Owner

@rugabunda commented on GitHub (Feb 10, 2022):

Same crash happens regularly

@rugabunda commented on GitHub (Feb 10, 2022): Same crash happens regularly
Author
Owner

@rugabunda commented on GitHub (Feb 11, 2022):

Happened again today trying update search engines,
qbittorrent.exe.8196.7z.zip

@rugabunda commented on GitHub (Feb 11, 2022): Happened again today trying update search engines, [qbittorrent.exe.8196.7z.zip](https://github.com/qbittorrent/qBittorrent/files/8052528/qbittorrent.exe.8196.7z.zip)
Author
Owner

@xavier2k6 commented on GitHub (Mar 16, 2025):

subscribe to #12329

@xavier2k6 commented on GitHub (Mar 16, 2025): subscribe to #12329
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#13036
No description provided.