Skip to content

BSOD System_Service_Exception before and after total windows reinstall #15167

Description

@ALEX8642

qBittorrent version and Operating System
qBittorrent v4.3.6 (64-bit)
Qt: 5.15.2
Libtorrent: 1.2.14.0
Boost: 1.76.0
OpenSSL: 1.1.1k
zlib: 1.2.11
Windows 10 Pro build 19043.1081

What is the problem
System_Service_Exception BSOD (sometimes the system completely freezes without BSOD as well). This started out as a weekly crash, then a daily, then every few hours. Totally reinstalled windows, went away for a week, now it has returned again and happens within minutes of booting. Note that my use case is from a power user perspective. I am hosting 604 large (50gb+) torrents on this client. Issue does not happen with qbittorrent is not running.

What is the expected behavior
That it does not crash.

Steps to reproduce
Seemingly random. System runs 24/7 with only occasional restarts for windows updates. After reinstalling windows it went away for about a week, then returned. Now I cannot run the application anymore as it causes a BSOD within minutes. At one time the app itself would simply close without error as well (nothing in logs), but that was before the reinstall.


Note that there are no errors or other noticeable comments in the qbittorrent logs. No difference between an old log without the issue and a new log at the time of the crash:

example below:

(N) 2021-06-27T23:23:17 - qBittorrent v4.3.6 started
(N) 2021-06-27T23:23:17 - Using config directory: C:/Users/alex8/AppData/Roaming/qBittorrent/
(I) 2021-06-27T23:23:17 - Trying to listen on: 0.0.0.0:50077,[::]:50077
(N) 2021-06-27T23:23:17 - Peer ID: -qB4360-
(N) 2021-06-27T23:23:17 - HTTP User-Agent is 'qBittorrent/4.3.6'
(I) 2021-06-27T23:23:17 - DHT support [OFF]
(I) 2021-06-27T23:23:17 - Local Peer Discovery support [OFF]
(I) 2021-06-27T23:23:17 - PeX support [OFF]
(I) 2021-06-27T23:23:17 - Anonymous mode [OFF]
(I) 2021-06-27T23:23:17 - Encryption support [ON]
(I) 2021-06-27T23:23:17 - UPnP / NAT-PMP support [ON]
(I) 2021-06-27T23:23:17 - IP geolocation database loaded. Type: DBIP-Country-Lite. Build time: Mon May 31 20:03:56 2021.
(N) 2021-06-27T23:23:17 - Options were saved successfully.

...aside from disabling peer discovery this is only other thing I did: I am using custom them - mumble-dark.qbtheme

Memory Dump analysis below (File is 2GB, cannot attach):

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

Loading Dump File [C:\Users\alex8\OneDrive\Desktop\MEMORY.DMP]
Kernel Bitmap Dump File: Kernel address space is available, User address space may not be available.

