hello,
what is core dump? which conditions in programs create core dump? what
is simple condition to create a core dump from a C program? how to
debug it?
regards,
rahul
rahul8143@gmail.com wrote:
>
> hello,
> what is core dump? which conditions in programs create core dump? what
> is simple condition to create a core dump from a C program?
It is a file with a dump of the virtual memory of a process that
crashed for some reason. Notice that a process can crash without
creating a core dump.
http://www.daimi.au.dk/~kasperd/com...t.faq.html#core
> how to debug it?
You may be able to get some information from gdb. eg.
gdb a.out core
(gdb) bt
(gdb) print x
(gdb) up
(gdb) print y
Also look here:
http://www.daimi.au.dk/~kasperd/com...aq.html#SIGSEGV
--
Kasper Dupont
Note to self: Don't try to allocate
256000 pages with GFP_KERNEL on x86.