mwills@x102a.harris-atd.com (wills ms 01309) (08/16/89)
I need the ability to snapshot a running process to disk in such a way that I can resume it again later. This resumption may take place days later, even after a reboot. I understand that something called "undump" exists which will do such a thing from a core file. My questions are these: Is there an FTP site where I can find such an animal? Can it reliably resume a process from any core file? How dependent is it on platform type? I'm using a tahoe running HCX/UX (SYS V w/ Berkeley extensions) and have had "fair" luck porting both SYS V & BSD applications here. Does anyone have any better ideas for doing this? I know that some debuggers do this type of thing, but most of the code is in Ada, so the popular symbolic debuggers won't work. I can interface to C code, so conventional C-language solutions are welcomed. -- ------------------------------------------------------------------------ M. Scott Wills arpa: mwills@x102a.harris-atd.com Mail Stop 102-4858 usenet: uunet!x102a!mwills Harris Corporation phone: 407-729-3283 Government Aerospace Systems Div. Bldg: 102 Room: 3426 P.O. Box 94000 Melbourne, FL 32901 ------------------------------------------------------------------------
doug@CSD4.CSD.UWM.EDU (Doug Tiarks) (08/17/89)
wills ms 01309 writes: > "undump" exists which will do such a thing from a core file. My > questions are these: > > Is there an FTP site where I can find such an animal? > > Can it reliably resume a process from any core file? > > How dependent is it on platform type? I'm using a tahoe running Undump is distributed with the Unix version of TeX for making "preloaded" versions of the tex/metafont programs. I'm not sure of the exact details of how it works, but it takes a core file and the original executable and creates a runable program. I don't think it can resume execution at the point that the program dumped core. I believe it just initializes the variables to the values in the core file. If you want to take a look at it you can find it in labrea.stanford.edu:pub/undump.tar.Z Doug Tiarks UW-Milwaukee Computing Services Div. Internet: doug@csd4.csd.uwm.edu (was csd4.milw.wisc.edu) UUCP: {uwvax, uwmacc}!uwmcsd1!doug
tower@bu-cs.BU.EDU (Leonard H. Tower Jr.) (08/17/89)
In article <8908161740.AA05361@csd4.csd.uwm.edu> doug@CSD4.CSD.UWM.EDU (Doug Tiarks) writes: | |wills ms 01309 writes: | > "undump" exists which will do such a thing from a core file. My | > questions are these: | > | > Is there an FTP site where I can find such an animal? | > | > Can it reliably resume a process from any core file? | > | > How dependent is it on platform type? I'm using a tahoe running Have a look at src/unexec.c in the GNU Emacs distribution. See etc/MACHINES and the installation instructions for configuration info. Minor hacking probably needed. Note that the GNU General Public License will apply if you use this code. See etc/COPYING. enjoy -len