A system and method for self-diagnosing a likely cause of a system crash
is disclosed. A mechanism within an operating system checks for the
existence of a stop code at startup of the machine. The existence of the
stop code indicates that the system crashed during the previous session,
and the type of system crash. The mechanism may read the stop code and
implement a self-diagnostic procedure that corresponds to that stop code.
In this manner, the mechanism may automate many of the tasks normally
performed by humans, such as a system administrator, to self-diagnose the
likely cause of the crash. If the crash occurs again, the mechanism,
through the tracking procedures automatically implemented, may identify
and report to a system administrator the likely cause of the crash, e.g.
the particular faulty driver or configuration error.