hi all,
i am developing video display driver for simple VGA type device and miniport driver, my device successfully came under video apapters and can see its configuration data(modes) also.
when i will select use as default desktop checkbox , windows GDI calls my DDI's EnablePDev function,
in that function i m allocating, initalizing my device memory and fills the gdiinfo and pdevinfo structures in response to this call and returning memory of newly allocated device pointer
after returning from this call windows crashes with following dump info:
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.
MODULE_NAME: win32k
FAULTING_MODULE: 804d7000 nt
DEBUG_FLR_IMAGE_TIMESTAMP: 41107f7a
EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at "0x%08lx" referenced memory at "0x%08lx". The memory could not be "%s".
FAULTING_IP:
win32k!EngDeleteSemaphore+2391
bf86f788 837e1400 cmp dword ptr [esi+14h],0
TRAP_FRAME: eea5d7d8 -- (.trap 0xffffffffeea5d7d8)
ErrCode = 00000000
eax=eea5d860 ebx=eea5da90 ecx=bc400000 edx=00000008 esi=00000000 edi=00000003
eip=bf86f788 esp=eea5d84c ebp=eea5da14 iopl=0 nv up ei ng nz na po nc
cs=0008 ss=0010 ds=0023 es=0023 fs=0030 gs=0000 efl=00010282
win32k!EngDeleteSemaphore+0x2391:
bf86f788 837e1400 cmp dword ptr [esi+14h],0 ds:0023:00000014=????????
Resetting default scope
DEFAULT_BUCKET_ID: DRIVER_FAULT
BUGCHECK_STR: 0x8E
LAST_CONTROL_TRANSFER: from 805333be to 804e3b25
STACK_TEXT:
WARNING: Stack unwind information not available. Following frames may be wrong.
eea5cfa0 805333be 00000003 00000000 eea5d784 nt!DbgBreakPointWithStatus+0x4
eea5d380 805339ae 0000008e c0000005 bf86f788 nt!KeDeregisterBugCheckReasonCallback+0x6c7
eea5d3a0 8051dea6 0000008e c0000005 bf86f788 nt!KeBugCheckEx+0x1b
eea5d768 804dfada eea5d784 00000000 eea5d7d8 nt!PoSetSystemState+0x58eb
eea5d7e4 bf8b253b e3882008 00000000 00000000 nt!Kei386EoiHelper+0x1df
eea5da14 bf8b27b0 e3538888 e36c4c30 00000000 win32k!EngLoadImage+0x1868
eea5da70 bf8b3272 e354d3e0 e137f2d0 e36c4c30 win32k!EngLoadImage+0x1add
eea5dbe8 bf8b9b84 00000000 00000000 00000001 win32k!EngQueryPerformanceFrequency+0x6e6
eea5dcdc bf8bbe20 00000000 e175f008 00000000 win32k!EngFreeModule+0x2212
eea5dd20 bf8bbd13 00000000 00000000 00000000 win32k!EngGetLastError+0x6e2
eea5dd48 804df06b 00000000 00000000 00000000 win32k!EngGetLastError+0x5d5
eea5dddc 804fa477 f83edb85 82024438 00000000 nt!ZwYieldExecution+0xb96
eea5de8c 7c9106eb 00000000 00000000 607a6040 nt!KeInitializeTimer+0x10c
00000000 00000000 00000000 00000000 00000000 ntdll!RtlAllocateHeap+0x117
STACK_COMMAND: kb
FOLLOWUP_IP:
win32k!EngDeleteSemaphore+2391
bf86f788 837e1400 cmp dword ptr [esi+14h],0
SYMBOL_STACK_INDEX: 0
SYMBOL_NAME: win32k!EngDeleteSemaphore+2391
FOLLOWUP_NAME: MachineOwner
IMAGE_NAME: win32k.sys
BUCKET_ID: WRONG_SYMBOLS
Followup: MachineOwner
can anybody guide something ?, will help a lot....