Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How I Debug Blue Screen Crashes

02 Jun 2012   #1

Windows 7 Home Premium 64 Bit
 
 
How I Debug Blue Screen Crashes

How I Debug Blue Screen Crashes
  1. Download the .zip file generated by the http://www.sevenforums.com/crashes-d...tructions.html that were developed by jcgriff2.
    What do I do if the user has not uploaded the appropriate files?
    1. If the user uploads .dmps and not the jcgriff2 files, I usually analyze the crashes first. Then at the end, I tell them what I found and ask that if they continue to have problems that they then upload the full crash reports by following the instructions in the blue screen of death posting instructions. If they upload the .dmps a second time, I repeat that we need them to follow those instructions because the .dmp files are no providing enough information. I give them the link to the instructions in both instances.
    2. What if no .dmp files are contained? There are two options here: make sure to get the jcgriff2 .zip file to continue with either option.
      • Option 1: Open the $evtx_sys_dump.txt file. Search for the keyword "bugcheck" (without quotes) within the $evtx_sys_dump.txt file. Determine the bugcheck code and proceed to step 6 in this tutorial and the BSOD Index/BugCheck reference links.

      • Option 2: Sometimes no bugcheck code is listed in that file. In that case, make sure the settings are correct in the $_WMIC_recoveros.txt file. The settings should look like:
        Code:
        AutoReboot=TRUE
        Caption=
        DebugFilePath=%SystemRoot%\MEMORY.DMP
        DebugInfoType=2
        Description=
        ExpandedDebugFilePath=C:\Windows\MEMORY.DMP
        ExpandedMiniDumpDirectory=C:\Windows\Minidump
        KernelDumpOnly=FALSE
        MiniDumpDirectory=%SystemRoot%\Minidump
        Name=Microsoft Windows 7 Professional |C:\Windows|\Device\Harddisk1\Partition1
        OverwriteExistingDebugFile=TRUE
        SendAdminAlert=FALSE
        SettingID=
        WriteDebugInfo=TRUE
        WriteToSystemLog=TRUE
        
        
        
        
        AllocatedBaseSize=8183
        Caption=C:\pagefile.sys
        CurrentUsage=0
        Description=C:\pagefile.sys
        InstallDate=20120525171648.201236+120
        Name=C:\pagefile.sys
        PeakUsage=0
        Status=
        TempPageFile=FALSE
        If the settings do not match, then refer the user to Dump Files - Configure Windows to Create on BSOD OPTION ONE step 6. or OPTION TWO step 2.
    3. There is one other scenario I have not yet mentioned. A lot of users come to us with freezes (usually hardware), black screen crashes where the monitor stops giving video output (likely the video card, but can be other things), or a system that suddenly restarts without warning. Greg's tutorial Troubleshooting Steps for Windows 7 can be of great help here. Prior to linking that tutorial, make sure they know that if they are under warranty, they should send the system in for the warranty repairs prior to doing step 8., 10., or 11.
      They can run Memtest86+ in step 8, but I would recommend giving that as a seperate step and telling them not to move any modules around if they are under warranty through a vendor like HP, Dell, etc.
      Black screen crash information can also be found in Why is my screen black when I start Windows 7?
  2. If this is the first time using the WinDbg program go through the steps in Configuring the "Debugging Tools" to configure them. I am including some image steps, as well, to hopefully make it a little clearer. Images 1-2 give the steps to set up the symbols with
    Code:
    SRV*C:\SymCache*http://msdl.microsoft.com/download/symbols
    as the symbol save and download paths.
    How I Debug Blue Screen Crashes-windbg1.jpg How I Debug Blue Screen Crashes-windbg2.jpg

  3. Use CTRL + D to open a crash .dmp file. Navigate to where the jcgriff2 .zip file was extracted (or the .dmp directory if the user did not provide the jcgriff2 .zip file). Open the file and let it load. When you open the file, you will get a dialog as seen in the following image:
    Name:  WinDbg3.jpg
