<?xml version="1.0" encoding="utf-8"?>
<!-- generator="Joomla! 1.5 - Open Source Content Management" -->
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>WinDbg.info - Forum</title>
        <description>Thinking debugging? Think www.windbg.info.</description>
        <link>http://windbg.info/</link>
        <lastBuildDate>Thu, 11 Mar 2010 20:57:20 +0100</lastBuildDate>
        <generator>Joomla! 1.5 - Open Source Content Management</generator>
        <language>en-gb</language>
        <item>
            <title>Thread: Detail analysis of crashme.exe</title>
            <link>http://windbg.info/forum/3-cat-suggestion-box/35-detail-analysis-of-crashmeexe.html</link>
            <author>sudhir</author>
            <description>Hi &lt;br /&gt;
Can you please elaborate how to analyze dump using Crashme.exe &lt;br /&gt;
it will be very helpful.&lt;br /&gt;
&lt;br /&gt;
Regards &lt;br /&gt;
Sudhir</description>
            <pubDate>Fri, 05 Mar 2010 11:28:53 +0100</pubDate>
        </item>
        <item>
            <title>Thread: Determing cause of access denied - USN Journal</title>
            <link>http://windbg.info/forum/16-cat-kernel-mode-debugging/33-determing-cause-of-access-denied-usn-journal.html</link>
            <author>Will Steele</author>
            <description>I have a Vista SP1 workstation on which I would like to shrink the primary partition.  I have run a few tools to try and consolidate data to the front of the drive so I can then run the shrink functionality of disk management.  The tools have shown me that the problem lies in a few USN journal files near the end of the drive that will not move (or allow deletion.)  When I run the fsutil command logged in under the local machine administrator account against the drive I get this error (command and error shown below):&lt;br /&gt;
&lt;br /&gt;
C:\Users\Administrator&amp;gt;fsutil usn deletejournal /D C:&lt;br /&gt;
Error: Access is denied.&lt;br /&gt;
&lt;br /&gt;
Someone suggested on the Technet forums I then ran the shell as system using this command:&lt;br /&gt;
&lt;br /&gt;
C:\users\administrators&amp;gt;psexec -s fsutil usn deletejournal /D C:&lt;br /&gt;
Error: Access is denied.&lt;br /&gt;
&lt;br /&gt;
fsutil exited on MYMACHINE with error code 1.&lt;br /&gt;
&lt;br /&gt;
As I suspected, system privileges did not allow me to delete the entries. So, I am looking to use WinDbg to figure out what process or system structure is preventing the utility from deleting these files.  I suspect it is a &amp;quot;feature&amp;quot; but I don&amp;#039;t know if it is a bug.  How would you debugging experts approach this issue?</description>
            <pubDate>Mon, 01 Mar 2010 18:44:04 +0100</pubDate>
        </item>
        <item>
            <title>Thread: See in Memory Descriptor List whats on</title>
            <link>http://windbg.info/forum/11-cat-general-questions/32-see-in-memory-descriptor-list-whats-on.html</link>
            <author>Steffen78</author>
            <description>Hello Girls and Boys,&lt;br /&gt;
