Home
%3CLINGO-SUB%20id%3D%22lingo-sub-723960%22%20slang%3D%22en-US%22%3EThe%20Cases%20of%20the%20Blue%20Screens%3A%20Finding%20Clues%20in%20a%20Crash%20Dump%20and%20on%20the%20Web%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-723960%22%20slang%3D%22en-US%22%3E%0A%20%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CSTRONG%3E%20First%20published%20on%20TechNet%20on%20Dec%2012%2C%202010%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CP%3E%3CIMG%20align%3D%22right%22%20alt%3D%22image%22%20border%3D%220%22%20height%3D%22158%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fcfs-file.ashx%2F__key%2FCommunityServer-Blogs-Components-WeblogFiles%2F00-00-00-52-36-metablogapi%2F8168.image_5F00_2BCD71AF.png%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121259iF9836063DF3CCDE9%22%20style%3D%22background-image%3A%20none%3B%20border-right-width%3A%200px%3B%20margin%3A%20%3B%20padding-left%3A%200px%3B%20padding-right%3A%200px%3B%20display%3A%20inline%3B%20float%3A%20right%3B%20border-top-width%3A%200px%3B%20border-bottom-width%3A%200px%3B%20border-left-width%3A%200px%3B%20padding-top%3A%200px%22%20title%3D%22image%22%20width%3D%22100%22%20%2F%3E%20My%20last%20%3CA%20href%3D%22http%3A%2F%2Fblogs.technet.com%2Fb%2Fmarkrussinovich%2Farchive%2F2011%2F01%2F11%2F3379158.aspx%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20couple%20of%20posts%20%3C%2FA%3E%20have%20looked%20at%20the%20lighter%20side%20of%20blue%20screens%20by%20showing%20you%20how%20to%20customize%20their%20colors.%20Windows%20kernel%20mode%20code%20reliability%20has%20gotten%20better%20and%20better%20every%20release%20such%20that%20many%20never%20experience%20the%20infamous%20BSOD.%20But%20if%20you%20have%20had%20one%20(one%20that%20you%20didn%E2%80%99t%20purposefully%20trigger%20with%20Notmyfault%2C%20that%20is)%2C%20as%20I%20explain%20in%20my%20%3CA%20href%3D%22http%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Fsysinternals%2Fbb963887.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Case%20of%20the%20Unexplained%20presentations%20%3C%2FA%3E%20%2C%20spending%20a%20few%20minutes%20to%20investigate%20might%20save%20you%20the%20inconvenience%20and%20possible%20data%20loss%20caused%20by%20future%20occurrences%20of%20the%20same%20crash.%20In%20this%20post%20I%20first%20review%20the%20basics%20of%20crash%20dump%20analysis.%20In%20many%20cases%2C%20this%20simple%20analysis%20leads%20to%20a%20buggy%20driver%20for%20which%20there%E2%80%99s%20a%20newer%20version%20available%20on%20the%20web%2C%20but%20sometimes%20the%20analysis%20is%20ambiguous.%20I%E2%80%99ll%20share%20two%20examples%20administrators%20sent%20me%20where%20a%20Web%20search%20with%20the%20right%20key%20words%20lead%20them%20to%20a%20solution.%3C%2FP%3E%0A%20%20%3CP%3EDebugging%20a%20crash%20starts%20with%20downloading%20the%20Debugging%20Tools%20for%20Windows%20package%20(part%20of%20the%20%3CA%20href%3D%22http%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Fwindows%2Fbb980924%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Windows%20SDK%20%3C%2FA%3E%20%E2%80%93%20note%20that%20you%20can%20do%20a%20web%20install%20of%20just%20the%20Debugging%20Tools%20instead%20of%20downloading%20and%20installing%20the%20entire%20SDK)%2C%20installing%20it%2C%20and%20configuring%20it%20to%20point%20at%20the%20Microsoft%20symbol%20server%20so%20that%20the%20debugger%20can%20download%20the%20symbols%20for%20the%20kernel%2C%20which%20are%20required%20for%20it%20to%20be%20able%20to%20interpret%20the%20dump%20information.%20You%20do%20that%20by%20opening%20the%20symbol%20configuration%20dialog%20under%20the%20File%20menu%20and%20entering%20the%20symbol%20server%20URL%20along%20with%20the%20name%20of%20a%20directory%20on%20your%20system%20where%20you%E2%80%99d%20like%20the%20debugger%20to%20cache%20symbol%20files%20it%20downloads%3A%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20alt%3D%22image%22%20border%3D%220%22%20height%3D%22295%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fcfs-file.ashx%2F__key%2FCommunityServer-Blogs-Components-WeblogFiles%2F00-00-00-52-36-metablogapi%2F1031.image_5F00_thumb_5F00_7977FB6D.png%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121260i25E7444F50C41B97%22%20style%3D%22background-image%3A%20none%3B%20border-bottom%3A%200px%3B%20border-left%3A%200px%3B%20margin%3A%20%3B%20padding-left%3A%200px%3B%20padding-right%3A%200px%3B%20display%3A%20inline%3B%20border-top%3A%200px%3B%20border-right%3A%200px%3B%20padding-top%3A%200px%22%20title%3D%22image%22%20width%3D%22554%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3EThe%20next%20step%20is%20loading%20the%20crash%20dump%20into%20the%20debugger%20Open%20Crash%20Dump%20entry%20in%20the%20File%20menu.%20Where%20Windows%20saves%20dump%20files%20depends%20on%20what%20version%20of%20Windows%20you%E2%80%99re%20running%20and%20whether%20it%E2%80%99s%20a%20client%20or%20server%20edition.%20There%E2%80%99s%20a%20simple%20rule%20of%20thumb%20you%20can%20follow%20that%20will%20lead%20you%20to%20the%20dump%20file%20regardless%2C%20though%2C%20and%20that%E2%80%99s%20to%20first%20check%20for%20a%20file%20named%20Memory.dmp%20in%20the%20%25SystemRoot%25%20directory%20(typically%20C%3A%5CWindows)%3B%20if%20you%20don%E2%80%99t%20find%20it%2C%20look%20in%20the%20%25SystemRoot%25%5CMinidumps%20directory%20and%20load%20the%20newest%20minidump%20file%20(assuming%20you%20want%20to%20debug%20the%20latest%20crash).%3C%2FP%3E%0A%20%20%3CP%3EWhen%20you%20load%20a%20dump%20file%20into%20the%20debugger%2C%20the%20debugger%20uses%20heuristics%20to%20try%20and%20determine%20the%20cause%20of%20the%20crash.%20It%20points%20you%20at%20the%20suspect%20by%20printing%20a%20line%20that%20says%20%E2%80%9CProbably%20caused%20by%3A%22%20with%20the%20name%20of%20the%20driver%2C%20Windows%20component%2C%20or%20type%20of%20hardware%20issue.%20Here%E2%80%99s%20an%20example%20that%20correctly%20identifies%20the%20problematic%20driver%20responsible%20for%20the%20crash%2C%20myfault.sys%3A%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20alt%3D%22image%22%20border%3D%220%22%20height%3D%22145%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fcfs-file.ashx%2F__key%2FCommunityServer-Blogs-Components-WeblogFiles%2F00-00-00-52-36-metablogapi%2F8507.image_5F00_thumb_5F00_1E01EE09.png%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121261iEAB697066AED5075%22%20style%3D%22background-image%3A%20none%3B%20border-right-width%3A%200px%3B%20margin%3A%20%3B%20padding-left%3A%200px%3B%20padding-right%3A%200px%3B%20display%3A%20inline%3B%20border-top-width%3A%200px%3B%20border-bottom-width%3A%200px%3B%20border-left-width%3A%200px%3B%20padding-top%3A%200px%22%20title%3D%22image%22%20width%3D%22554%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3EIn%20my%20talks%2C%20I%20also%20show%20you%20that%20clicking%20on%20the%20!analyze%20-v%20hyperlink%20will%20dump%20more%20information%2C%20including%20the%20kernel%20stack%20of%20the%20thread%20that%20was%20executing%20when%20the%20crash%20occurred.%20That%E2%80%99s%20often%20useful%20when%20the%20heuristics%20fail%20to%20pinpoint%20a%20cause%2C%20because%20you%20might%20see%20a%20reference%20to%20a%20third-party%20driver%20that%2C%20by%20being%20active%20around%20the%20site%20of%20the%20crash%2C%20might%20be%20the%20guilty%20party.%20Checking%20for%20a%20newer%20version%20of%20any%20third-party%20drivers%20displayed%20in%20this%20basic%20analysis%20often%20leads%20to%20a%20fix.%20I%20documented%20a%20troubleshooting%20case%20that%20followed%20this%20pattern%20in%20a%20previous%20blog%20post%2C%20%3CA%20href%3D%22http%3A%2F%2Fblogs.technet.com%2Fb%2Fmarkrussinovich%2Farchive%2F2008%2F12%2F30%2F3174871.aspx%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20The%20Case%20of%20the%20Crashed%20Phone%20Call%20%3C%2FA%3E%20.%3C%2FP%3E%0A%20%20%3CP%3EWhen%20you%20don%E2%80%99t%20find%20any%20clues%2C%20perform%20a%20Web%20search%20with%20the%20textual%20description%20of%20the%20crash%20code%20(reported%20by%20the%20!analyze%20-v%20command)%20and%20any%20key%20words%20that%20describe%20the%20machine%20or%20software%20you%20think%20might%20be%20involved.%20For%20example%2C%20one%20administrator%20was%20experiencing%20intermittent%20crashes%20across%20a%20Citrix%20server%20farm.%20He%20didn%E2%80%99t%20realize%20he%20could%20even%20look%20at%20a%20crash%20dump%20file%20until%20he%20saw%20a%20Case%20of%20the%20Unexplained%20presentation.%20After%20returning%20to%20his%20office%20from%20the%20conference%2C%20he%20opened%20dumps%20from%20several%20of%20the%20affected%20systems.%26nbsp%3B%20Analysis%20of%20the%20dumps%20yielded%20the%20same%20generic%20conclusion%20in%20every%20case%2C%20that%20a%20driver%20had%20not%20released%20kernel%20memory%20related%20to%20remote%20user%20logons%20(sessions)%20when%20it%20was%20supposed%20to%3A%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20alt%3D%22image%22%20border%3D%220%22%20height%3D%22139%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fcfs-file.ashx%2F__key%2FCommunityServer-Blogs-Components-WeblogFiles%2F00-00-00-52-36-metablogapi%2F1256.image_5F00_thumb_5F00_0FC37519.png%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121262iED827115415B987C%22%20style%3D%22background-image%3A%20none%3B%20border-right-width%3A%200px%3B%20margin%3A%20%3B%20padding-left%3A%200px%3B%20padding-right%3A%200px%3B%20display%3A%20inline%3B%20border-top-width%3A%200px%3B%20border-bottom-width%3A%200px%3B%20border-left-width%3A%200px%3B%20padding-top%3A%200px%22%20title%3D%22image%22%20width%3D%22554%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3EHoping%20that%20a%20Web%20search%20might%20offer%20a%20hint%20and%20not%20having%20anything%20to%20lose%2C%20he%20entered%20%E2%80%9Csession_has_valid_pool_on_exit%20and%20citrix%E2%80%9D%20in%20the%20browser%20search%20box.%20To%20his%20amazement%2C%20the%20very%20first%20result%20was%20a%20Citrix%20Knowledge%20Base%20fix%20for%20the%20exact%20problem%20he%20was%20seeing%2C%20and%20the%20article%20even%20displayed%20the%20same%20debugger%20output%20he%20was%20seeing%3A%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20alt%3D%22image%22%20border%3D%220%22%20height%3D%22290%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fcfs-file.ashx%2F__key%2FCommunityServer-Blogs-Components-WeblogFiles%2F00-00-00-52-36-metablogapi%2F1050.image_5F00_thumb_5F00_2F724EE1.png%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121263i2BC1FF91CC7515F9%22%20style%3D%22background-image%3A%20none%3B%20border-right-width%3A%200px%3B%20margin%3A%20%3B%20padding-left%3A%200px%3B%20padding-right%3A%200px%3B%20display%3A%20inline%3B%20border-top-width%3A%200px%3B%20border-bottom-width%3A%200px%3B%20border-left-width%3A%200px%3B%20padding-top%3A%200px%22%20title%3D%22image%22%20width%3D%22554%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3EAfter%20downloading%20and%20installing%20the%20fix%2C%20the%20server%20farm%20was%20crash-free.%3C%2FP%3E%0A%20%20%3CP%3EIn%20another%20example%2C%20an%20administrator%20saw%20a%20server%20crash%20three%20times%20within%20several%20days.%20Unfortunately%2C%20the%20analysis%20didn%E2%80%99t%20point%20at%20a%20solution%2C%20it%20just%20seemed%20to%20say%20that%20the%20crash%20occurred%20because%20some%20internal%20watchdog%20timer%20hadn%E2%80%99t%20fired%20within%20some%20time%20limit%3A%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20alt%3D%22image%22%20border%3D%220%22%20height%3D%22275%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fcfs-file.ashx%2F__key%2FCommunityServer-Blogs-Components-WeblogFiles%2F00-00-00-52-36-metablogapi%2F3618.image_5F00_thumb_5F00_6412AB1C.png%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121264i9C8F685109AB2F9E%22%20style%3D%22background-image%3A%20none%3B%20border-right-width%3A%200px%3B%20margin%3A%20%3B%20padding-left%3A%200px%3B%20padding-right%3A%200px%3B%20display%3A%20inline%3B%20border-top-width%3A%200px%3B%20border-bottom-width%3A%200px%3B%20border-left-width%3A%200px%3B%20padding-top%3A%200px%22%20title%3D%22image%22%20width%3D%22429%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3ELike%20the%20previous%20case%2C%20the%20administrator%20entered%20the%20crash%20text%20into%20the%20search%20engine%20and%20to%20his%20relief%2C%20the%20very%20first%20hit%20announced%20a%20fix%20for%20the%20problem%3A%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20alt%3D%22image%22%20border%3D%220%22%20height%3D%22370%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fcfs-file.ashx%2F__key%2FCommunityServer-Blogs-Components-WeblogFiles%2F00-00-00-52-36-metablogapi%2F6431.image_5F00_thumb_5F00_1CBD552A.png%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121265i64A63E2B0FD8E692%22%20style%3D%22background-image%3A%20none%3B%20border-right-width%3A%200px%3B%20margin%3A%20%3B%20padding-left%3A%200px%3B%20padding-right%3A%200px%3B%20display%3A%20inline%3B%20border-top-width%3A%200px%3B%20border-bottom-width%3A%200px%3B%20border-left-width%3A%200px%3B%20padding-top%3A%200px%22%20title%3D%22image%22%20width%3D%22479%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3EThe%20server%20didn%E2%80%99t%20experience%20any%20more%20crashes%20subsequent%20to%20the%20application%20of%20the%20listed%20hotfix.%3C%2FP%3E%0A%20%20%3CP%3EThese%20cases%20show%20that%20troubleshooting%20is%20really%20about%20finding%20clues%20that%20lead%20you%20to%20a%20solution%20or%20a%20workaround%2C%20and%20those%20clues%20might%20be%20obvious%2C%20require%20a%20little%20digging%2C%20or%20some%20creativity.%20In%20the%20end%20it%20doesn%E2%80%99t%20matter%20how%20or%20where%20you%20find%20the%20clues%2C%20so%20long%20as%20you%20find%20a%20solution%20to%20your%20problem.%3C%2FP%3E%0A%20%0A%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-723960%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20TechNet%20on%20Dec%2012%2C%202010%20My%20last%20couple%20of%20posts%20have%20looked%20at%20the%20lighter%20side%20of%20blue%20screens%20by%20showing%20you%20how%20to%20customize%20their%20colors.%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-723960%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMark%20Russinovich%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft
First published on TechNet on Dec 12, 2010