Views: 152
Size:  13.4 KB
    The next step is crucial. If you plan on debugging a lot of crashes, which I hope you do if you are reading this tutorial, then you will want to put a tick in the box for "Do not ask again in this WinDbg session." Then click Yes.

    NOTE: You will never be asked this again, so make double sure your symbol path and download path are set and correct.

    If you do by chance make a mistake with the above: File -> Clear Workspace... and then File -> Delete Workspace... and make sure to clear all and delete all saved workspaces. Exit the WinDbg program, restart it, and you will be given the option to setup symbols again. Then save the workspace when you open the next .dmp file.


  4. Now, prior to proceeding through the WinDbg analysis, I like to check the msinfo32.nfo file and the $systeminfo.txt file in the jcgriff2 reports.

    For the msinfo32.nfo file:
    How I Debug Blue Screen Crashes-msinfo32.jpg
    1. If you did not get an msinfo32.nfo file or it is corrupted/unreadable, here are the steps to obtain it:
      Quote:
      Please upload your msinfo32.nfo file. To get this: Start Menu -> Type msinfo32 into the Search programs and files box -> When it opens, go to File, Save -> Save as msinfo32.nfo and save in a place you will remember -> Let it finish the process of gathering and saving the system info -> Right click the .nfo file, click send to compressed (zipped) folder -> Upload the .zip file here.


      Please upload your msinfo32.txt file. To get this: Start Menu -> Type msinfo32 into the Search programs and files box -> When it opens, go to File, Export -> Save as msinfo32.txt and save in a place you will remember -> Let it finish the process of gathering and saving the system info -> Right click the .txt file, click send to compressed (zipped) folder -> Upload the .zip file here.
      The .txt file is a bit harder to read, and impossible if it is not in English unless you want to use Google translate... It can be necessary if the .nfo file is not possible to open, though.

    2. Once you have the msinfo32 file: First, check the BIOS date. It should be on the first screen that shows up when the file opens. If it is pre 2009, ask that the user check hardware compatibility with Windows 7: Windows 7 Compatibility: Software Programs & Hardware Devices: Find Updates, Drivers, & Downloads

    3. Next, check Hardware resources (the first expandable item) and look for forced hardware (the third item in the list when it is expanded). If any hardware is listed as forced, let the user know. This is very rare.

    4. Check Components (the second expandable item). The second to last item in that expanded list is Problem Devices; apprise the user of any problem devices.

      NOTE: If you see PS/2 devices listed, check the Input devices. It is the sixth item in the expanded Components list. See if there are special/USB keyboard or mouse devices. Gaming mice can cause a PS/2 missing mouse to show up as a problem device, and a USB keyboard can cause a PS/2 missing keyboard to show up. Those can then be ignored.

    5. In Components still, check Network devices. It is the eighth item in the list. Look for any USB Wireless Network Adapter devices. These are known to cause problems, especially if their drivers are out of date. USB ports do not always provide the power necessary for wireless network adapters to run reliably. If someone is using such a device and it is implicated later in crashes (or their network is), I recommend replacing the device with a PCI Wireless Network Adapter.

    6. The final check is the third expandable item: Software Environment. Check Running tasks (fifth item down) for antivirus software; make sure multiple realtime protection programs are not running at the same time.

    7. In Software Environment, also check Program Groups and Startup Programs to see if there are possible issues there. Maybe too many programs start up, or too many realtime security programs start up. In Program Groups, I check for any 3rd party defrag, driver finding, and Windows optimization tools. If you are unsure about a listed program, Google is a huge help in most cases. In my experience, all of these 3rd party tools cause crashes from time to time or degrade system performance and stability (with the probable exception of CCleaner).

      Do look for CCleaner, too. Especially if no .dmp files were included. CCleaner often deletes .dmps without the average user's knowledge.


    Now, for $systeminfo.txt:
    How I Debug Blue Screen Crashes-systeminfotxt.png
    • Check that Service Pack 1 is installed. The first highlighted area will give that information. You can also check in the .dmp files whether it is 7600 or 7601 to determine whether SP1 (7601) is installed.

    • Check the number of hotfixes installed. It should be between 80-100 at this point. You'll get a feel for it as you analyze more, and obviously this is subject to change as new service packs are released.

  5. To analyze the actual .dmp files:
    1. If you have not yet opened one of the .dmps, do so now. I like to start with the most recent and work backward in time through them. I usually analyze the first 5-10 looking for patterns. 7-zip is the best method to retain the actual modified dates when extracting the files. That way you know which .dmp is most recent.

    2. The reason I start with the most recent is then I can look at the most up to date setup of the system and the loaded drivers at this time. To see drivers: Debug -> Modules... as in the images
      How I Debug Blue Screen Crashes-windbg4.jpg How I Debug Blue Screen Crashes-modules.png
      Next, the fourth column from the left is the timestamp. The first column is the name. I click the Timestamp header first to check for any drivers pre-Windows 7, or prior to July 13, 2009. Not all old drivers cause problems, so just because it is out of date, do not assume it is definitely an issue. The main ones to look for are:
      • ASACPI.sys (this one just needs to be 2009; it does not matter if it is pre-Windows 7),
      • RTCore32.sys,
      • RTCore64.sys,
      • network drivers,
      • audio drivers,
      • graphics drivers,
      • chipset related drivers,
      • hard disk controller drivers like iaStor and mv91xx.
      • Also, any antivirus software drivers that are out of date are likely to cause problems (with the exception of f-secure since one of its drivers is always out of date).

    3. If you end up recommending Driver Verifier, sort the list of modules by name and look for the following:

  6. Once done looking through drivers, I close the modules list, and I run the !analyze -v command in the command window.

    User-friendly: Analyzing your first BSoD! is basically how I started.


    I then look at the BugCheck code and use the following two references:

    usasma's BSOD Index. This lists common causes for the BugCheck, so if a driver is not directly known or to blame, you can determine troubleshooting steps. This takes a bit of experience to determine which steps work best for which situations.

    PM me if you need help at this point.


    Bug Check Code Reference gives some very nice information including Cause and Resolution steps by scrolling down after going to a link for a BugCheck code.