&lt;br /&gt;
i have a problem with a w2k3 server ent. sp2. The machine is an x86 32bit system with an MS SQL 2005 installed for enteo. the server part of enteo is ionstalled to. antivirus is mcafee.&lt;br /&gt;
&lt;br /&gt;
Now the problem, the &amp;quot;non paged pool&amp;quot; is running out of free space till the server is crashing. the &amp;quot;biggest&amp;quot; pooltag in poolmon is the &amp;quot;mdl&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Is there a way to analyze with driver is exhausting the mdl. can i analyze this problem with a full memory dump or should i take the driver verifier for this? &lt;br /&gt;
&lt;br /&gt;
thank you very much for your help. &lt;br /&gt;
&lt;br /&gt;
sorry about my english.</description>
            <pubDate>Mon, 22 Feb 2010 13:29:12 +0100</pubDate>
        </item>
        <item>
            <title>Thread: Using WinDbg to examine ASP.NET applications - reply by: Will Steele</title>
            <link>http://windbg.info/forum/14-cat-debugging-of-managed-code-/31-reusing-windbg-to-examine-aspnet-applications.html</link>
            <author>Will Steele</author>
            <description>Awesome. Thanks for the pointers and the link to the PDF.  I had not even seen that one yet.  Looking forward to working with it.  Again, much appreciated.</description>
            <pubDate>Thu, 18 Feb 2010 16:43:00 +0100</pubDate>
        </item>
        <item>
            <title>Thread: Unable to load image ntoskrnl.exe - reply by: Will Steele</title>
            <link>http://windbg.info/forum/13-cat-crash-dump-analysis-/30-reunable-to-load-image-ntoskrnlexe.html</link>
            <author>Will Steele</author>
            <description>I feel dumb.  While thumbing though the glossary of my copy of &lt;u&gt;Windows Internals&lt;/u&gt; I noticed there are two kernel .exe files: ntkrnlmp and ntoskrnl.  The first (ntkrnlmp) is for multiprocessor machines.  The second (ntoskrnl) is for single processor machines.  The light bulb came on and I verified that my machine (a newer dual processor laptop) would not have the single processor .exe.  I went to double check with my co-worker who did in fact say the machine which generated the dump is in fact a single-processor appliance.  It was a very simple piece of the puzzle I didn&amp;#039;t have.  Thanks for the steps I will be sure to keep those close by in case I need them for a real problem. :)</description>
            <pubDate>Thu, 18 Feb 2010 16:37:10 +0100</pubDate>
        </item>
        <item>
            <title>Thread: Debugging minGW/GCC built DLL in Visual Studio? - reply by: Edward</title>
            <link>http://windbg.info/forum/12-cat-symbol-and-source-files-/27-redebugging-mingwgcc-built-dll-in-visual-studio.html</link>
            <author>Edward</author>
            <description>thank for the pointers.&lt;br /&gt;
&amp;#039;looks like PDB absorbed in other IDE that already absorbs PECOFF/STABS and PECOFF/DWARF is a more realistic path. (GCC 4 is pushing out PECOFF/DWARF to complicate issues)....</description>
            <pubDate>Wed, 17 Feb 2010 19:01:43 +0100</pubDate>
        </item>
        <item>
            <title>Thread: Articles/tutorials - reply by: Robert Kuster</title>
            <link>http://windbg.info/forum/3-cat-suggestion-box/25-rearticlestutorials.html</link>
            <author>Robert Kuster</author>
            <description>Hi Raminder, &lt;br /&gt;
&lt;br /&gt;
welcome and thanks for your suggestion. To be honest, I&amp;#039;m not yet sure how much I would like to open the article part to the public. It certainly would have advantages, because simply more stuff would be on-line. On the other side I would lose control about the quality of what is on-line. Nevertheless, it is very likely that I will turn at least a part of the article section public so anyone could make contributions there. In the meantime just let me know if you have something really interesting to write on and we will figure out something.&lt;br /&gt;
&lt;br /&gt;
Kind regards,&lt;br /&gt;
Robert</description>
            <pubDate>Wed, 17 Feb 2010 15:48:00 +0100</pubDate>
        </item>
        <item>
            <title>Thread: Other forums - reply by: Robert Kuster</title>
            <link>http://windbg.info/forum/11-cat-general-questions/20-reother-forums.html</link>
            <author>Robert Kuster</author>
            <description>Hi Will,&lt;br /&gt;
&lt;br /&gt;
From my point of view your questions perfectly fit to the forum; that is what it actually is about. Help people with WinDbg, regardless to what their initial skills might be. Hm, if you nevertheless want other places there are several. You might check &lt;a href='http://technet.microsoft.com/en-us/sysinternals/default.aspx' rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Syinternals&lt;/a&gt; or &lt;a href='http://www.codeproject.com/KB/debug/' rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;CodeProject&amp;#039;s&lt;/a&gt; debug section; the Forum at &lt;a href='http://www.osronline.com/' rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Open System Resources (OSR)&lt;/a&gt;, or the handy blog from Dmitry called &lt;a href='http://www.dumpanalysis.org/' rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Dumpanalysis&lt;/a&gt;; then there is &lt;a href='http://www.debuginfo.com/' rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Debuginfo&lt;/a&gt; and so on. But after all you could also take a day off, read &lt;a href='http://windbg.info/download/doc/pdf/WinDbg_A_to_Z_color.pdf' rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;WinDbg. From A to Z!&lt;/a&gt;, and play around with &lt;a href='http://windbg.info/apps.html' rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;CrashMe&lt;/a&gt; along the way. In fact &lt;a href='http://windbg.info/download/doc/pdf/WinDbg_A_to_Z_color.pdf' rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;WinDbg. From A to Z!&lt;/a&gt; answered virtually all of your questions so far. ;)&lt;br /&gt;
&lt;br /&gt;
Hope to see you around, Robert</description>
            <pubDate>Sun, 17 Jan 2010 18:32:03 +0100</pubDate>
        </item>
        <item>
            <title>Thread: Can handled exceptions be seen with WinDbg - reply by: Robert Kuster</title>
            <link>http://windbg.info/forum/14-cat-debugging-of-managed-code-/19-recan-handled-exceptions-be-seen-with-windbg.html</link>
            <author>Robert Kuster</author>
            <description>Hi Will, &lt;br /&gt;
