Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.7.0.7 $; site uiucdcs Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!inuxc!pur-ee!uiucdcs!stevens From: stevens@uiucdcs.Uiuc.ARPA Newsgroups: net.unix Subject: How to save core images ??? Message-ID: <39300040@uiucdcs> Date: Fri, 2-Aug-85 14:59:00 EDT Article-I.D.: uiucdcs.39300040 Posted: Fri Aug 2 14:59:00 1985 Date-Received: Tue, 6-Aug-85 10:16:47 EDT Lines: 27 Nf-ID: #N:uiucdcs:39300040:000:1060 Nf-From: uiucdcs.Uiuc.ARPA!stevens Aug 2 13:59:00 1985 Does anyone have a method for writing out a core image of an executing job running under BSD 4.2 and later restoring the job to the state of execution prior to the save ? I have a routine that will do almost that but does not work 100 % of the time. It looks like there are pointers from the data area pointing into the system stack.. Does that make any sense? My solution appears to work fine if the core image is restored while still executing the original job. That is start a job.. do a save to a data file then continue executing.. then at some point do a restore from the data file and arrive back to the previous state of execution. The program in question which we would like to use this function on is a large 70,000 line pascal theorem prover. Currently the save/restore code is in C. Small test examples without dynamic memory allocation appear to work. Any suggestions or knowledge that the task is impossible would be welcome. Send replies via Arpanet to stevens@anl-mcs or simply reply to this notesfile. --Rick stevens@anl-mcs