That is pretty much it.


SSD Related Crashes
I should also mention that SSD crashes are common. Check the msinfo32.nfo file for storage drives (fourth item from the bottom in the Components expanded list) and see if an SSD is installed. For SSDs, make sure the following are up to date:
  • SSD firmware
  • BIOS Version
  • Chipset Drivers
  • Hard disk controller drivers/SATA drivers
  • Marvell IDE ATA/ATAPI controllers (older drivers for these are especially problematic)
The above list was originally compiled by usasma and I have found it handy many times.

Also, for the SSD, sometimes users say that after crashes the SSD will disappear from the system. Brink provided a link I now use and the steps I provide that follow.
Quote:
Try doing a power cycle of the SSD. The following steps should be carried out and take ~1 hour to complete.
  1. Power off the system.
  2. Remove all power supplies (ac adapter then battery for laptop, ac adapter for desktop)
  3. Hold down the power button for 30 seconds to close the circuit and drain all components of power.
  4. Reconnect all power supplies (battery then ac adapter for laptop, ac adapter for desktop)
  5. Turn on the system and enter the BIOS (see your manual for the steps to enter the BIOS)
  6. Let the computer remain in the BIOS for 20 minutes.
  7. Follow steps 1-3 and physically remove the SSD from the system by disconnecting the cables for a desktop or disconnecting the drive from the junction for a laptop.
  8. Leave the drive disconnected for 30 seconds to let all power drain from it.
  9. Replace the drive connection(s) and then do steps 4-8 again.
  10. Repeat steps 1-4.
  11. Start your computer normally and run Windows.

The above steps were a result of: Why did my SSD "disappear" from my system? - Crucial Community

While that may not be your drive, a power cycle should be the same on all SSD drives. See how the system responds after the SSD power cycle.



-------------EDIT-------------

Another thing to check with SSDs that I did not mention. The Crucial M4 SSD is known to crash after an hour of uptime if the firmware is not up to date. Check the uptime of the system in the WinDbg analysis if there is an M4 involved.

http://www.sevenforums.com/crashes-d...ml#post1793840

How I Debug Blue Screen Crashes-uptime.png

Some Useful Links:

Latest WinDbg install: Windows Software Development Kit (SDK) for Windows 8 Release Preview

There are some really nice tutorials and diagnostics compiled by usasma that help, as well. Some on here, some on his site.

On SevenForums:
On usasma's site:

And a tutorial by H2SO4: Stop 0x124 - what it means and what to try