&lt;br /&gt;
here I go again. Sorry for the little delay this time. &lt;br /&gt;
&lt;span class=&quot;fb_quote&quot;&gt;Can handled exceptions be seen with WinDbg&lt;/span&gt;&lt;br /&gt;
Short answer: Nope. A handled/dismissed exception isn&amp;#039;t an exception anymore.&lt;br /&gt;
&lt;br /&gt;
Long answer: It depends. The first thing one should know about exceptions is that on Windows (either the environment is Win32, MFC, .NET, or the kernel) exceptions are handled by the OS. To us exceptions are made available through language extensions, for example through the try &amp;amp; except constructs in C++ or C#. Thus it is the OS or more precisely its exception dispatcher that takes care and dispatches exceptions. From the perspective of the exception dispatcher there are two different situations to cover:&lt;ol&gt;&lt;li&gt;A debugger is attached to the application in question&lt;/li&gt;&lt;li&gt;No debugger is attached to the application&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;
In case there is a debugger the exception dispatcher does the following:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Attempts to notify the process&amp;#039;s debugger (say, WinDbg). This is known as a &lt;u&gt;first-chance&lt;/u&gt; exception.&lt;br /&gt;
If WinDbg handles the exception (gH - go, exception handled) that&amp;#039;s it. In this case the exception dispatcher won&amp;#039;t notify anyone else about the exception because it has been dismissed.&lt;/li&gt;&lt;li&gt;If WinDbg didn&amp;#039;t handle the exception, the OS then tries to locate a frame-base exception filter (a C++ or C# catch statement, for instance).&lt;br /&gt;
Again, if the exception filter handles the exception that&amp;#039;s it. In this case the exception dispatcher won&amp;#039;t notify anyone else about the exception.&lt;/li&gt;&lt;li&gt;If along the way nobody handled the exception, the exception dispatcher will notify the associated debugger again. This is known as a &lt;u&gt;second-chance or last-chance&lt;/u&gt; exception.&lt;br /&gt;
Again, if the associated debugger handles the exception that&amp;#039;s it. Your application will continue to run fine as if nothing has happened.&lt;br /&gt;
But if the associated debugger doesn&amp;#039;t handle even the second chance exception (for instance, in WinDbg: gN - go not handled command) the process will terminate.&lt;/li&gt;&lt;/ol&gt;The bottom line:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;if a debugger is attached, this debugger will always be notified about any exception in the first place (first-chance exception)&lt;/li&gt;&lt;li&gt;once an exception is handled there is no way to display it in a debugger thereafter; no debugger will be notified about handled exceptions&lt;/li&gt;&lt;/ul&gt;Finally please check &lt;a href='http://windbg.info/download/doc/pdf/WinDbg_A_to_Z_color.pdf' rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;WinDbg. From A to Z!&lt;/a&gt; once again.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Refer to slides 17-20 about the exception dispatcher and exceptions in general.&lt;/li&gt;&lt;li&gt;Refer to slides 85-86 about debugging exceptions with WinDbg.&lt;/li&gt;&lt;li&gt;Refer to &lt;u&gt;slides 89-92 about event filters in WinDbg&lt;/u&gt;. In particular you should enable CLR exceptions and CLR notification exceptions for managed applications as otherwise WinDbg will ignore them altogether.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
Said all that there is one more tool to be aware off called &lt;u&gt;Application Verifier&lt;/u&gt;. Application Verifier is a runtime verification tool that monitors an application&amp;#039;s interaction with the Windows OS. Among other things it profiles and tracks all (handled an unhandled) exceptions that occur within a process. Again, check out &lt;a href='http://windbg.info/download/doc/pdf/WinDbg_A_to_Z_color.pdf' rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;WinDbg. From A to Z!&lt;/a&gt; and refer to slides 97-102. While Application Verifier will display handled exceptions to you, note that it is just a tracking/logging tool of events that occurred in the past. By no means it will halt a debugger on handled exceptions since this isn&amp;#039;t how exceptions were meant to work in the first place.&lt;br /&gt;
&lt;br /&gt;
Last but not least: You might also try out the sos!DumpAllExceptions command.&lt;br /&gt;
&lt;br /&gt;
I hope this helps, RK :)</description>
            <pubDate>Sun, 17 Jan 2010 18:07:40 +0100</pubDate>
        </item>
        <item>
            <title>Thread: How do source code files help? - reply by: Robert Kuster</title>
            <link>http://windbg.info/forum/14-cat-debugging-of-managed-code-/18-rehow-do-source-code-files-help.html</link>
            <author>Robert Kuster</author>
            <description>Hi Will,&lt;br /&gt;
