Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

possible to revive a corefile back into a running program?

I have a tool to generate snapshots of my C program as it's running, in the form of corefiles.

Is it possible to bring these corefiles back to life as executable programs? And if so, how do i do it? Are there any libraries that do this already?

I'm working on *nix systems.

like image 547
horseyguy Avatar asked Mar 01 '12 13:03

horseyguy


1 Answers

Yes it is, in theory.

If your snapshot is a full dump of the whole memory of your program, the stack, the heap, along with the PC, it is possible to put this dump back in memory and launch the process of execution again. But you will have to do this in kernel land I think.

like image 153
Eregrith Avatar answered Nov 13 '22 06:11

Eregrith