Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Local kernel debugging

363 views
Skip to first unread message

Adi

unread,
Jun 2, 2009, 10:53:01 AM6/2/09
to
Hello,
I'm trying to use kernel debugging of the local machine.

1. I reboot XP SP3 using /noexecute=optin /fastdetect /debug /sos /noguiboot
2. I connect local kernel debugging in WinDbg
3. I receive: "GetContextState failed, 0x80004001" (full log below)
3. I load my test driver which calls DbgPrint few times
4. I run !dbgprint in the debugger but nothing
5. If I try to view memory I recieve the same GetContextState failed,
0x80004001
6. Using DbgView or DbgGui I receive all expected DbgPrint messages

This is the log of my session:

Opened log file 'Lkd-Log-2-6-09'

Microsoft (R) Windows Debugger Version 6.11.0001.404 X86
Copyright (c) Microsoft Corporation. All rights reserved.

Connected to Windows XP 2600 x86 compatible target at (Tue Jun 2
17:35:30.921 2009 (GMT+3)), ptr64 FALSE
Symbol search path is: srv**http://msdl.microsoft.com/download/symbols
Executable search path is:
*******************************************************************************
WARNING: Local kernel debugging requires booting with kernel
debugging support (/debug or bcdedit -debug on) to work optimally.
*******************************************************************************
Windows XP Kernel Version 2600 (Service Pack 3) MP (2 procs) Free x86
compatible
Product: WinNt, suite: TerminalServer SingleUserTS
Built by: 2600.xpsp_sp3_gdr.090206-1234
Machine Name:
Kernel base = 0x804d7000 PsLoadedModuleList = 0x8055d720
Debug session time: Tue Jun 2 17:35:31.156 2009 (GMT+3)
System Uptime: 0 days 1:56:59.781
GetContextState failed, 0x80004001
lkd> !dbgprint
lkd> !dbgprint
Closing open log file Lkd-Log-2-6-09

Any clue why GetContextState fails and how to resolve it?
thanks

--
Adi

Pavel A.

unread,
Jun 2, 2009, 2:47:35 PM6/2/09
to
Not sure this would help, but just in case.
Specify a local symbols directory in your symbols path,
so that it looks like:

srv*c:\symbols*http://msdl.microsoft.com/download/symbols

-- pa

Adi

unread,
Jun 2, 2009, 3:40:01 PM6/2/09
to
The syntax of srv**http://.... just means that default local caching
directory (which is in my case C:\Program Files\Debugging Tools for Windows
(x86)\sym). In any case I tried changing it as you suggested and
unfortunately this doesn't help, same failure. This doesn't seem to be
symbols problem, see this session snip:

lkd> lml
start end module name
804d7000 806e4000 nt (pdb symbols) C:\Program
Files\Debugging Tools for Windows
(x86)\sym\ntkrpamp.pdb\909FE6B806E4444B9230BAAF21EC5C271\ntkrpamp.pdb

Any other idea why does GetContextState failed with 0x80004001?
thanks
--
Adi

Pavel A.

unread,
Jun 3, 2009, 4:15:42 AM6/3/09
to
Adi wrote:
> The syntax of srv**http://.... just means that default local caching
> directory (which is in my case C:\Program Files\Debugging Tools for Windows
> (x86)\sym). In any case I tried changing it as you suggested and
> unfortunately this doesn't help, same failure. This doesn't seem to be
> symbols problem, see this session snip:

So, could you try again with a local path
that *does not include spaces*?

-- pa

Adi

unread,
Jun 3, 2009, 10:16:05 AM6/3/09
to
Tried again with local cache at D:\Symbols. Same failure (see log below).
I have no clue what's the problem
Adi


Microsoft (R) Windows Debugger Version 6.11.0001.404 X86
Copyright (c) Microsoft Corporation. All rights reserved.

Connected to Windows XP 2600 x86 compatible target at (Wed Jun 3
17:10:39.906 2009 (GMT+3)), ptr64 FALSE
Symbol search path is:
srv*D:\Symbols*http://msdl.microsoft.com/download/symbols


Executable search path is:
*******************************************************************************
WARNING: Local kernel debugging requires booting with kernel
debugging support (/debug or bcdedit -debug on) to work optimally.
*******************************************************************************
Windows XP Kernel Version 2600 (Service Pack 3) MP (2 procs) Free x86
compatible
Product: WinNt, suite: TerminalServer SingleUserTS
Built by: 2600.xpsp_sp3_gdr.090206-1234
Machine Name:
Kernel base = 0x804d7000 PsLoadedModuleList = 0x8055d720

Debug session time: Wed Jun 3 17:10:40.468 2009 (GMT+3)
System Uptime: 0 days 0:37:10.105
GetContextState failed, 0x80004001

--
Adi

Pavel A.

unread,
Jun 4, 2009, 3:46:31 PM6/4/09
to
"Adi" <A...@discussions.microsoft.com> wrote in message
news:F839293C-A20F-4D7B...@microsoft.com...

> Tried again with local cache at D:\Symbols. Same failure (see log below).
> I have no clue what's the problem
> Adi

Me too. Another unsolved mistery of the universe...

-- pa

ggs

unread,
Jun 25, 2009, 9:52:01 AM6/25/09
to

Pavel A.

unread,
Jun 25, 2009, 1:52:56 PM6/25/09
to

ggs wrote:
> http://www.osronline.com/showThread.cfm?link=43617

Not relevant.

Regards,
--pa

0 new messages