&lt;br /&gt;
we are somewhat out of luck here, I&amp;#039;m afraid. By default WinDbg doesn&amp;#039;t support debugging of managed code natively - at least not in its public releases. See explanation here: &lt;a href='http://groups.google.com/group/microsoft.public.windbg/browse_thread/thread/03530a0643372f66' rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt; No CLR support in the latest debugger release &lt;/a&gt;. The only WinDbg release really supporting it was version 6.7.5.0 which was mistakenly made public. Maybe you can still find it somewhere. If so, you&amp;#039;ll be able to see call stacks with functions names, source code information, and so on in almost the same way as you see it for C++ applications. &lt;br /&gt;
&lt;br /&gt;
To keep it short: You can use WinDbg to obtain some extra information for managed applications via its SOS or SOSEX extension. But in order too turn it into a really useful debugger for manged applications stick to WinDbg version 6.7.5.0&lt;br /&gt;
&lt;br /&gt;
I hope this helps, RK</description>
            <pubDate>Sun, 17 Jan 2010 17:54:49 +0100</pubDate>
        </item>
        <item>
            <title>Thread: RSS Feed - reply by: Will Steele</title>
            <link>http://windbg.info/forum/3-cat-suggestion-box/15-rerss-feed.html</link>
            <author>Will Steele</author>
            <description>I see it now.  Maybe adding it to the set of icons on the top left (new thread, reply, un/subscribe, favorite)  or right side (above Forum Tools) would have gotten my attention.  It was hiding from me.  Thanks again.</description>
            <pubDate>Wed, 06 Jan 2010 22:47:12 +0100</pubDate>
        </item>
        <item>
            <title>Thread: Question about COFF deprecation - reply by: Robert Kuster</title>
            <link>http://windbg.info/forum/12-cat-symbol-and-source-files-/11-requestion-about-coff-deprecation.html</link>
            <author>Robert Kuster</author>
            <description>Hi Will,&lt;br /&gt;
