Hello,
I am getting a Blue Screen of death when running my application on Windows 7, 64-bit (x64). After debugging, I learned that the program sometimes crashes upon calling StretchBlt (member of CDC class). Something I saw on the blue screen:
win32k.sys
Dumping Physical Memory
PAGE_FAULT_IN_NONPAGED_AREA
When running the application without any other applications open, everything is fine. The application crashes only when certain other applications are open.
I used WinDbg and got the following:
PAGE_FAULT_IN_NONPAGED_AREA (50)
Invalid system memory was referenced. This cannot be protected by try-except,
it must be protected by a Probe. Typically the address is just plain bad or it
is pointing at freed memory.
Arguments:
Arg1: fffff900c4000020, memory referenced.
Arg2: 0000000000000000, value 0 = read operation, 1 = write operation.
Arg3: fffff960000f7e06, If non-zero, the instruction address which referenced the bad memory
address.
Arg4: 0000000000000002, (reserved)
Debugging Details:
------------------
Could not read faulting driver name
READ_ADDRESS: fffff900c4000020
FAULTING_IP:
win32k!GreGetSpoolMessage+84
fffff960`000f7e06 488b5220 mov rdx,qword ptr [rdx+20h]
MM_INTERNAL_CODE: 2
CUSTOMER_CRASH_COUNT: 1
DEFAULT_BUCKET_ID: VISTA_DRIVER_FAULT
BUGCHECK_STR: 0x50
CURRENT_IRQL: 0
LAST_CONTROL_TRANSFER: from fffff800029488f2 to fffff800028c9740
STACK_TEXT:
fffff880`043dc568 fffff800`029488f2 : 00000000`00000050 fffff900`c4000020 00000000`00000000 fffff880`043dc6d0 : nt!mbstowcs+0x3a
fffff880`043dc570 00000000`00000050 : fffff900`c4000020 00000000`00000000 fffff880`043dc6d0 00000000`00000002 : nt!IopDeleteLegacyKey+0x74
fffff880`043dc578 fffff900`c4000020 : 00000000`00000000 fffff880`043dc6d0 00000000`00000002 fffff960`002915b0 : 0x50
fffff880`043dc580 00000000`00000000 : fffff880`043dc6d0 00000000`00000002 fffff960`002915b0 00000000`00000ab8 : 0xfffff900`c4000020
STACK_COMMAND: .bugcheck ; kb
FOLLOWUP_IP:
win32k!GreGetSpoolMessage+84
fffff960`000f7e06 488b5220 mov rdx,qword ptr [rdx+20h]
SYMBOL_NAME: win32k!GreGetSpoolMessage+84
FOLLOWUP_NAME: MachineOwner
MODULE_NAME: win32k
IMAGE_NAME: win32k.sys
DEBUG_FLR_IMAGE_TIMESTAMP: 4c1c483f
FAILURE_BUCKET_ID: X64_0x50_win32k!GreGetSpoolMessage+84
BUCKET_ID: X64_0x50_win32k!GreGetSpoolMessage+84
Followup: MachineOwner
I tried:
kd>!pool fffff900c4000020
I got this:
The pool page you have specified is not in this dump.
Does anyone have any ideas?
Mike