Verifier settings I use:
Quote:
  • An underlying driver may be incompatible\conflicting with your system. Run Driver Verifier to find any issues. To run Driver Verifier, do the following:
    a. Backup your system and user files
    b. Create a system restore point
    c. If you do not have a Windows 7 DVD, Create a system repair disc
    d. In Windows 7:
    • Click the Start Menu
    • Type verifier in Search programs and files (do not hit enter)
    • Right click verifier and click Run as administrator
    • Put a tick in Create custom settings (for code developers) and click next
    • Put a tick in Select individual settings from a full list and click next
    • Set up the individual settings as in the image and click next
      How I Debug Blue Screen Crashes-verifierindividualsettings.jpg
    • Put a tick in Select driver names from a list
    • Put a tick next to all non-Microsoft drivers.
    • Click Finish.
    • Restart your computer.

    If Windows cannot start in normal mode with driver verifier running, start in safe mode. If it cannot start in safe mode or normal mode, restore the system restore point using System Restore OPTION TWO.


    If you are unable to start Windows with all drivers being verified or if the blue screen crashes fail to create .dmp files, run them in groups of 5 or 10 until you find a group that causes blue screen crashes and stores the blue screen .dmp files.
    The idea with Verifier is to cause the system to crash, so do the things you normally do that cause crashes. After you have a few crashes, upload the crash reports for us to take a look and try to find patterns.

    When you are ready to disable Verifier: Start Menu -> All Programs -> Accessories -> Right click Command Prompt -> Run as administrator -> Type the following command and then Enter:
    verifier /reset
    -> Restart your computer.


Hope the above is not too intimidating and provides useful steps. Happy debugging!!!



My System SpecsSystem Spec
.

02 Jun 2012   #2

Windows 7 Ultimate x64/Windows 8 Consumer Preview x64/Ubuntu 11.04
 
 

Thanks for that, Mike. Very interesting and helpful!
My System SpecsSystem Spec
02 Jun 2012   #3

Windows 7 Ultimate SP1 64-Bit
 
 

Thanks for the tut Mike.

Now I've got to see if I can get to young Jaidyn's level!!
My System SpecsSystem Spec
.


02 Jun 2012   #4

Windows 7 Ultimate x64/Windows 8 Consumer Preview x64/Ubuntu 11.04
 
 

Don't worry, Andrew. You'll pass me in no time.
My System SpecsSystem Spec
03 Jun 2012   #5

Microsoft Community Contributor Award Recipient

Windows 7 Ult x64 - SP1/ Windows 8 Pro x64
 
 

Nice post Mike, will be helpful to many.
My System SpecsSystem Spec
03 Jun 2012   #6

Windows 7 Home Premium 64bit (O.E.M)
 
 

Great Tutorial Mike, finding it very useful now I'm taking my first tentative steps into BSOD analysis
My System SpecsSystem Spec
03 Jun 2012   #7

Windows 7 Home Premium 64 Bit
 
 

Thank you Jaidyn, Andrew, Dave, and Stephen. Feel free to link others to the tutorial who may be interested in learning about debugging crashes.

I also made some formatting changes to the tutorial this morning to make it a little easier to read the last two sections: SSD Related Crashes and Some Useful Links.
My System SpecsSystem Spec
04 Jun 2012   #8

Microsoft Community Contributor Award Recipient

Win 7 Home Premium 64bit Ver 6.1.7600 Build 7601 - SP1
 
 

Good job Mike!

This, and JK's BSOD Analysis should both be either made Tutorials or Stickies.
My System SpecsSystem Spec
04 Jun 2012   #9

Windows 8 64 bit PRO
 
 

I rarely come to the BSOD section, mainly because I plain and simply dont know about them.
I find this like a puzzle and i will follow this guide

Who knows after doing this i may read more up on how to understand BSOD
My System SpecsSystem Spec
04 Jun 2012   #10

Microsoft Community Contributor Award Recipient

Windows 7 Ult x64 - SP1/ Windows 8 Pro x64
 
 

The best way to get started debugging is to read up on the subject, this post/tutorial is an excellent reference, then D/L the debugger and review a solved case.
Look for the clues, use the sources linked above, search for anything you need clarification on, ask for help/information in threads like this one.
You can also PM any one of us if you have questions.

I've got a lot of notes and references in my One Note Crash and Debugging files.
My System SpecsSystem Spec
Reply

 How I Debug Blue Screen Crashes




Thread Tools



Similar help and support threads for2: How I Debug Blue Screen Crashes
Thread Forum
Blue Screen : Debug Request BSOD Help and Support
I have Crash debug reports blue screen please help me! BSOD Help and Support
Blue Screen crashes on my Pc BSOD Help and Support
blue screen crashes BSOD Help and Support
Blue Screen error with usbvideo.sys debug help please BSOD Help and Support
Windows 7 Ultimate x64 - Blue Screen Crashing w/Debug BSOD Help and Support
Blue Screen help needed with debug BSOD Help and Support

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:27 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33