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?
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?
!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.
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
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 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
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 >> >> > > >
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 >> > >