Hi sarbojit,
I am using WinDbg for debugging driver. I have fixed many issues in my driver and now it loads successfully. The problem occurs when i try to run IO, resulting in BSOD with different bug checks. Below is the log for your reference.
BugCheck D1, {24, 2, 0, 82fb7357}
DRIVER_IRQL_NOT_LESS_OR_EQUAL (d1)
An attempt was made to access a pageable (or completely invalid) address at an
interrupt request level (IRQL) that is too high. This is usually
caused by drivers using improper addresses.
If kernel debugger is available get stack backtrace.
Arguments:
Arg1: 00000024, memory referenced
Arg2: 00000002, IRQL
Arg3: 00000000, value 0 = read operation, 1 = write operation
Arg4: 82fb7357, address which referenced memory
Debugging Details:
Missing image name, possible paged-out or corrupt data.
Unable to read KLDR_DATA_TABLE_ENTRY at 00000000 - Win32 error 0n30
WARNING: .reload failed, module list may be incomplete
Missing image name, possible paged-out or corrupt data.
Unable to read KLDR_DATA_TABLE_ENTRY at 00000000 - Win32 error 0n30
WARNING: .reload failed, module list may be incomplete
READ_ADDRESS: 00000024
CURRENT_IRQL: 2
FAULTING_IP:
storport!RaidUnitReleaseIrp+11
82fb7357 8b7e24 mov edi,dword ptr [esi+24h]
DEFAULT_BUCKET_ID: VISTA_DRIVER_FAULT
BUGCHECK_STR: 0xD1
PROCESS_NAME: System
TRAP_FRAME: 8cd52b60 -- (.trap 0xffffffff8cd52b60)
ErrCode = 00000000
eax=86e5eb10 ebx=86e5eb10 ecx=86e5ebc8 edx=00000000 esi=00000000 edi=86e5ecc4
eip=82fb7357 esp=8cd52bd4 ebp=8cd52be0 iopl=0 nv up ei pl zr na pe nc
cs=0008 ss=0010 ds=0023 es=0023 fs=0030 gs=0000 efl=00010246
storport!RaidUnitReleaseIrp+0x11:
82fb7357 8b7e24 mov edi,dword ptr [esi+24h] ds:0023:00000024=????????
Resetting default scope
LAST_CONTROL_TRANSFER: from 8292ae71 to 828b9394
STACK_TEXT:
8cd5272c 8292ae71 00000003 57a2022a 00000065 nt!RtlpBreakWithStatusInstruction
8cd5277c 8292b96d 00000003 00000024 82fb7357 nt!KiBugCheckDebugBreak+0x1c
8cd52b40 828947eb 0000000a 00000024 00000002 nt!KeBugCheck2+0x68b
8cd52b40 82fb7357 0000000a 00000024 00000002 nt!KiTrap0E+0x2cf
8cd52be0 82fb7806 86e5eb10 86e5eb10 86e5ecc4 storport!RaidUnitReleaseIrp+0x11
8cd52c1c 82fb7a65 8750eac0 856e9008 8559b0e8 storport!RaUnitAsyncError+0x15e
8cd52c50 82fa91d9 8750eac0 8559b0a4 8cd3b884 storport!RaidUnitCompleteRequest+0x101
8cd52c78 828b63b5 8559b0a4 8559b030 00000000 storport!RaidpAdapterDpcRoutine+0x51
8cd52cd4 828b6218 8cd36120 8cd3b800 00000000 nt!KiExecuteAllDpcs+0xf9
8cd52d20 828b6038 00000000 0000000e 00000000 nt!KiRetireDpcList+0xd5
8cd52d24 00000000 0000000e 00000000 00000000 nt!KiIdleLoop+0x38
STACK_COMMAND: kb
FOLLOWUP_IP:
storport!RaidUnitReleaseIrp+11
82fb7357 8b7e24 mov edi,dword ptr [esi+24h]
SYMBOL_STACK_INDEX: 4
SYMBOL_NAME: storport!RaidUnitReleaseIrp+11
FOLLOWUP_NAME: MachineOwner
MODULE_NAME: storport
IMAGE_NAME: storport.sys
DEBUG_FLR_IMAGE_TIMESTAMP: 4a5bc736
FAILURE_BUCKET_ID: 0xD1_storport!RaidUnitReleaseIrp+11
BUCKET_ID: 0xD1_storport!RaidUnitReleaseIrp+11
Followup: MachineOwner
How i need to debug this kind of issues?
Thanks,
Amogha