Symbol search path is: srv*
Executable search path is:
Windows 10 Kernel Version 19041 MP (12 procs) Free x64
Product: WinNt, suite: TerminalServer SingleUserTS
Edition build lab: 19041.1.amd64fre.vb_release.191206-1406
Machine Name:
Kernel base = 0xfffff80547a00000 PsLoadedModuleList = 0xfffff8054862a290
Debug session time: Tue Jul 6 05:05:32.489 2021 (UTC - 4:00)
System Uptime: 0 days 17:33:10.219
Loading Kernel Symbols
...............................................................
................................................................
..........................................................Page 1bbab3 not present in the dump file. Type ".hh dbgerr004" for details
.Page 6e73cb not present in the dump file. Type ".hh dbgerr004" for details
.....
.....................................................
Loading User Symbols
PEB is paged out (Peb.Ldr = 00000029b9e5b018). Type ".hh dbgerr001" for details Loading unloaded module list ........... For analysis of this file, run !analyze -v nt!KeBugCheckEx: fffff80547df6b90 48894c2408 mov qword ptr [rsp+8],rcx ss:0018:ffff9a86`820a63c0=000000000000003b
11: kd> !analyze -v


  •                                                                         *
    
  •                    Bugcheck Analysis                                    *
    
  •                                                                         *
    

SYSTEM_SERVICE_EXCEPTION (3b)
An exception happened while executing a system service routine.
Arguments:
Arg1: 00000000c0000005, Exception code that caused the BugCheck
Arg2: fffff80547c082b6, Address of the instruction which caused the BugCheck
Arg3: ffff9a86820a6cc0, Address of the context record for the exception that caused the BugCheck
Arg4: 0000000000000000, zero.

Debugging Details:

KEY_VALUES_STRING: 1

Key  : Analysis.CPU.mSec
Value: 1906

Key  : Analysis.DebugAnalysisManager
Value: Create

Key  : Analysis.Elapsed.mSec
Value: 2009

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

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

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

Key  : WER.OS.Branch
Value: vb_release

Key  : WER.OS.Timestamp
Value: 2019-12-06T14:06:00Z

Key  : WER.OS.Version
Value: 10.0.19041.1

BUGCHECK_CODE: 3b

BUGCHECK_P1: c0000005

BUGCHECK_P2: fffff80547c082b6

BUGCHECK_P3: ffff9a86820a6cc0

BUGCHECK_P4: 0

CONTEXT: ffff9a86820a6cc0 -- (.cxr 0xffff9a86820a6cc0)
rax=0000000000000001 rbx=ffffffffffffffff rcx=ffffe08f00000000
rdx=00000000746c6644 rsi=ffffe08f00000000 rdi=ffffe08fb0539a60
rip=fffff80547c082b6 rsp=ffff9a86820a76c0 rbp=ffff9a86820a7900
r8=ffffd00a3f9661ca r9=0000000000000002 r10=00000000ffffffff
r11=0000000000000024 r12=0000000000000001 r13=0000000000000000
r14=ffffe08fd39c4220 r15=0000000000000000
iopl=0 nv up ei pl zr na po nc
cs=0010 ss=0018 ds=002b es=002b fs=0053 gs=002b efl=00050246
nt!ObfDereferenceObjectWithTag+0x26:
fffff80547c082b6 f0480fc15ed0 lock xadd qword ptr [rsi-30h],rbx ds:002b:ffffe08effffffd0=????????????????
Resetting default scope

BLACKBOXBSD: 1 (!blackboxbsd)

BLACKBOXNTFS: 1 (!blackboxntfs)

BLACKBOXPNP: 1 (!blackboxpnp)

BLACKBOXWINLOGON: 1

PROCESS_NAME: qbittorrent.exe

STACK_TEXT:
ffff9a86820a76c0 fffff80547c0827e : ffffe08fd39c4250 0000000000000000 0000000000000000 0100000000100000 : nt!ObfDereferenceObjectWithTag+0x26
ffff9a86820a7700 fffff805480e5e86 : ffff9a86820a7900 ffffe08fcf5ce750 ffffe08fd39c4220 0000000000000000 : nt!HalPutDmaAdapter+0xe
ffff9a86820a7730 fffff805480e0120 : ffff9a86820a7939 0000000000000000 ffffe08fb0539a60 ffffe08fcf5ce750 : nt!IopDeleteFile+0x226
ffff9a86820a77b0 fffff80547c08357 : 0000000000000000 0000000000000000 ffff9a86820a7939 ffffe08fd39c4250 : nt!ObpRemoveObjectRoutine+0x80
ffff9a86820a7810 fffff80547ff372e : ffffe08fb0539a60 0000000000000000 ffffffff00000000 ffffe08fb0539a60 : nt!ObfDereferenceObjectWithTag+0xc7
ffff9a86820a7850 fffff80547ff73ac : 0000000000000f84 ffff9a86820a7a80 00000029bf7fe958 ffffffffffb3b4ca : nt!ObCloseHandleTableEntry+0x29e
ffff9a86820a7990 fffff80547e085b5 : ffffe08fce937000 00000000000493e0 ffff9a86820a7a80 00000000000003e4 : nt!NtClose+0xec
ffff9a86820a7a00 00007ffc48dcd004 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : nt!KiSystemServiceCopyEnd+0x25
00000029bf7fe8b8 0000000000000000 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : 0x00007ffc`48dcd004

SYMBOL_NAME: nt!ObfDereferenceObjectWithTag+26

MODULE_NAME: nt

IMAGE_NAME: ntkrnlmp.exe

STACK_COMMAND: .cxr 0xffff9a86820a6cc0 ; kb

BUCKET_ID_FUNC_OFFSET: 26

FAILURE_BUCKET_ID: 0x3B_c0000005_nt!ObfDereferenceObjectWithTag

OS_VERSION: 10.0.19041.1

BUILDLAB_STR: vb_release

OSPLATFORM_TYPE: x64

OSNAME: Windows 10

FAILURE_ID_HASH: {7ebf58a2-0210-7815-d6f6-0e4124026922}

Followup: MachineOwner

11: kd> .cxr 0xffff9a86820a6cc0
rax=0000000000000001 rbx=ffffffffffffffff rcx=ffffe08f00000000
rdx=00000000746c6644 rsi=ffffe08f00000000 rdi=ffffe08fb0539a60
rip=fffff80547c082b6 rsp=ffff9a86820a76c0 rbp=ffff9a86820a7900
r8=ffffd00a3f9661ca r9=0000000000000002 r10=00000000ffffffff
r11=0000000000000024 r12=0000000000000001 r13=0000000000000000
r14=ffffe08fd39c4220 r15=0000000000000000
iopl=0 nv up ei pl zr na po nc
cs=0010 ss=0018 ds=002b es=002b fs=0053 gs=002b efl=00050246
nt!ObfDereferenceObjectWithTag+0x26:
fffff80547c082b6 f0480fc15ed0 lock xadd qword ptr [rsi-30h],rbx ds:002b:ffffe08effffffd0=????????????????

Metadata

Metadata

Assignees

No one assigned

    Labels

    CrashNot an issueUser error, problem unrelated to qBittorrent, feature already implemented, etcOS: WindowsIssues specific to Windows

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions