How to Debug: System restart/shutdown issue

Hello list,

Working on a file system driver, kindly refer base code placed at http://ext2fsd.sourceforge.net/projects/projects.htm#ext2fsd

Here is the test case and issue:
Test case: plug and unplug usb (without safe removal) mutiple times.
Issue:The system upon restart / shutdown DOES NOT restart/shutdown.

We tried to debug the source using remote debugging (WinDbg), but windbg didnot point any issue on our driver.

Also, we used driver verifier to verify the driver, but still the driver verifier doesnot crashes the system. (i hope driver verifier crashes the system incase it finds some fault in source flow)

The problem is probably in our driver itself, but hard to trace.

  1. What are the other ways (besides remote debugging & driver verifier) to find out such issues?
  2. Probably the kernel memory / some system resource is not being freed due to which system doesnot shut down/restart. How to diagnose the same?

any pointers/suggestions would be of great help.

thanks,
rohit

> 1. What are the other ways (besides remote debugging & driver verifier) to find out such issues?

!process 0 7 to find the stack of the hung thread during shutdown.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com