我在开发基于MiniFilter框架的文件过滤驱动时,遇到有对象引用泄露的问题,我如何用windbg查找这个对象的信息?

来布 杭州 0 信誉分
2024-09-12T08:03:27.7366667+00:00

4: kd> g

FILTER VERIFIER ERROR: A filter (Filter = FFFFD40DE201CA20 (fsflt)) leaked references to the following resources:

00000010 Filter Context Structures

00000000 FLT_CALLBACK_DATA structures

00000000 FLT_DEFERRED_IO_WORKITEM structures

00000000 FLT_GENERIC_WORKITEM structures

00000000 FLT_FILE_NAME_INFORMATION structures

00000000 FILE_OBJECT structures

00000000 FLT_OBJECT structures

00000000 ECP context structures
```Type "!fltkd.filter FFFFD40DE201CA20 8 1" in the debugger for a list of leaked referen

 Break, ignore, zap or remove ? b

Breaking in... (press g<enter> to return to assert menu)

Break instruction exception - code 80000003 (first chance)

FLTMGR!FltpvPrintErrors+0x1f2:

fffff805`40c7ba16 cc              int     3

6: kd> !fltkd.filter FFFFD40DE201CA20 8 1

FLT_FILTER: ffffd40de201ca20 "fsflt" "141001"

   InstanceList             : (ffffd40de201ca88)

```sql
  Resource (ffffd40de201caf0) List [ffffd40de201caf0-ffffd40de201caf0] rCount=0 
```   Object usage/reference information: 

```ruby
  References to FLT_CONTEXT                : 10 

  Allocations of FLT_CALLBACK_DATA         : 0 

  Allocations of FLT_DEFERRED_IO_WORKITEM  : 0 

  Allocations of FLT_GENERIC_WORKITEM      : 0 

  References to FLT_FILE_NAME_INFORMATION  : 0 

  Open files                               : 0 

  References to FLT_OBJECT                 : 0 
```   List of objects used/referenced:: 

```yaml
  FLT_VERIFIER_OBJECT: ffffd40de2e19050 

     Object: ffffd40ddb904190  Type: FLT_CONTEXT  RefCount: 00000010
```如何找到Object: ffffd40ddb904190,这个对象的信息。

用!obtrace命令提示:Unable to find object in table.

!object命令都提示:Not a valid object (ObjectType invalid)

Windows 商业版 | 面向 IT 专业人士的 Windows 客户端 | 设备和部署 | 其他
0 个注释 无注释

1 个答案

排序依据: 非常有帮助
  1. 丘梓宏 150 信誉分
    2024-09-17T00:02:50.37+00:00

    你好!

    如果你没有WinDbg的话,你可以去微软商店下载它,谢谢。

    如果有问题,你可以找我。祝您中秋快乐!

    1 个人认为此答案很有帮助。
    0 个注释 无注释

你的答案

提问者可以将答案标记为“已接受”,审查方可以将答案标记为“已推荐”,这有助于用户了解答案是否解决了提问者的问题。