Reference articles
0 Core dump File
When the program runs abnormally terminates or crashes, the operating system records the memory state of the program at the time and saves it in a file, which is called the core dump and becomes the kernel dump.
In addition to the memory information, some critical program run states also dump down, such as register information (including program pointers, stack pointers, etc.), memory management information, other processor and operating system status and information.
1 Open Core Dump
ulimit-c [num]
This command allows you to see if the core dump function is turned on.
The default output is 0, which indicates that the core dump maximum makefile size is 0, which means it is closed.
This value is independent of each terminal and is not shared. And only allow the first time to set a relatively large value, the latter can only be smaller than this value, create a new interrupt to modify it again
The resulting core dump file, named Core, is stored under the current folder
1 Build Core
After running:
2 Debug Core
GDB Program name core file name
The rest is gdb.
Debug core dump file under Linux