Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

core dump

0 views
Skip to first unread message

rahu...@gmail.com

unread,
Sep 18, 2005, 8:00:18 AM9/18/05
to
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

Kasper Dupont

unread,
Sep 18, 2005, 9:02:42 AM9/18/05
to
rahu...@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.

0 new messages