Regarding coredump and restart

Ian Lepore freebsd at damnhippie.dyndns.org
Thu Mar 29 21:40:49 UTC 2012


On Fri, 2012-03-30 at 01:10 +0800, Mahesh Babu wrote:
> I am currently working on coredump and then restarting the process in FreeBSD 9.
> 
> 
> I have created the coredump file for a process using gcore of gdb.
> 
> I am not able restart the process from the coredump file.
> 
> Is there any ways to restart the process using gdb itself or any other ways to implement restarting of the process from the coredump file?
> 
> 
> Thanks,
> Mahesh

A coredump does not contain the entire state of a process, it only
contains the part of the state that is contained within memory belonging
to the process.  Other parts of the state can exist outside of that
memory.   For example, in open disk files, in the corresponding state of
another process at the other end of a socket connection, and so on.
Bringing back the memory image will not bring back the corresponding
state in external resources.

-- Ian




More information about the freebsd-hackers mailing list