Core Dump ?! Solit: Wilbur LANG?
Before using the semiconductor as the material of the memory, human beings use the coil as a memory (inventor as Wang An), the coil is called Core, which is called Core Memory with the memory of the coil. Today, the semiconductor industrial evasion, no one has used Core Memory, but in many cases, people still call the memory as Core.
What is Core DUMP?
When we develop (or use) a program, the most fear is that the program is Ming Ming. Although the system is nothing, we can still encounter the same problem next time. So this time the operating system will take the program as the memory content DUMP (now usually written in a File called Core), let us or debugger as a reference. This action is called Core DUMP.
Why do Core Dump?
As mentioned earlier, an error occurred while the program was dropped. In a C / C language, the most often erroneous places is that there is a problem. You can use the core file and Debugger to find the error (how to use the core file in Debugger? Man GDB!).
Can I delete the core file?
If you won't, you can't, don't need to modify the program, then delete it with confidence!
How can you not let the core file appear?
If you use TCSH, try to try a line in .tcshrc: Limit Coredumpsize 0 If you use Bash, add (or modify) one: ulimit -c 0
There is a trick, let you see the best place for Core :)
GDB -C CORE, play WHER, you can show you when you are in the program, where is it in which Function is in the function, and this Function is Which Function Call ... has been arrived until main ()
From this information, you can find a five-six BUG ........ Try not try
However, prerequisites, when you must open the DEBUG INFORMATION, you will have a lot of things you don't understand, not your favorite source.