windbg and system hang

I am encountering a system hang situation but nothing shows up in the
windbg. I use the free build XP. I still can break/go from the windbg. Is
there any way to possibly find out what happens w/o installing debug build
XP?

BTW, the system hang happens when I try to adjust my target system date/time
during my stress test. I use KeQuerySystemTime quite often in my driver.
Could it be a problem?

Thanks

Ta


Is your PC infected? Get a FREE online computer virus scan from McAfee®
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

Is it possible that you’re waiting for a time that doesn’t happen? If you
have a timeout that is specified in absolute time (rather than the negative
number of relative time), then you will potentially miss the timeout if you
change the system time. I don’t know if this is covered by the kernel or
not…

A way to find a bit more info is by
!stacks
This will show you which threads are waiting in which system call. It’s not
always helpful, but it can sometimes show you what’s going on.


Mats

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Ta H.
Sent: Friday, July 09, 2004 6:40 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] windbg and system hang

I am encountering a system hang situation but nothing shows up in the
windbg. I use the free build XP. I still can break/go from
the windbg. Is
there any way to possibly find out what happens w/o
installing debug build
XP?

BTW, the system hang happens when I try to adjust my target
system date/time
during my stress test. I use KeQuerySystemTime quite often
in my driver.
Could it be a problem?

Thanks

Ta


Is your PC infected? Get a FREE online computer virus scan
from McAfee?
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@3dlabs.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

!locks may help as well. Also driver verifier with deadlock detection on may
help. If there are device reconfiguration events around the time of the hang
look for a pnp hang using !pnpevent (and of course if there is a pnp hang
the 8th dword from a dd of the PnP DeviceEvent Queue address is the thread
that owns it the pnp lock, why pnpevent doesn’t just display this value
continues to be a mystery.) After !stacks doesn’t help, a full thread dump
might, but be prepared to do a LOT of waiting for this to complete, unless
you can get a system dump from .crash, and then be prepared to spend a LOT
of time grovelling through all of the threads looking for who is waiting on
what.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@3Dlabs.com
Sent: Friday, July 09, 2004 2:17 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] windbg and system hang

Is it possible that you’re waiting for a time that doesn’t
happen? If you have a timeout that is specified in absolute
time (rather than the negative number of relative time), then
you will potentially miss the timeout if you change the
system time. I don’t know if this is covered by the kernel or not…

A way to find a bit more info is by
!stacks
This will show you which threads are waiting in which system
call. It’s not always helpful, but it can sometimes show you
what’s going on.


Mats

> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Ta H.
> Sent: Friday, July 09, 2004 6:40 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] windbg and system hang
>
>
> I am encountering a system hang situation but nothing shows
up in the
> windbg. I use the free build XP. I still can break/go from the
> windbg. Is there any way to possibly find out what happens w/o
> installing debug build XP?
>
> BTW, the system hang happens when I try to adjust my target system
> date/time during my stress test. I use KeQuerySystemTime
quite often
> in my driver.
> Could it be a problem?
>
> Thanks
>
> Ta
>
> _________________________________________________________________
> Is your PC infected? Get a FREE online computer virus scan from
> McAfeeR Security.
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@3dlabs.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

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

What do you mean by “hang”? Desktop not responsive to mouse and keyboard.
System not responsive to ping? Those are 2 different things (ping response
doesn’t require thread dispatch).

Sometimes !process 0 0 will help. Look at threads in wait.


James Antognini
Windows DDK Support

This posting is provided “AS IS” with no warranties, and confers no rights.

“Ta H.” wrote in message news:xxxxx@ntdev…
> I am encountering a system hang situation but nothing shows up in the
> windbg. I use the free build XP. I still can break/go from the windbg.
Is
> there any way to possibly find out what happens w/o installing debug build
> XP?
>
> BTW, the system hang happens when I try to adjust my target system
date/time
> during my stress test. I use KeQuerySystemTime quite often in my driver.
> Could it be a problem?
>
> Thanks
>
> Ta
>
> _________________________________________________________________
> Is your PC infected? Get a FREE online computer virus scan from McAfee®
> Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>

