<

Do not be afraid of BSOD

Published on
3,584 Points
484 Views
1 Endorsement
Last Modified:
In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.

Almost everyone has experienced the situation where windows can stop responding and hangs, no mouse movement, no keyboard and even worse... the Blue Screen of Death! (aka BSOD)  


When faced with this situation, what do you do? Google, right?


Then you read some posts in various help forums that might suggest you do a disk scan. Others tell you to restart Windows with the Last Good Known Configuration or to swap out your memory chips. The extremists may even suggest you need to format and reinstall Windows!


You have to know that in most cases, Windows' hangs and crashes are related to a misbehaving or bad driver and that generally happens after you install a new device, or when you upgrade to a new Windows version. Sometimes, even up to date loaded device drivers can just become corrupted and thus need replacing.


A common crash source is a reference to a memory address that caused an access violation, either a write operation to read-only memory, or a read operation on an address that is not mapped. It can also be caused by an unexpected exception the driver didn't handle correctly.


But why doesn't Windows just ignore the exception and let the device driver continue to execute as if nothing had happened? 


Imagine if Windows let the system continue running with these parts of system memory corrupted. At some point in time, the content of this memory would be written back to disk and the next time Windows booted, a corrupt image would load into memory and the system would just continue to crash again and again. Eventually, you would be forced to reinstall your OS.


So when a kernel-mode driver does such operations, windows makes the whole system crash in order to preserve the integrity of the system. 


Now the question is; how can I identify the crash source and solve this problem? 


The answer lays in the "C:\Windows\Minidump" folder of your system hard drive. When Windows crashes or hangs, it copies the content of the memory considered relevant to the crash into a dump file.


The Dump file contains the stop code, (called Bug Check) the list of loaded device drivers, the data structures that describe the current process and thread, the kernel stack for the thread that caused the crash and so on.


To read the dump file you will need to use something like Windbg (part of the Windows Software Development Kit), that can be downloaded from here.


 

Once installed, open the generated dump file in Windbg and type this magic command


!Analyze -v 


This command will analyse the dump file and try to give you the reason for the crash by identifying the faulting driver. Read a post I made about a real case study here.  


The dump file also contains a Bug Check. With that bug code, you can navigate to the Microsoft Bug Check reference website to find out more about the cause of the crash.

 

The bottom line is this; the next time your Windows installation hangs or crashes, remember this windbg command "!Analyze -v" as it will save you a lot of time when trying to solve your problem.


Another quick tip for when you decide to upgrade to a newer Windows version is to always search for new driver versions on the computers manufacturer website. If you have a non-branded machine, check the computer's mainboard (aka motherboard) manufacturers website for updated drivers.


You can also use a Windows built-in tool called "Driver Verifier Manager" 


Run it from a command line by simply typing "verifier


If you find an outdated driver version, then go ahead and update it.


See the example screen shots provided below to learn how to go about using it.




 




I hope you found this information useful.


1
Comment
0 Comments

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Join & Write a Comment

This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Suggested Courses

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month