[CRIU] PID mismatch problem

Pavel Emelyanov xemul at parallels.com
Thu Dec 17 03:38:56 PST 2015


On 12/16/2015 12:35 PM, Federico Reghenzani wrote:
> Hi all,
> 
> I've a strange problem trying to restore an image.
> 
> Trying to execute "criu restore -D directory" with the same image I get different error 
> messages. In particular sometimes it tells me:
> 
>     /  5485: Error (cr-restore.c:1499): Pid 5488 do not match expected 5487/

This makes that while you were restoring the tree some tasks were
fork()-ing in parallel thus occupying the pids that were supposed
to be assigned to your tasks.

To fix this reliably you should either c/r a container or use the
--unshare option from patches
https://lists.openvz.org/pipermail/criu/2015-December/023995.html

>     /  5485: Error (cr-restore.c:1262): 5488 exited, status=1/
>     /Killed/
> 
> 
> other times tells me:
> 
>     /  5485: Error (tty.c:531): tty: Unable to open dev/ptmx with specified index 0/
>     /  5485: Error (tty.c:917): tty: Can't open a (index 0): Bad file descriptor/

Did you use the -j option on dump? If so, then it's likely the lack of
same -j option for restore.

>     /Error (files-reg.c:445):  `- XFail [/dev/shm/open_mpi.0000.cr.1.ghost] ghost: No such file or directory/

MPI? Are you trying to C/R mpi jobs?

>     /Error (cr-restore.c:1995): Restoring FAILED./
> 
> 
> Note that in the first case I have no active process with that PID, and all other processes have PID under 1000.

Hm... If it's so, can you strace the restore with -f option so that we
could check where the "bad" process comes from?

> CRIU version: 1.8
> 
> criu check output:
> 
> 
>     /Error (cr-check.c:634): Kernel doesn't support PTRACE_O_SUSPEND_SECCOMP/
>     /Error (cr-check.c:683): Dumping seccomp filters not supported: Input/output error/
>     /Warn  (cr-check.c:696): Dirty tracking is OFF. Memory snapshot will not work./
> 
> 
> 
> Thank you in advance, any help would be appreciated.
> 
> Cheers,
> Federico
> 
> __
> Federico Reghenzani
> M.Eng. Student @ Politecnico di Milano
> Computer Science and Engineering
> 
> 
> 
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
> 



More information about the CRIU mailing list