Prev: ls
Next: fast ipc
From: rahul8143 on
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

From: Kasper Dupont on
rahul8143(a)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/comp.os.linux.development.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/comp.os.linux.development.faq.html#SIGSEGV

--
Kasper Dupont
Note to self: Don't try to allocate
256000 pages with GFP_KERNEL on x86.
 | 
Pages: 1
Prev: ls
Next: fast ipc