Unix Programming - core dump

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > September 2005 > core dump





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author core dump
rahul8143@gmail.com

2005-09-18, 7:47 am

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

2005-09-18, 5:55 pm

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.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com