Hanging Problem

Hi I am a beginner.

Making a file system filter driver in Win2k .

It work great after a few miniutes . When I close all running
applications (IE explorer windows) then mouse icon changes to the wait
icon. Seem like a lot of processing is going on. But I do not see so
many my debug prints showing such high processing.Though I can move the
mouse but I can do nothing because of the wait sign and ultimately have
to reboot.
I have Driver verifier on and do not get any memory bug check.

So my question is what all conditions or commands can I check for this
hanging in Windbg? Also What all settings I can do in driver verifier &
windbg for more conditions checking ?

Eg. In terms of dead lock , memory over use, memory corruption etc.

Any Ideas will be very helpfull.

I tried !deadlock but it gives
“No export deadlock found”
So what does this mean??

Regards,
Anurag

Hi,

For debugging hangs there are three commands that I usually go to
immediately:

  1. !stacks: this gives a summary of all of the threads in the system. This
    is a quick way to figure out which threads are blocked and if you had
    anything to do with it

  2. !locks -v: shows the state of all of the ERESOURCES in the system

  3. !process 0 7: this is extremely verbose output of every process and every
    thread. This takes a while to go through, so it’s usually a last resort

According to the debugger docs !deadlock is only available in XP and later,
which would explain the “No export found” error.

HTH,

-scott


Scott Noone
Software Engineer
OSR Open Systems Resources, Inc.
http://www.osronline.com

“Anurag Sarin” wrote in message
news:xxxxx@windbg…
Hi I am a beginner.

Making a file system filter driver in Win2k .

It work great after a few miniutes . When I close all running
applications (IE explorer windows) then mouse icon changes to the wait
icon. Seem like a lot of processing is going on. But I do not see so
many my debug prints showing such high processing.Though I can move the
mouse but I can do nothing because of the wait sign and ultimately have
to reboot.
I have Driver verifier on and do not get any memory bug check.

So my question is what all conditions or commands can I check for this
hanging in Windbg? Also What all settings I can do in driver verifier &
windbg for more conditions checking ?

Eg. In terms of dead lock , memory over use, memory corruption etc.

Any Ideas will be very helpfull.

I tried !deadlock but it gives
“No export deadlock found”
So what does this mean??

Regards,
Anurag

Good tips. For me, so far I’ve tended to reach for !process 0 7 as first
port of call, and watch all those stacks scolling past. Funny thing , sounds
mad, but I’ve tended to have a couple of candidate hypotheses by time
!process has finished, just on the basis of what I have seen in the stacks
scrolling past. Maybe I just been lucky!

“Scott Noone” wrote in message news:xxxxx@windbg…
> Hi,
>
> For debugging hangs there are three commands that I usually go to
> immediately:
>
> 1) !stacks: this gives a summary of all of the threads in the system. This
> is a quick way to figure out which threads are blocked and if you had
> anything to do with it
>
> 2) !locks -v: shows the state of all of the ERESOURCES in the system
>
> 3) !process 0 7: this is extremely verbose output of every process and
every
> thread. This takes a while to go through, so it’s usually a last resort
>
> According to the debugger docs !deadlock is only available in XP and
later,
> which would explain the “No export found” error.
>
> HTH,
>
> -scott
>
> –
> Scott Noone
> Software Engineer
> OSR Open Systems Resources, Inc.
> http://www.osronline.com
>
> “Anurag Sarin” wrote in message
> news:xxxxx@windbg…
> Hi I am a beginner.
>
> Making a file system filter driver in Win2k .
>
> It work great after a few miniutes . When I close all running
> applications (IE explorer windows) then mouse icon changes to the wait
> icon. Seem like a lot of processing is going on. But I do not see so
> many my debug prints showing such high processing.Though I can move the
> mouse but I can do nothing because of the wait sign and ultimately have
> to reboot.
> I have Driver verifier on and do not get any memory bug check.
>
> So my question is what all conditions or commands can I check for this
> hanging in Windbg? Also What all settings I can do in driver verifier &
> windbg for more conditions checking ?
>
> Eg. In terms of dead lock , memory over use, memory corruption etc.
>
> Any Ideas will be very helpfull.
>
> I tried !deadlock but it gives
> “No export deadlock found”
> So what does this mean??
>
> Regards,
> Anurag
>
>
>
>

Very Use full tips indeed Scott. Thanks a Lot .

regards,
Anurag

-----Original Message-----
From: Lyndon J Clarke [mailto:xxxxx@neverfailgroup.com]
Sent: Friday, October 01, 2004 8:36 PM
To: Kernel Debugging Interest List
Subject: Re:[windbg] Hanging Problem

Good tips. For me, so far I’ve tended to reach for !process 0 7 as first
port of call, and watch all those stacks scolling past. Funny thing ,
sounds mad, but I’ve tended to have a couple of candidate hypotheses by
time !process has finished, just on the basis of what I have seen in the
stacks scrolling past. Maybe I just been lucky!

“Scott Noone” wrote in message news:xxxxx@windbg…
> Hi,
>
> For debugging hangs there are three commands that I usually go to
> immediately:
>
> 1) !stacks: this gives a summary of all of the threads in the system.
> This is a quick way to figure out which threads are blocked and if you

> had anything to do with it
>
> 2) !locks -v: shows the state of all of the ERESOURCES in the system
>
> 3) !process 0 7: this is extremely verbose output of every process and
every
> thread. This takes a while to go through, so it’s usually a last
> resort
>
> According to the debugger docs !deadlock is only available in XP and
later,
> which would explain the “No export found” error.
>
> HTH,
>
> -scott
>
> –
> Scott Noone
> Software Engineer
> OSR Open Systems Resources, Inc.
> http://www.osronline.com
>
> “Anurag Sarin” wrote in message
> news:xxxxx@windbg… Hi I am a beginner.
>
> Making a file system filter driver in Win2k .
>
> It work great after a few miniutes . When I close all running
> applications (IE explorer windows) then mouse icon changes to the wait

> icon. Seem like a lot of processing is going on. But I do not see so
> many my debug prints showing such high processing.Though I can move
> the mouse but I can do nothing because of the wait sign and ultimately

> have to reboot. I have Driver verifier on and do not get any memory
> bug check.
>
> So my question is what all conditions or commands can I check for this

> hanging in Windbg? Also What all settings I can do in driver verifier
> & windbg for more conditions checking ?
>
> Eg. In terms of dead lock , memory over use, memory corruption etc.
>
> Any Ideas will be very helpfull.
>
> I tried !deadlock but it gives
> “No export deadlock found”
> So what does this mean??
>
> Regards,
> Anurag
>
>
>
>


You are currently subscribed to windbg as: xxxxx@divassoftware.com To
unsubscribe send a blank email to xxxxx@lists.osr.com