Re: Understanding the internals of core dump generation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 4, 2009 at 2:55 PM, Indraneel Mukherjee <indro.ml@xxxxxxxxx> wrote:
> Hi All,
> I am looking to understand how core dumps are generated. I'm able to
> generate application core dumps. Now i want to understand the internals of
> core dump generation.
>
> 1. What happens internally when a segfault occurs?

That depends on the application to handle it. It is just another
pagefault with the reason.

>
> 2. Who actually stores the core dump?
>
> 3. How is the core dump file created?

Probably you need to look at the structure :- linux_binfmt

Or you can start reading the code from elf_core_dump() for elf formats
or aout_core_dump() for a.out format files.


Thanks -
Manish
>
> Any pointers to understand these or the related code will be much
> appreciated.
>
> TIA,
> Indro
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux