From owner-freebsd-questions Mon Dec 18 13:09:10 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA19939 for questions-outgoing; Mon, 18 Dec 1995 13:09:10 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id NAA19931 for ; Mon, 18 Dec 1995 13:09:05 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id OAA12378; Mon, 18 Dec 1995 14:05:24 -0700 From: Terry Lambert Message-Id: <199512182105.OAA12378@phaeton.artisoft.com> Subject: Re: undump program To: hlew@genome.Stanford.EDU (Howard Lew) Date: Mon, 18 Dec 1995 14:05:24 -0700 (MST) Cc: terry@lambert.org, questions@freebsd.org In-Reply-To: from "Howard Lew" at Dec 18, 95 12:29:39 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org Precedence: bulk > > > Is there an "undump" program to turn a core dump into an executable binary? > > > > It would be trivial to write. > > > > Why do you want an executable binary whose first act will be to core > > dump again? Can't you just copy the core file to the new location? 8-). > > Actually, I think a better question would be.... Is there an undump > program to take a core dump and run it? Core dumps wouldn't be core dumps if they were runnable. The big problem with a core dump is that the condition that caused the dump to occur exists in the state of the dump as an imminent problem after an undump. The next big problem is that you can't reopen the fd's associated with the fd's the process had open, since they file names aren't part of the state information. The next big problem is that even if you modify the application to rememebr the file names, the state associated with fd's that are network connections is not necessarily recoverable. Then there are the architectural problems... What is it you want? Checkpoint/restart? There are packages for that, but they certainly don't involve undumping core files. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.