Re: Question about the segment [[ 60000fff80000000-60000fff80004000 rw-p 0000000000000000 00:00 0 ]]

vamsi krishna
2006-06-08T09:51:49Z

Hello Andreas,

On 6/8/06, Andreas Schwab <schwab@suse.de> wrote:
> "vamsi krishna" <vamsi.krishnak@gmail.com> writes:
>
> > Looks like If I dont overwrite the RSE backing store fclose on my open
> > files seem to crash when I restore my program.
>
> You also need to make sure that all function descriptors end up at the
> very same address.
>

More to add to this I found that '__IO_flush_all' seem to get stuck ,
when I dont overwrite my RSE backing store, if I overwrite my RSE
backing store some of the data on the stack is getting corrupted.

is '__IO_flush_all' a weak symbol so that I can override ? also
fflush(NULL) hangs and also fcloseall() (I think all are calling
__IO_flush_all)

In my program to restore the state just as emacs unexec I try to save
all the mmaps and either overwrite (for heap) or mmap for all the
things above &_etext.

I tried to save all the maps in /proc/pid/maps except the RSE backing
store and it seems problems in __IO_flush_all , I also made sure that
I flushed all my filestreams before I save.

Really appreciate your comments, let me know if you need more info.

Thank you,
Vamsi