I am working on a Linux project for which I've written a makefile.
Sometimes when I run my code a core dump file is generated. The filename is of the form core.*
. And it is occupying too much space.
Now, how to avoid this core dump file from being generated? Also can anyone tell why it is generated only sometimes?
One more thing. Is there any use from the core dumped file? Also in my program "Segmentation fault" is not happening but still it is generated. So what kind of fault may be there?
The core dump file is generated when the program is terminated by Ctrl+\ is given by me. The program is not terminating abruptly.
Why a core dump file is generated when Ctrl+\ is pressed. I tried Ctrl+C , Ctrl+Z , then it is not generated. Can anyone tell why it is generated only when Ctrl+\ is pressed. I believe it is SIGQUIT
and not SIGABRT
or SIGSEGV
.