I’ve ever encountered a “hang” when I set the symbol server in the “symbole
path” and the internet traffic was very busy - WinDbg showed nothing.

Will Microsoft add a “stop-query-symbol-from-server” button/menu to next
version of WinDbg? Otherwise I have to wait for a long time of the symbol
retrieving, or just close WinDbg.

Regards,
Ray Yang
xxxxx@ybwork.com
----- Original Message -----
From: “James Antognini [MSFT]”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Saturday, July 10, 2004 8:47 AM
Subject: Re:[ntdev] windbg and system hang

> What do you mean by “hang”? Desktop not responsive to mouse and keyboard.
> System not responsive to ping? Those are 2 different things (ping response
> doesn’t require thread dispatch).
>
> Sometimes !process 0 0 will help. Look at threads in wait.
>
> –
> James Antognini
> Windows DDK Support
>
> This posting is provided “AS IS” with no warranties, and confers no
rights.
>
> “Ta H.” wrote in message news:xxxxx@ntdev…
> > I am encountering a system hang situation but nothing shows up in the
> > windbg. I use the free build XP. I still can break/go from the windbg.
> Is
> > there any way to possibly find out what happens w/o installing debug
build
> > XP?
> >
> > BTW, the system hang happens when I try to adjust my target system
> date/time
> > during my stress test. I use KeQuerySystemTime quite often in my
driver.
> > Could it be a problem?
> >
> > Thanks
> >
> > Ta
> >
> > _________________________________________________________________
> > Is your PC infected? Get a FREE online computer virus scan from McAfee?
> > Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@ybwork.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

It is the first case. I can ping the target PC when it hangs. Also I got
the below when I have the hang:

kd> !process
PROCESS 8158f328 SessionId: 0 Cid: 05dc Peb: 7ffdf000 ParentCid: 05c8
DirBase: 0fa8e000 ObjectTable: e1911fb8 HandleCount: 24.
Image: pciloopback.exe
VadRoot 8155c310 Vads 40 Clone 0 Private 157. Modified 0. Locked 0.
DeviceMap e17bb3b8
Token e102d6b0
ElapsedTime 0:14:24.0813
UserTime 0:00:00.0020
KernelTime 0:14:23.0201
QuotaPoolUsage[PagedPool] 15696
QuotaPoolUsage[NonPagedPool] 6752
Working Set Sizes (now,min,max) (401, 50, 345) (1604KB, 200KB, 1380KB)
PeakWorkingSetSize 401
VirtualSize 18 Mb
PeakVirtualSize 18 Mb
PageFaultCount 512
MemoryPriority BACKGROUND
BasePriority 24
CommitCharge 455

THREAD 817dc608 Cid 05dc.013c Teb: 7ffde000 Win32Thread: e1a63bd8
RUNNING on processor 0
THREAD 816a0bb8 Cid 05dc.05e0 Teb: 7ffdd000 Win32Thread: 00000000
WAIT: (UserRequest) UserMode Non-Alertable
814b9e70 SynchronizationEvent

It does look like someone is waiting. But it is unclear to me on what.
Another question is can a user-mode app. cause that if it is not a fault of
the custom driver (finger-crossed…)?

Thanks

Ta

From: “James Antognini [MSFT]”
>Reply-To: “Windows System Software Devs Interest List”
>
>To: “Windows System Software Devs Interest List”
>Subject: Re:[ntdev] windbg and system hang
>Date: Fri, 9 Jul 2004 17:47:34 -0700
>
>What do you mean by “hang”? Desktop not responsive to mouse and keyboard.
>System not responsive to ping? Those are 2 different things (ping response
>doesn’t require thread dispatch).
>
>Sometimes !process 0 0 will help. Look at threads in wait.
>
>–
>James Antognini
>Windows DDK Support
>
>This posting is provided “AS IS” with no warranties, and confers no rights.
>
>“Ta H.” wrote in message news:xxxxx@ntdev…
> > I am encountering a system hang situation but nothing shows up in the
> > windbg. I use the free build XP. I still can break/go from the windbg.
>Is
> > there any way to possibly find out what happens w/o installing debug
>build
> > XP?
> >
> > BTW, the system hang happens when I try to adjust my target system
>date/time
> > during my stress test. I use KeQuerySystemTime quite often in my
>driver.
> > Could it be a problem?
> >
> > Thanks
> >
> > Ta
> >
> >
> > Is your PC infected? Get a FREE online computer virus scan from McAfee®
> > Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> >
> >
>
>
>
>—
>Questions? First check the Kernel Driver FAQ at
>http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com


