Access violation - code c0000005 (!!! second chance !!!) nt!CcRosInitializeFileCache+0xa: 804055aa 8b5104 mov edx,dword ptr [ecx+4] kd> !analyze -v Connected to Windows Server 2003 3790 x86 compatible target at (Mon Jan 7 16:41:46.877 2013 (UTC + 2:00)), ptr64 FALSE Loading Kernel Symbols ..................................................... Loading User Symbols .......... ******************************************************************************* * * * Bugcheck Analysis * * * ******************************************************************************* Unknown bugcheck code (0) Unknown bugcheck description Arguments: Arg1: 00000000 Arg2: 00000000 Arg3: 00000000 Arg4: 526484ad Debugging Details: ------------------ PROCESS_NAME: kmtest_.exe FAULTING_IP: nt!CcRosInitializeFileCache+a [e:\drivers\reactos\ntoskrnl\cc\view.c @ 1294] 804055aa 8b5104 mov edx,dword ptr [ecx+4] EXCEPTION_RECORD: ffffffff -- (.exr 0xffffffffffffffff) ExceptionAddress: 804055aa (nt!CcRosInitializeFileCache+0x0000000a) ExceptionCode: c0000005 (Access violation) ExceptionFlags: 00000000 NumberParameters: 2 Parameter[0]: 00000000 Parameter[1]: 00000004 Attempt to read from address 00000004 ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s. EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s. EXCEPTION_PARAMETER1: 00000000 EXCEPTION_PARAMETER2: 00000004 READ_ADDRESS: 00000004 FOLLOWUP_IP: kmtest_drv!BasicBehaviorChecks+b0 [e:\drivers\reactos\modules\rostests\kmtests\ntos_mm\zwcreatesection.c @ 230] f97a02b0 8945dc mov dword ptr [ebp-24h],eax BUGCHECK_STR: ACCESS_VIOLATION DEFAULT_BUCKET_ID: NULL_CLASS_PTR_DEREFERENCE CURRENT_IRQL: 0 LAST_CONTROL_TRANSFER: from 8040250e to 804055aa STACK_TEXT: f996d628 8040250e b0651798 00040000 b08b99a0 nt!CcRosInitializeFileCache+0xa [e:\drivers\reactos\ntoskrnl\cc\view.c @ 1294] f996d648 fa165444 b0651798 b0653d88 00000000 nt!CcInitializeCacheMap+0x6e [e:\drivers\reactos\ntoskrnl\cc\fs.c @ 96] f996d6b8 fa1644f3 b07ba6a0 00000003 00000001 fastfat!VfatRead+0x4c4 [e:\drivers\reactos\drivers\filesystems\fastfat\rw.c @ 674] f996d6d0 fa164412 b07ba6a0 00000001 00000001 fastfat!VfatDispatchRequest+0xc3 [e:\drivers\reactos\drivers\filesystems\fastfat\misc.c @ 109] f996d6ec 80468279 b0856018 b064d750 00000001 fastfat!VfatBuildRequest+0xc2 [e:\drivers\reactos\drivers\filesystems\fastfat\misc.c @ 162] f996d710 80460149 00000000 00000000 01000001 nt!IofCallDriver+0xa9 [e:\drivers\reactos\ntoskrnl\io\iomgr\irp.c @ 1171] f996d72c 80462b9c b0856018 b064d750 b0651798 nt!IopPerformSynchronousRequest+0xa9 [e:\drivers\reactos\ntoskrnl\io\iomgr\iofunc.c @ 135] f996d7c8 804fd8a9 800006f0 00000000 00000000 nt!NtReadFile+0x54c [e:\drivers\reactos\ntoskrnl\io\iomgr\iofunc.c @ 2160] f996d7fc 804fd852 80462650 f996d8cc 00000024 nt!KiSystemCallTrampoline+0x19 [e:\drivers\reactos\ntoskrnl\include\internal\i386\ke.h @ 668] f996d834 804fd229 f996d854 f996d8cc f996d8cc nt!KiSystemCall+0x1f2 [e:\drivers\reactos\ntoskrnl\ke\i386\traphdlr.c @ 1629] f996d84c 804fb826 f996d918 8043e099 00000001 nt!KiSystemServiceHandler+0x19 [e:\drivers\reactos\ntoskrnl\ke\i386\traphdlr.c @ 1653] f996d84c 8043e099 f996d918 8043e099 00000001 nt!KiSystemService+0x60 f996d8c4 804ca37d 800006f0 00000000 00000000 nt!ZwReadFile+0x11 f996d918 804ac47a f996d97c 000f001f 00000000 nt!MmCreateSection+0x19d [e:\drivers\reactos\ntoskrnl\mm\section.c @ 4941] f996d998 804fd8a9 f996db24 000f001f 00000000 nt!NtCreateSection+0x34a [e:\drivers\reactos\ntoskrnl\mm\arm3\section.c @ 2903] f996d9c4 804fd852 804ac130 f996da94 0000001c nt!KiSystemCallTrampoline+0x19 [e:\drivers\reactos\ntoskrnl\include\internal\i386\ke.h @ 668] f996d9fc 804fd229 f996da1c f996da94 f996da94 nt!KiSystemCall+0x1f2 [e:\drivers\reactos\ntoskrnl\ke\i386\traphdlr.c @ 1629] f996da14 804fb826 f996db28 8043d5c1 00000001 nt!KiSystemServiceHandler+0x19 [e:\drivers\reactos\ntoskrnl\ke\i386\traphdlr.c @ 1653] f996da14 8043d5c1 f996db28 8043d5c1 00000001 nt!KiSystemService+0x60 f996da8c f97a02b0 f996db24 000f001f 00000000 nt!ZwCreateSection+0x11 f996db28 f979e6b1 800006b4 800006cc f996dbc4 kmtest_drv!BasicBehaviorChecks+0xb0 [e:\drivers\reactos\modules\rostests\kmtests\ntos_mm\zwcreatesection.c @ 230] f996db38 f975e0c4 f996dd04 00dafe70 7ffba000 kmtest_drv!Test_ZwCreateSection+0xd1 [e:\drivers\reactos\modules\rostests\kmtests\ntos_mm\zwcreatesection.c @ 281] f996dbc4 80468279 b064c038 b06bc7e8 00000001 kmtest_drv!DriverIoControl+0x364 [e:\drivers\reactos\modules\rostests\kmtests\kmtest_drv\kmtest_drv.c @ 370] f996dbe8 80460149 b064e018 00000000 00000094 nt!IofCallDriver+0xa9 [e:\drivers\reactos\ntoskrnl\io\iomgr\irp.c @ 1171] f996dc04 80460879 b064c038 b06bc7e8 b064e300 nt!IopPerformSynchronousRequest+0xa9 [e:\drivers\reactos\ntoskrnl\io\iomgr\iofunc.c @ 135] f996dca0 80461062 00000748 00000000 00000000 nt!IopDeviceFsIoControl+0x5a9 [e:\drivers\reactos\ntoskrnl\io\iomgr\iofunc.c @ 511] f996dcd4 804fd8a9 00000748 00000000 00000000 nt!NtDeviceIoControlFile+0x32 [e:\drivers\reactos\ntoskrnl\io\iomgr\iofunc.c @ 921] f996dd0c 804fd852 80461030 00dafe48 00000028 nt!KiSystemCallTrampoline+0x19 [e:\drivers\reactos\ntoskrnl\include\internal\i386\ke.h @ 668] f996dd44 804fd29d f996dd64 00dafe48 00dafe48 nt!KiSystemCall+0x1f2 [e:\drivers\reactos\ntoskrnl\ke\i386\traphdlr.c @ 1629] f996dd5c 804fb898 00dafea8 77f2c27e badb0d00 nt!KiFastCallEntryHandler+0x6d [e:\drivers\reactos\ntoskrnl\ke\i386\traphdlr.c @ 1675] f996dd5c 77f2c27e 00dafea8 77f2c27e badb0d00 nt!KiFastCallEntry+0x71 00dafe3c 77f4aff7 77dc0c2f 00000748 00000000 ntdll!KiFastSystemCallRet 00dafe40 77dc0c2f 00000748 00000000 00000000 ntdll!ZwDeviceIoControlFile+0xc 00dafea8 0040293f 00000748 0022e004 00031720 kernel32!DeviceIoControl+0x18f [e:\drivers\reactos\dll\win32\kernel32\client\file\deviceio.c @ 249] 00dafedc 00401d20 00031720 00000000 00000000 kmtest_!KmtRunKernelTest+0x4f [e:\drivers\reactos\modules\rostests\kmtests\kmtest\support.c @ 102] 00dafef4 004018c8 00031720 00000003 00031720 kmtest_!RunTest+0xe0 [e:\drivers\reactos\modules\rostests\kmtests\kmtest\kmtest.c @ 281] 00daff1c 00406fb5 00000002 000316f0 00030c48 kmtest_!main+0x258 [e:\drivers\reactos\modules\rostests\kmtests\kmtest\kmtest.c @ 366] 00daffb4 00406d2f 000000ff 00dafff0 77dae275 kmtest_!__tmainCRTStartup+0x245 [e:\drivers\reactos\lib\sdk\crt\startup\crtexe.c @ 310] 00daffc0 77dae275 00edb2d4 00edb2e8 7ffba000 kmtest_!WinMainCRTStartup+0x1f [e:\drivers\reactos\lib\sdk\crt\startup\crtexe.c @ 168] 00dafff0 00000000 00406d10 00000000 00000000 kernel32!BaseProcessStartup+0x55 [e:\drivers\reactos\dll\win32\kernel32\client\proc.c @ 473] STACK_COMMAND: kb FAULTING_SOURCE_CODE: 226: 227: PSECTION_OBJECT_POINTERS Pointers = File->SectionObjectPointer; 228: 229: File->SectionObjectPointer = NULL; > 230: CREATE_SECTION(Section, SECTION_ALL_ACCESS, NULL, Length, PAGE_READONLY, SEC_COMMIT, FileHandle, STATUS_INVALID_FILE_FOR_SECTION, IGNORE); 231: File->SectionObjectPointer = Pointers; 232: ObDereferenceObject(File); 233: } 234: 235: ZwClose(FileHandle); SYMBOL_STACK_INDEX: 14 SYMBOL_NAME: kmtest_drv!BasicBehaviorChecks+b0 FOLLOWUP_NAME: MachineOwner MODULE_NAME: kmtest_drv IMAGE_NAME: kmtest_drv.sys DEBUG_FLR_IMAGE_TIMESTAMP: 50ead9fb FAILURE_BUCKET_ID: ACCESS_VIOLATION_kmtest_drv!BasicBehaviorChecks+b0 BUCKET_ID: ACCESS_VIOLATION_kmtest_drv!BasicBehaviorChecks+b0 Followup: MachineOwner