image My last couple of posts have looked at the lighter side of blue screens by showing you how to customize their colors. Windows kernel mode code reliability has gotten better and better every release such that many never experience the infamous BSOD. But if you have had one (one that you didn’t purposefully trigger with Notmyfault, that is), as I explain in my Case of the Unexplained presentations , spending a few minutes to investigate might save you the inconvenience and possible data loss caused by future occurrences of the same crash. In this post I first review the basics of crash dump analysis. In many cases, this simple analysis leads to a buggy driver for which there’s a newer version available on the web, but sometimes the analysis is ambiguous. I’ll share two examples administrators sent me where a Web search with the right key words lead them to a solution.

Debugging a crash starts with downloading the Debugging Tools for Windows package (part of the Windows SDK – note that you can do a web install of just the Debugging Tools instead of downloading and installing the entire SDK), installing it, and configuring it to point at the Microsoft symbol server so that the debugger can download the symbols for the kernel, which are required for it to be able to interpret the dump information. You do that by opening the symbol configuration dialog under the File menu and entering the symbol server URL along with the name of a directory on your system where you’d like the debugger to cache symbol files it downloads:

image

The next step is loading the crash dump into the debugger Open Crash Dump entry in the File menu. Where Windows saves dump files depends on what version of Windows you’re running and whether it’s a client or server edition. There’s a simple rule of thumb you can follow that will lead you to the dump file regardless, though, and that’s to first check for a file named Memory.dmp in the %SystemRoot% directory (typically C:\Windows); if you don’t find it, look in the %SystemRoot%\Minidumps directory and load the newest minidump file (assuming you want to debug the latest crash).

