Blue Screen in Windows - Tip #2

Blue Screen in Windows




Many of us might face blue screen issue in the operating system whether in desktop or server but no one interested to know what was the root cause of this blue screen due to we consider it as a bug in windows components or exception error in the operation system, we just reboot desktop/server then the OS will start working properly.

The reason for having Blue screen actually is someone within windows Kernal trying to call windows Kernal "Kebugcheckex routine" and passing below 4 parameters in "Kebugcheckex routine" as following:


VOID  KeBugCheckEx(
  _In_ ULONG     BugCheckCode,
  _In_ ULONG_PTR BugCheckParameter1,
  _In_ ULONG_PTR BugCheckParameter2,
  _In_ ULONG_PTR BugCheckParameter3,
  _In_ ULONG_PTR BugCheckParameter4
);

https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/content/wdm/nf-wdm-kebugcheckex


And as per Microsoft analysis of the root causes of crashes indicates the following:

70 percent are caused by third-party driver code
10 percent are caused by hardware issues
5 percent are caused by Microsoft code
15 percent have unknown causes (because the memory is too corrupted to analyze)

All these four-points have interacted with Kebugcheckex routine which led to Blue screen issue. When Blue screen occurs the dump file will be created but keep in mind that dump file "Kernal Memory dump" related to blue Screen will be created in paging file if paging file configures in OS partition, no other partition, so consider configuring paging file always in C drive.


Location of dump file as following :

C:\Windows\Minidump
Try to copy this file to another location but don't move it :) 

or

C:\Windows\MEMORY.DMP
Minidump files may contain much less information than a full dump file.

You can customize the location of dump file by right click on Computer > Click on advanced system setting  > Advanced tap > Setting (Startup and recovery).

There are many tools to read dump files you can install and use WinDbg is a powerful tool or  Dump Check Utility (Dumpchk.exe) or BlueScreenView (Portable tool). If you installed WinDbg, you will have Debugging help which will have all single reasons for the blue screen issue, you will find all the reasons under "Bug check code reference" part.

Be careful when you are sharing Dump file with other (support, consultant...etc) it will contain all information, process, credentials...etc for your server/System.

Comments

Popular posts from this blog

How to Configure Azure MFA with Exchange Server 2013 and ADFS 2012 R2

How to exclude certain users from MFA in ADFS 3.0