[CRIU] criu-dev restore forked process

Andrei Vagin avagin at virtuozzo.com
Wed Jul 26 01:50:46 MSK 2017


Hi Connor and Pavel,

I found that criu criu-3.2 can handle this case. Pavel, I think this
issue is related with your changes in criu-dev. Could you investigate it?

Thanks,
Andrei

On Tue, Jul 25, 2017 at 11:04:53AM -0400, Connor Zanin wrote:
> Hi all,
> 
> This question is based on 
> commit 7b27c4d4b254fd1bdb11ee74808be2786c785b53 which is in the criu-dev
> branch.
> 
> The commands used are:
> 
> sudo ./criu dump -t <pid> -j -D <directory>
> and
> sudo ./criu restore -j -D <directory>
> 
> The code used, as well as the checkpoint directory and log files are attached.
> 
> CRIU is unable to restore the process tree, seemingly because it cannot find
> the session leader for the child process. Is this normal behavior? Should I be
> supplying another option? Or, is this a bug?
> 
> It seems to be a bug creating the shell session in the process tree
> (prepare_pstree_for_shell_job()).
> 
> Thanks for any help!
> 
> Cheers,
> Connor Zanin
> College of Computer and Information Science
> Northeastern University

> #include <stdio.h>
> #include <stdlib.h>
> #include <unistd.h>
> 
> int main()
> {
>     //setsid();
> 
>     fork();
> 
>     sleep(3600);
> 
>     return 0;
> }


> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu



More information about the CRIU mailing list