From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 29 21:40:49 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9917B106564A for ; Thu, 29 Mar 2012 21:40:49 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from qmta02.emeryville.ca.mail.comcast.net (qmta02.emeryville.ca.mail.comcast.net [76.96.30.24]) by mx1.freebsd.org (Postfix) with ESMTP id 78DE38FC0C for ; Thu, 29 Mar 2012 21:40:49 +0000 (UTC) Received: from omta10.emeryville.ca.mail.comcast.net ([76.96.30.28]) by qmta02.emeryville.ca.mail.comcast.net with comcast id rZeX1i0010cQ2SLA2ZfiFs; Thu, 29 Mar 2012 21:39:42 +0000 Received: from damnhippie.dyndns.org ([24.8.232.202]) by omta10.emeryville.ca.mail.comcast.net with comcast id rZfh1i00H4NgCEG8WZfiY0; Thu, 29 Mar 2012 21:39:42 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id q2TLddnN044296; Thu, 29 Mar 2012 15:39:40 -0600 (MDT) (envelope-from freebsd@damnhippie.dyndns.org) From: Ian Lepore To: Mahesh Babu In-Reply-To: <1333041039.22864.YahooMailNeo@web193202.mail.sg3.yahoo.com> References: <1333041039.22864.YahooMailNeo@web193202.mail.sg3.yahoo.com> Content-Type: text/plain; charset="us-ascii" Date: Thu, 29 Mar 2012 15:39:39 -0600 Message-ID: <1333057179.1111.50.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: "freebsd-hackers@freebsd.org" Subject: Re: Regarding coredump and restart X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Mar 2012 21:40:49 -0000 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