实际上什么是致命错误?

What is a Fatal error actually?

我想知道致命错误是什么意思。为什么会发生?为什么我们会在这么多地方看到它们?我在 Node.js、CS:GO 和许多地方见过它们很多次,但为什么它们会发生?代码中的逻辑错误或其他内容?

A fatal error is an error that causes a program to terminate without any warning or saving its state. A fatal error, upon occurring, aborts the application currently running, and may cause the user to lose any unsaved changes made in the program. Exact reasons for fatal errors are very difficult to determine.

A fatal error occurs when an application tries to access invalid data or code, an illegal action is attempted or an infinity condition is met. The program shuts down and returns the user to the operating system. An operating system keeps a log of the information related to the error for the user to view the details and determine possible causes of the fatal error. Similarly, in some cases the image of a process (core dump) is also sometimes maintained by the OS in the event of a fatal error.