Detecting hung application /driver

Hi,

I am working on a large product which is having User Mode as well as Kernel
Mode code i.e. multiple processes as well as drivers are active at a time.
There is a random problem that I am facining in my product on Windows VISTA
(Multi-processor machine).
When I log on to the machine, sometimes the products hangs indefinitely
leading the machine to be unusable.
At this time, I am not sure of which WinDbg commands can be helpful to me.

What I want to check is:

  1. Which is the hung application (if any)?
  2. Which is the hung driver (if any)?
  3. Is there any deadlock at this time.

I tried with !analyze command but not able to produce much of relevant
results.
Please help.

Regards,
Shreshth

Please try different options in SoftIce for that. Maybe you can track it through step by step execution.

Good Luck

Pranav

Thanks but I suppose SoftIce is not supported on Windows VISTA :slight_smile:

Regards,
Shreshth

On Mon, Oct 6, 2008 at 5:13 PM, wrote:

> Please try different options in SoftIce for that. Maybe you can track it
> through step by step execution.
>
> Good Luck
>
> Pranav
>
> —
> You are currently subscribed to windbg as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Windbg help file:
Debugger techniques -> Advanced Debugger techniques ->
Debugging a stalled system

Regards,
–PA

Shreshth Luthra wrote:

Hi,

I am working on a large product which is having User Mode as well as
Kernel Mode code i.e. multiple processes as well as drivers are active
at a time.
There is a random problem that I am facining in my product on Windows
VISTA (Multi-processor machine).
When I log on to the machine, sometimes the products hangs indefinitely
leading the machine to be unusable.
At this time, I am not sure of which WinDbg commands can be helpful to me.

What I want to check is:

  1. Which is the hung application (if any)?
  2. Which is the hung driver (if any)?
  3. Is there any deadlock at this time.

I tried with !analyze command but not able to produce much of relevant
results.
Please help.

Regards,
Shreshth

Well, !process 0 7 and !locks -v, produce a lot of output, but in the work
I’ve done, these have often been useful as a start point for finding
deadlock based hangs. There’s a lot to read, and it can be hard work, but
you might notice a lot of threads waiting in some similar places, or for
similar locks. Your mileage might be highly dependent on what kinds of
drivers you have here. Good luck!

“Shreshth Luthra” wrote in message
news:xxxxx@windbg…
Hi,

I am working on a large product which is having User Mode as well as Kernel
Mode code i.e. multiple processes as well as drivers are active at a time.
There is a random problem that I am facining in my product on Windows VISTA
(Multi-processor machine).
When I log on to the machine, sometimes the products hangs indefinitely
leading the machine to be unusable.
At this time, I am not sure of which WinDbg commands can be helpful to me.

What I want to check is:
1) Which is the hung application (if any)?
2) Which is the hung driver (if any)?
3) Is there any deadlock at this time.

I tried with !analyze command but not able to produce much of relevant
results.
Please help.

Regards,
Shreshth

In addition, you can also use !stacks command to see all threads. From this
output, you can filter the threads associated with your driver and user mode
processes and check what state they are in.

Also, take a look at this article

http://blogs.msdn.com/ntdebugging/archive/2008/05/07/work-queues-and-dispatcher-headers.aspx

and see analyzing _KWAIT_BLOCK for dispatcher objects.

-Chandra

On Mon, Oct 6, 2008 at 8:13 AM, Lyndon J Clarke
wrote:

> Well, !process 0 7 and !locks -v, produce a lot of output, but in the work
> I’ve done, these have often been useful as a start point for finding
> deadlock based hangs. There’s a lot to read, and it can be hard work, but
> you might notice a lot of threads waiting in some similar places, or for
> similar locks. Your mileage might be highly dependent on what kinds of
> drivers you have here. Good luck!
>
> “Shreshth Luthra” wrote in message
> news:xxxxx@windbg…
> Hi,
>
> I am working on a large product which is having User Mode as well as Kernel
> Mode code i.e. multiple processes as well as drivers are active at a time.
> There is a random problem that I am facining in my product on Windows VISTA
> (Multi-processor machine).
> When I log on to the machine, sometimes the products hangs indefinitely
> leading the machine to be unusable.
> At this time, I am not sure of which WinDbg commands can be helpful to me.
>
> What I want to check is:
> 1) Which is the hung application (if any)?
> 2) Which is the hung driver (if any)?
> 3) Is there any deadlock at this time.
>
>
> I tried with !analyze command but not able to produce much of relevant
> results.
> Please help.
>
> Regards,
> Shreshth
>
>
>
> —
> You are currently subscribed to windbg as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>