&lt;br /&gt;
first of all I wish you a happy and prosper 2010. May there be lot of &lt;a href=&quot;http://www.windbg.info&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;www.windbg.info&lt;/a&gt; visits and forum posts. As to your questions, there are &lt;u&gt;two things&lt;/u&gt; to distinguish:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1) &lt;u&gt;Portable Executable (PE) format (used for EXE, DLL, SYS and OBJ files)&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
From &lt;a href='http://en.wikipedia.org/wiki/Portable_Executable' rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Wikipedia&lt;/a&gt;: &lt;i&gt;&amp;quot;The Portable Executable (PE) format is a file format for executables, object code, and DLLs, used in 32-bit and 64-bit versions of Windows operating systems.&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
The PE headers and structures are read by the Windows loader (ntdll) - it contains all the information needed to spawn a new process. Note that the PE format hasn&amp;#039;t changed over all these years. The most obvious reason is backward compatibility. Say, if Windows 7 wants to execute an EXE written at Windows 98 times the PE format should be the same. Sure, Microsoft added a some new fields to the PE headers over the years. Nevertheless all old fields and data structures of the initial PE format are still the same. In other words you can read any old PE article and rest assured that the information provided there is valid. &lt;br /&gt;
&lt;br /&gt;
Probably you won&amp;#039;t often access PE headers during your debugging scenarios directly. But if you want my opinion it is always a good idea to understand what is going on behind the scenes. For instance, did you know that the only difference between an EXE and a DLL file is a single bit in the PE header? So yes, go on and study the available PE articles you mentioned.&lt;br /&gt;
&lt;br /&gt;
One more cite from Wikipedia: &lt;i&gt;&amp;quot;PE is a modified version of the Unix COFF file format.&amp;quot;&lt;/i&gt;&lt;br /&gt;
Few people now days know that in its early days Microsoft had its very own version of the UNIX operation system, called &lt;a href='http://en.wikipedia.org/wiki/Xenix' rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Xenix&lt;/a&gt;. This said it is obvious why PE turns out to be a derivative of the Unix COFF file format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2) &lt;u&gt;Format of debug-symbol files (COFF, CodeView, PDB)&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
While data stored in the PEs is mainly intended for use by the Windows loader, a debugger actually needs more information to provide human readable information to us. This is where symbol files come in handy. Symbol files help a debugger to map raw addresses in the PE executable to source-code lines, to analyze internal layout and data of applications, and so on. Obviously symbol files are not limited with backward compatibility issues mentioned for PE files above; put it this way: with new compilers there were simply new debuggers made available. &lt;br /&gt;
&lt;br /&gt;
While Microsoft used COFF and later &lt;a href='http://en.wikipedia.org/wiki/CodeView' rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;CodeView&lt;/a&gt; as their official symbol files in the past, it now days uses the proprietary &lt;a href='http://en.wikipedia.org/wiki/Program_database' rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;PDB file format&lt;/a&gt; to achieve the same.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It all turns out very simple, doesn&amp;#039;t it? :)&lt;br /&gt;
&lt;br /&gt;
Warm Regards, RK</description>
            <pubDate>Fri, 01 Jan 2010 12:52:51 +0100</pubDate>
        </item>
        <item>
            <title>Thread: Can all commands be watched with WinDbg - reply by: Will Steele</title>
            <link>http://windbg.info/forum/11-cat-general-questions/8-recan-all-commands-be-watched-with-windbg.html</link>
            <author>Will Steele</author>
            <description>Thanks Robert.  You&amp;#039;ve given me a lot to work with.  I am still in the &amp;quot;wide-eyed&amp;quot; stage of figuring out very basics.  These things help me get a grasp much more quickly.</description>
            <pubDate>Wed, 30 Dec 2009 02:34:08 +0100</pubDate>
        </item>
        <item>
            <title>Thread: Can macros be set up in WinDbg - reply by: Robert Kuster</title>
            <link>http://windbg.info/forum/11-cat-general-questions/5-recan-macros-be-set-up-in-windbg.html</link>
            <author>Robert Kuster</author>
            <description>Hi Will, welcome.&lt;br /&gt;
&lt;br /&gt;
Short answer: Yes.&lt;br /&gt;
&lt;br /&gt;
Long answer: WinDbg offers a quite powerful mechanism called &amp;quot;&lt;u&gt;Debugger Commands Programs&lt;/u&gt;&amp;quot;. In fact this is a simple script-language where you can use all commands available in WinDbg and some additional control flow tokens. With this in mind you can actually write powerful scripts and conveniently store them into files. From within WinDbg you simply call your script-file in question with &amp;quot;&lt;u&gt;$$&amp;gt;&amp;lt;&lt;/u&gt;&amp;quot; (the human translation of which is &amp;quot;Run Script File&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
I briefly covered this topic in &lt;a href='http://windbg.info/download/doc/pdf/WinDbg_A_to_Z_color.pdf' rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;WinDbg. From A to Z!&lt;/a&gt;; &lt;u&gt;refer to slides 77-80&lt;/u&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details you might also check the official Microsoft documentation:&lt;br /&gt;
&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/cc266360.aspx&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;msdn.microsoft.com/en-us/library/cc266360.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I hope this helps.&lt;br /&gt;
&lt;br /&gt;
Warm Regards, RK</description>
            <pubDate>Tue, 29 Dec 2009 21:17:16 +0100</pubDate>
        </item>
        <item>
            <title>Thread: Warmest Welcome to Our Visitors</title>
            <link>http://windbg.info/forum/2-cat-news-and-announcements/1-warmest-welcome-to-our-visitors.html</link>
            <author>Robert Kuster</author>
            <description>&lt;span class=&quot;fbl&quot;&gt;&lt;b&gt;Warmest Welcome to Our Visitors&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
After I spent quite some time to integrate a Forum solution into our site, I&amp;#039;m happy to announce that it is finally done.&lt;br /&gt;
&lt;br /&gt;
I hope the Forum will serve well for all Your WinDbg related questions and needs.&lt;br /&gt;
And I do thank You for any future contributions and posts to the Forum or to &lt;a href=&quot;http://www.windbg.info&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;www.windbg.info&lt;/a&gt; itself.</description>
            <pubDate>Thu, 17 Dec 2009 22:53:07 +0100</pubDate>
        </item>
    </channel>
</rss>