Get tips for maintaining your PC, notebook accessories and reviews in
Technology 101. http://special.msn.com/tech/technology101.armx

I prefer !process 0 7. The spew is enormous. But it tells you what every
thread in the system is doing.


Jake Oshins
Windows Kernel Group

This posting is provided “AS IS” with no warranties, and confers no rights.

“James Antognini [MSFT]” wrote in message
news:xxxxx@ntdev…
> What do you mean by “hang”? Desktop not responsive to mouse and keyboard.
> System not responsive to ping? Those are 2 different things (ping response
> doesn’t require thread dispatch).
>
> Sometimes !process 0 0 will help. Look at threads in wait.
>
> –
> James Antognini
> Windows DDK Support
>
> This posting is provided “AS IS” with no warranties, and confers no
> rights.
>
> “Ta H.” wrote in message news:xxxxx@ntdev…
>> I am encountering a system hang situation but nothing shows up in the
>> windbg. I use the free build XP. I still can break/go from the windbg.
> Is
>> there any way to possibly find out what happens w/o installing debug
>> build
>> XP?
>>
>> BTW, the system hang happens when I try to adjust my target system
> date/time
>> during my stress test. I use KeQuerySystemTime quite often in my driver.
>> Could it be a problem?
>>
>> Thanks
>>
>> Ta
>>
>> _________________________________________________________________
>> Is your PC infected? Get a FREE online computer virus scan from McAfee®
>> Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>>
>>
>
>
>

Ctrl-break stops the symbol search.

You might want to use a symbol cache, too, as it makes the symbol lookup
much faster.


Jake Oshins
Windows Kernel Group

This posting is provided “AS IS” with no warranties, and confers no rights.

“Ray Yang” wrote in message news:xxxxx@ntdev…
> I’ve ever encountered a “hang” when I set the symbol server in the
> “symbole
> path” and the internet traffic was very busy - WinDbg showed nothing.
>
> Will Microsoft add a “stop-query-symbol-from-server” button/menu to next
> version of WinDbg? Otherwise I have to wait for a long time of the symbol
> retrieving, or just close WinDbg.
>
> Regards,
> Ray Yang
> xxxxx@ybwork.com
> ----- Original Message -----
> From: “James Antognini [MSFT]”
> Newsgroups: ntdev
> To: “Windows System Software Devs Interest List”
> Sent: Saturday, July 10, 2004 8:47 AM
> Subject: Re:[ntdev] windbg and system hang
>
>
>> What do you mean by “hang”? Desktop not responsive to mouse and keyboard.
>> System not responsive to ping? Those are 2 different things (ping
>> response
>> doesn’t require thread dispatch).
>>
>> Sometimes !process 0 0 will help. Look at threads in wait.
>>
>> –
>> James Antognini
>> Windows DDK Support
>>
>> This posting is provided “AS IS” with no warranties, and confers no
> rights.
>>
>> “Ta H.” wrote in message news:xxxxx@ntdev…
>> > I am encountering a system hang situation but nothing shows up in the
>> > windbg. I use the free build XP. I still can break/go from the
>> > windbg.
>> Is
>> > there any way to possibly find out what happens w/o installing debug
> build
>> > XP?
>> >
>> > BTW, the system hang happens when I try to adjust my target system
>> date/time
>> > during my stress test. I use KeQuerySystemTime quite often in my
> driver.
>> > Could it be a problem?
>> >
>> > Thanks
>> >
>> > Ta
>> >
>> > _________________________________________________________________
>> > Is your PC infected? Get a FREE online computer virus scan from McAfee?
>> > Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>> >
>> >
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@ybwork.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>
>