Hi All,
I’m trying to build my WDF driver using VS2010. After finishing several project settings, I can compile the driver successfully and the binary is generated to the target directory. However, once being installed, it causes the BSOD in the DriverEntry when calling the WdfDriverCreate. It never happens if I compile it with the NTBuild in WDK enviroment.
I know it may be caused by my dumb project setting in the VS2010 but I don’t know which setting can be wrong. Can anyone here shed me a light? For your convinience, I paste the output of the !analyze -v in the windbg for your reference.
ADDITIONAL_DEBUG_TEXT:
Use ‘!findthebuild’ command to search for the target build information.
If the build information is available, run ‘!findthebuild -s ; .reload’ to set symbol path and load symbols.
FAULTING_MODULE: 82e0d000 nt
DEBUG_FLR_IMAGE_TIMESTAMP: 4ec5c50e
EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s.
FAULTING_IP:
+c00f9
00000000 ?? ???
EXCEPTION_RECORD: 8ad2352c – (.exr 0xffffffff8ad2352c)
ExceptionAddress: 00000000
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 00000008
Parameter[1]: 00000000
Attempt to execute non-executable address 00000000
CONTEXT: 8ad23110 – (.cxr 0xffffffff8ad23110)
eax=85002000 ebx=00000000 ecx=84deb5d8 edx=00000000 esi=84deb5d8 edi=85002000
eip=00000000 esp=8ad235f4 ebp=8ad23610 iopl=0 nv up ei ng nz ac po nc
cs=0008 ss=0010 ds=0023 es=0023 fs=0030 gs=0000 efl=00010292
00000000 ?? ???
Resetting default scope
CUSTOMER_CRASH_COUNT: 1
DEFAULT_BUCKET_ID: VISTA_DRIVER_FAULT
BUGCHECK_STR: 0x7E
CURRENT_IRQL: 0
LAST_CONTROL_TRANSFER: from 9b8919a4 to 00000000
STACK_TEXT:
WARNING: Frame IP not in any known module. Following frames may be wrong.
8ad235f0 9b8919a4 00000000 84deb5d8 85002000 0x0
8ad23610 9b89a671 84deb5d8 85002000 8ad23660 RzFilter!WdfDriverCreate+0x24 [e:\winddk\7600.16385.1\inc\wdf\kmdf\1.9\wdfdriver.h @ 219]
8ad23698 82fb0740 84deb5d8 85002000 c000035f RzFilter!DriverEntry+0x161 [e:\work\heidi\rig\overlay\rzfilter\rzfilter.c @ 120]
8ad2387c 82fb7fff 00000000 00000001 8ad238a4 nt+0x1a3740
8ad23928 82ffce13 9e6ae180 00000001 9e6ae154 nt+0x1aafff
8ad23960 830050f8 00000007 8ad23a2c c0000034 nt+0x1efe13
8ad239cc 82fb527d 40000000 800009c0 8ad23a48 nt+0x1f80f8
8ad23aa8 82fb488e 866cb460 8ad23cd0 84e24e18 nt+0x1a827d
8ad23ca4 82fbd681 866cb460 84e24e18 8ad23cd0 nt+0x1a788e
8ad23cd8 82e20f56 82f70e80 84caf798 82f475bc nt+0x1b0681
8ad23d00 82e7af3b 00000000 00000000 84caf798 nt+0x13f56
8ad23d50 8301b6d3 00000001 a3fac2de 00000000 nt+0x6df3b
8ad23d90 82ecd0f9 82e7ae2e 00000001 00000000 nt+0x20e6d3
00000000 00000000 00000000 00000000 00000000 nt+0xc00f9
FOLLOWUP_IP:
RzFilter!WdfDriverCreate+24 [e:\winddk\7600.16385.1\inc\wdf\kmdf\1.9\wdfdriver.h @ 219]
9b8919a4 5d pop ebp
SYMBOL_STACK_INDEX: 1
SYMBOL_NAME: RzFilter!WdfDriverCreate+24
FOLLOWUP_NAME: MachineOwner
MODULE_NAME: RzFilter
IMAGE_NAME: RzFilter.sys
STACK_COMMAND: .cxr 0xffffffff8ad23110 ; kb
BUCKET_ID: WRONG_SYMBOLS
Followup: MachineOwner
Thanks,
Marshall