[CRIU] CRIU question

Pavel Emelyanov xemul at parallels.com
Tue Dec 15 11:37:41 PST 2015


On 12/15/2015 07:41 PM, Aliaksei Shautsou1 wrote:
> Hi, my name is Alex,
> 
> I'm trying to use CRIU 1.8 on Gentoo\Sabayon and unable to resore process (they killed with sig 11 or 9).
> 
> 
> what are requirements to restore with crui successfully?
> 
> Does all tests zdtm tests PASSed on you machine?

Of course. Visit ci.openvz.org and see that all tests pass.

> Should I use git://git.kernel.org/pub/scm/linux/kernel/git/gorcunov/linux-cr.git or my current kernel is fine?

No, stock kernels are now fine, provided criu check reports it's OK.

> 
> Additional info:
> 
> I run VM with QEMU on 64bit ArchLinux. Inside vm is
> 
> Linux lex-sabayon 4.3.0-sabayon #2 SMP Mon Dec 14 13:54:20 MSK 2015 x86_64 Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz GenuineIntel GNU/Linux
> kernel compiled with paramets https://criu.org/Installation#Configuring_the_kernel
> 
> Sabayon have systemd enabled.
> 
> 
> lex-sabayon test # criu check; criu check --ms
> Error (cr-check.c:683): Dumping seccomp filters not supported: Input/output error
> Warn  (cr-check.c:624): Skipping PTRACE_O_SUSPEND_SECCOMP check
> Warn  (cr-check.c:672): Skipping PTRACE_SECCOMP_GET_FILTER checkLooks good.
> 
> 
> Some of zdtm.sh\.py test are PASSed but, after tens of them I always receive FAIL.
> 
> 
> Test: zdtm/live/static/pipe00, Result: FAIL
> ==================================== ERROR ====================================
> Test: zdtm/live/static/pipe00, Namespace:
> Dump log   : /home/lex/criu-src-git/criu/test/dump/static/pipe00/24521/1/dump.log
> --------------------------------- grep Error ---------------------------------
> ------------------------------------- END -------------------------------------
> Restore log: /home/lex/criu-src-git/criu/test/dump/static/pipe00/24521/1/restore.log
> --------------------------------- grep Error ---------------------------------
> (00.000792) Error (cr-restore.c:1499): Pid 24525 do not match expected 24521

Oh! Can you reproduce this reliably? What if you run

zdtm.py run -t zdtm/live/static/pipe00 -f h

?

> (00.000852) Error (cr-restore.c:1995): Restoring FAILED.
> ------------------------------------- END -------------------------------------
> ================================= ERROR OVER =================================
> 
> 
> lex-sabayon test # ./zdtm.py run -a
> === Run 1/94 ----------------
> 
> =================== Run zdtm/live/transition/file_read in h ====================
> Start test
> ./file_read --pidfile=file_read.pid --outfile=file_read.out --filename=file_read.test
> Run criu dump
> =[log]=> dump/zdtm/live/transition/file_read/72/1/dump.log
> ------------------------ grep Error ------------------------
> (00.645363) Error (files-reg.c:995): Can't lookup mount=17 for fd=5 path=/dev/urandom

Andrey, you've seen something alike. Have you any debug you'd like
to get for this issue?

> (00.645386) Error (cr-dump.c:1270): Dump files (pid: 72) failed with -1
> (00.650257) Error (cr-dump.c:1641): Dumping FAILED.
> ------------------------ ERROR OVER ------------------------
> ############ Test zdtm/live/transition/file_read FAIL at CRIU dump #############
> Wait for zdtm/live/transition/file_read to die for 0.100000
> ##################################### FAIL #####################################
> 
> 

-- Pavel


More information about the CRIU mailing list