When you load a dump file into the debugger, the debugger uses heuristics to try and determine the cause of the crash. It points you at the suspect by printing a line that says “Probably caused by:" with the name of the driver, Windows component, or type of hardware issue. Here’s an example that correctly identifies the problematic driver responsible for the crash, myfault.sys:

image

In my talks, I also show you that clicking on the !analyze -v hyperlink will dump more information, including the kernel stack of the thread that was executing when the crash occurred. That’s often useful when the heuristics fail to pinpoint a cause, because you might see a reference to a third-party driver that, by being active around the site of the crash, might be the guilty party. Checking for a newer version of any third-party drivers displayed in this basic analysis often leads to a fix. I documented a troubleshooting case that followed this pattern in a previous blog post, The Case of the Crashed Phone Call .

When you don’t find any clues, perform a Web search with the textual description of the crash code (reported by the !analyze -v command) and any key words that describe the machine or software you think might be involved. For example, one administrator was experiencing intermittent crashes across a Citrix server farm. He didn’t realize he could even look at a crash dump file until he saw a Case of the Unexplained presentation. After returning to his office from the conference, he opened dumps from several of the affected systems.  Analysis of the dumps yielded the same generic conclusion in every case, that a driver had not released kernel memory related to remote user logons (sessions) when it was supposed to:

image

Hoping that a Web search might offer a hint and not having anything to lose, he entered “session_has_valid_pool_on_exit and citrix” in the browser search box. To his amazement, the very first result was a Citrix Knowledge Base fix for the exact problem he was seeing, and the article even displayed the same debugger output he was seeing:

image

After downloading and installing the fix, the server farm was crash-free.

In another example, an administrator saw a server crash three times within several days. Unfortunately, the analysis didn’t point at a solution, it just seemed to say that the crash occurred because some internal watchdog timer hadn’t fired within some time limit:

image

Like the previous case, the administrator entered the crash text into the search engine and to his relief, the very first hit announced a fix for the problem:

image

The server didn’t experience any more crashes subsequent to the application of the listed hotfix.

These cases show that troubleshooting is really about finding clues that lead you to a solution or a workaround, and those clues might be obvious, require a little digging, or some creativity. In the end it doesn’t matter how or where you find the clues, so long as you find a solution to your problem.