criu icon indicating copy to clipboard operation
criu copied to clipboard

No way to inherit tty over RPC using pycriu?

Open astro-stan opened this issue 2 years ago • 4 comments

Description I am unable to restore an application when using CRIU in either SWRK or standalone service modes. In both modes, the restore fails with:

Error (criu/util.c:641): exited, status=3
Warn  (criu/kerndat.c:1117): Can't keep kdat cache on non-tempfs
  4959: Error (criu/tty.c:992): tty: Don't have tty to inherit session from, aborting
  4959: Error (criu/files.c:1213): Unable to open fd=0 id=0x6
Error (criu/cr-restore.c:2536): Restoring FAILED.
Error (criu/cr-restore.c:1498): 4959 killed by signal 9: Killed

As far as I understand this is because the when in service mode, it is running as a daemon, so no tty-s are associated with it. And when in SWRK mode (started by the pycriu lib with criu_obj.use_binary("/path/to/binary")), the pycriu lib actually intentionally closes all std fds:

https://github.com/checkpoint-restore/criu/blob/317170ce09bdf96fc880bb05a49be1d3b41efae6/lib/py/criu.py#L100-L103

As a result, there are no tty-s to inherit when restoring the process.

Steps to reproduce the issue:

  1. Start a binary that prints something to stdout as SID leader
  2. Dump it with the pycriu lib
  3. Try to restore it with pycriu lib
  4. Check the restore logs

Describe the results you received: Restore fails with:

Error (criu/util.c:641): exited, status=3
Warn  (criu/kerndat.c:1117): Can't keep kdat cache on non-tempfs
  4959: Error (criu/tty.c:992): tty: Don't have tty to inherit session from, aborting
  4959: Error (criu/files.c:1213): Unable to open fd=0 id=0x6
Error (criu/cr-restore.c:2536): Restoring FAILED.
Error (criu/cr-restore.c:1498): 4959 killed by signal 9: Killed

Describe the results you expected: Restore succeeds

Current workaround: I have copied and modified the the pycriu lib by removing the following lines:

https://github.com/checkpoint-restore/criu/blob/317170ce09bdf96fc880bb05a49be1d3b41efae6/lib/py/criu.py#L101-L103

This allows me to use criu for restoring an application in the following way:

>>> import my_pycriu_modified_lib
>>> criu = my_pycriu_modified_lib.criu()
>>> criu.use_binary("/path/to/binary")
>>> # set criu opts
>>> criu.restore() # success

CRIU logs and information:

CRIU full dump/restore logs:

(00.000054) Version: 3.17.1 (gitid v3.17.1)
(00.000067) Running on my-container Linux 5.4.0-137-generic #154~18.04.1-Ubuntu SMP Tue Jan 10 16:58:20 UTC 2023 x86_64
(00.000074) File /run/criu.kdat does not exist
(00.000086) sockets: Probing sock diag modules
(00.000113) sockets: Done probing
(00.001514) Error (criu/util.c:641): exited, status=3
(00.001548) Pagemap is fully functional
(00.001571) Found anon-shmem device at 1
(00.001590) Hugetlb size 2 Mb is supported but cannot get dev's number
(00.001598) Hugetlb size 1024 Mb is supported but cannot get dev's number
(00.001602) Reset 383's dirty tracking
(00.001629)  ... done
(00.001652) Dirty track supported on kernel
(00.001685) Found task size of 7ffffffff000
(00.005475) Restoring netdev veth idx 10
(00.005978) Dumping netns links
(00.006039)     LD: Got link 1, type 772
(00.006053)     LD: Got link 10, type 1
(00.007896) vdso: Parsing at 7ffc9dd6e000 7ffc9dd70000
(00.007920) vdso: PT_LOAD p_vaddr: 0
(00.007929) vdso: DT_HASH: 120
(00.007936) vdso: DT_STRTAB: 2d8
(00.007944) vdso: DT_SYMTAB: 1b8
(00.007949) vdso: DT_STRSZ: 72
(00.007953) vdso: DT_SYMENT: 18
(00.007959) vdso: nbucket 3 nchain c bucket 7ffc9dd6e128 chain 7ffc9dd6e134
(00.007969) vdso: rt [vdso] 7ffc9dd6e000-7ffc9dd70000 [vvar] 7ffc9dd6b000-7ffc9dd6e000
(00.008557) vdso: Parsing at 7f390f776000 7f390f778000
(00.008584) vdso: PT_LOAD p_vaddr: 0
(00.008591) vdso: DT_HASH: b4
(00.008596) vdso: DT_STRTAB: 1f0
(00.008601) vdso: DT_SYMTAB: 140
(00.008605) vdso: DT_STRSZ: c0
(00.008610) vdso: DT_SYMENT: 10
(00.008615) vdso: nbucket 3 nchain b bucket 7f390f7760bc chain 7f390f7760c8
(00.008627) vdso: compat [vdso] 7ffc9dd71000-7ffc9dd73000 [vvar] 7ffc9dd6e000-7ffc9dd71000
(00.009252) cpu: x86_family 6 x86_vendor_id GenuineIntel x86_model_id Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
(00.009275) cpu: fpu: xfeatures_mask 0x2e5 xsave_size 2696 xsave_size_max 2696 xsaves_size 2440
(00.009291) cpu: fpu: x87 floating point registers     xstate_offsets      0 / 0      xstate_sizes    160 / 160   
(00.009303) cpu: fpu: AVX registers                    xstate_offsets    576 / 576    xstate_sizes    256 / 256   
(00.009311) cpu: fpu: AVX-512 opmask                   xstate_offsets   1088 / 832    xstate_sizes     64 / 64    
(00.009319) cpu: fpu: AVX-512 Hi256                    xstate_offsets   1152 / 896    xstate_sizes    512 / 512   
(00.009326) cpu: fpu: AVX-512 ZMM_Hi256                xstate_offsets   1664 / 1408   xstate_sizes   1024 / 1024  
(00.009334) cpu: fpu: Protection Keys User registers   xstate_offsets   2688 / 2432   xstate_sizes      8 / 8     
(00.009466) Time namespaces are not supported.
(00.012327) No MOVE_MOUNT_SET_GROUP kernel feature
(00.012488) No openat2 syscall support
(00.012776) ptrace(PTRACE_GET_RSEQ_CONFIGURATION) is not supported
(00.012906) Found mmap_min_addr 0x10000
(00.012924) files stat: fs/nr_open 1048576
(00.012967) Warn  (criu/kerndat.c:1117): Can't keep kdat cache on non-tempfs
(00.013015) Will dump/restore TCP connections
(00.013023) mnt-v2: Mounts-v2 requires MOVE_MOUNT_SET_GROUP support
(00.013028) Mount engine fallback to --mntns-compat-mode mode
(00.013035) rlimit: RLIMIT_NOFILE unlimited for self
(00.013085) cpu: fpu:1 fxsr:1 xsave:1 xsaveopt:1 xsavec:1 xgetbv1:1 xsaves:1
(00.013112) kernel pid_max=32768
(00.013119) Reading image tree
(00.013192) Add mnt ns 6 pid 374
(00.013200) Add net ns 2 pid 374
(00.013205) Add pid ns 1 pid 374
(00.013213) pstree pid_max=374
(00.013220) Will restore in 0 namespaces
(00.013225) NS mask to use 0
(00.013246) Collecting 51/56 (flags 3)
(00.013255) No memfd.img image
(00.013262)  `- ... done
(00.013266) Collecting 40/54 (flags 2)
(00.013284) Collected [usr/lib/libobstack.so.1.0.0] ID 0x1
(00.013294) Collected [lib/libucontext.so.1] ID 0x2
(00.013303) Collected [lib/libgcompat.so.0] ID 0x3
(00.013317) Collected [path/to/binary/binary.bin] ID 0x4
(00.013325) Collected [lib/ld-musl-x86_64.so.1] ID 0x5
(00.013334) Collected [dev/pts/6] ID 0x7
(00.013355) epoll: Collected eventpoll: id 0x000008 flags 0x02
(00.013364) epoll: Collected eventpoll: id 0x000009 flags 0x02
(00.013392) Collected pipe entry ID 0xa PIPE ID 0x1fcea7
(00.013409) Collected pipe entry ID 0xb PIPE ID 0x1fcea7
(00.013428) epoll: Collected eventpoll: id 0x00000c flags 0x02
(00.013436) eventfd: Collected : id 0x00000d flags 0x802 counter 0000000000000000
(00.013565) Collected [path/to/binary/dir] ID 0x19
(00.013574) Collected [.] ID 0x1a
(00.013582)  `- ... done
(00.013586) Collecting 46/68 (flags 0)
(00.013593) No remap-fpath.img image
(00.013599)  `- ... done
(00.013604) tty: Standard stream is not a terminal, may fail later
(00.013620) No apparmor.img image
(00.013628) No cgroup.img image
(00.013636) Running pre-restore scripts
(00.013676) No pidns-1.img image
(00.013836) Forking task with 374 pid (flags 0x0)
(00.013929) PID: real 374 virt 374
(00.013984)    374: cg: Cgroups 1 inherited from parent
(00.014003)    374: Calling restore_sid() for init
(00.014007)    374: Restoring 374 to 374 sid
(00.014038)    374: Collecting 44/37 (flags 2)
(00.014092)    374: tty: Collected tty ID 0x6 (pts)
(00.014111)    374:  `- ... done
(00.014116)    374: Collecting 45/51 (flags 0)
(00.014124)    374: No tty-data.img image
(00.014135)    374:  `- ... done
(00.014138)    374: Restoring namespaces 374 flags 0x0
(00.014148)    374: Preparing info about shared resources
(00.014176)    374: Collecting 48/38 (flags 0)
(00.014188)    374: No filelocks.img image
(00.014192)    374:  `- ... done
(00.014195)    374: Collecting 42/27 (flags 0)
(00.014213)    374: Collected pipe data for 0x1fcea7 (chain 7)
(00.014220)    374:  `- ... done
(00.014223)    374: Collecting 43/27 (flags 0)
(00.014227)    374: No fifo-data.img image
(00.014231)    374:  `- ... done
(00.014233)    374: Collecting 41/69 (flags 0)
(00.014239)    374: No sk-queues.img image
(00.014243)    374:  `- ... done
(00.014452)    374: Found 282 VMAs in image
(00.014463)    374: vma 0x555555d30000 0x555555d31000
(00.014468)    374: vma 0x555555d31000 0x555555d34000
(00.014473)    374: vma 0x7fd2f94e1000 0x7fd2f94f1000
(00.014478)    374: vma 0x7fd2f94f1000 0x7fd2f94f3000
(00.014483)    374: vma 0x7fd2f94f3000 0x7fd2f9514000
(00.014488)    374: vma 0x7fd2f9514000 0x7fd2f9516000
(00.014492)    374: vma 0x7fd2f9516000 0x7fd2f9537000
(00.014497)    374: vma 0x7fd2f9537000 0x7fd2f9539000
(00.014502)    374: vma 0x7fd2f9539000 0x7fd2f955a000
(00.014507)    374: vma 0x7fd2f955a000 0x7fd2f955c000
(00.014511)    374: vma 0x7fd2f955c000 0x7fd2f957d000
(00.014516)    374: vma 0x7fd2f957d000 0x7fd2f957f000
(00.014520)    374: vma 0x7fd2f957f000 0x7fd2f95a0000
(00.014530)    374: vma 0x7fd2f95a0000 0x7fd2f95a2000
(00.014536)    374: vma 0x7fd2f95a2000 0x7fd2f95c3000
(00.014541)    374: vma 0x7fd2f95c3000 0x7fd2f95c5000
(00.014546)    374: vma 0x7fd2f95c5000 0x7fd2f95e6000
(00.014550)    374: vma 0x7fd2f95e6000 0x7fd2f95e8000
(00.014555)    374: vma 0x7fd2f95e8000 0x7fd2f9609000
(00.014560)    374: vma 0x7fd2f9609000 0x7fd2f960b000
(00.014565)    374: vma 0x7fd2f960b000 0x7fd2f962c000
(00.014569)    374: vma 0x7fd2f962c000 0x7fd2f962e000
(00.014574)    374: vma 0x7fd2f962e000 0x7fd2f964f000
(00.014578)    374: vma 0x7fd2f964f000 0x7fd2f9651000
(00.014583)    374: vma 0x7fd2f9651000 0x7fd2f9672000
(00.014588)    374: vma 0x7fd2f9672000 0x7fd2f9674000
(00.014592)    374: vma 0x7fd2f9674000 0x7fd2f9695000
(00.014597)    374: vma 0x7fd2f9695000 0x7fd2f9697000
(00.014602)    374: vma 0x7fd2f9697000 0x7fd2f96b8000
(00.014606)    374: vma 0x7fd2f96b8000 0x7fd2f96ba000
(00.014611)    374: vma 0x7fd2f96ba000 0x7fd2f96db000
(00.014616)    374: vma 0x7fd2f96db000 0x7fd2f96dd000
(00.014620)    374: vma 0x7fd2f96dd000 0x7fd2f96fe000
(00.014624)    374: vma 0x7fd2f96fe000 0x7fd2f9700000
(00.014629)    374: vma 0x7fd2f9700000 0x7fd2f9721000
(00.014634)    374: vma 0x7fd2f9721000 0x7fd2f9723000
(00.014638)    374: vma 0x7fd2f9723000 0x7fd2f9744000
(00.014643)    374: vma 0x7fd2f9744000 0x7fd2f9746000
(00.014652)    374: vma 0x7fd2f9746000 0x7fd2f9767000
(00.014658)    374: vma 0x7fd2f9767000 0x7fd2f9769000
(00.014663)    374: vma 0x7fd2f9769000 0x7fd2f978a000
(00.014685)    374: vma 0x7fd2f978a000 0x7fd2f978c000
(00.014689)    374: vma 0x7fd2f978c000 0x7fd2f97ad000
(00.014694)    374: vma 0x7fd2f97ad000 0x7fd2f97af000
(00.014699)    374: vma 0x7fd2f97af000 0x7fd2f97d0000
(00.014703)    374: vma 0x7fd2f97d0000 0x7fd2f97d2000
(00.014708)    374: vma 0x7fd2f97d2000 0x7fd2f97f3000
(00.014712)    374: vma 0x7fd2f97f3000 0x7fd2f97f5000
(00.014717)    374: vma 0x7fd2f97f5000 0x7fd2f9816000
(00.014722)    374: vma 0x7fd2f9816000 0x7fd2f9818000
(00.014726)    374: vma 0x7fd2f9818000 0x7fd2f9839000
(00.014731)    374: vma 0x7fd2f9839000 0x7fd2f983b000
(00.014736)    374: vma 0x7fd2f983b000 0x7fd2f9866000
(00.014740)    374: vma 0x7fd2f9866000 0x7fd2f9868000
(00.014745)    374: vma 0x7fd2f9868000 0x7fd2f988f000
(00.014749)    374: vma 0x7fd2f988f000 0x7fd2f9891000
(00.014754)    374: vma 0x7fd2f9891000 0x7fd2f98e8000
(00.014759)    374: vma 0x7fd2f98e8000 0x7fd2f98ea000
(00.014765)    374: vma 0x7fd2f98ea000 0x7fd2f990b000
(00.014770)    374: vma 0x7fd2f990b000 0x7fd2f990d000
(00.014775)    374: vma 0x7fd2f990d000 0x7fd2f992e000
(00.014779)    374: vma 0x7fd2f992e000 0x7fd2f9930000
(00.014783)    374: vma 0x7fd2f9930000 0x7fd2f9951000
(00.014788)    374: vma 0x7fd2f9951000 0x7fd2f9953000
(00.014792)    374: vma 0x7fd2f9953000 0x7fd2f9974000
(00.014797)    374: vma 0x7fd2f9974000 0x7fd2f9976000
(00.014802)    374: vma 0x7fd2f9976000 0x7fd2f9997000
(00.014807)    374: vma 0x7fd2f9997000 0x7fd2f9999000
(00.014815)    374: vma 0x7fd2f9999000 0x7fd2f99ba000
(00.014821)    374: vma 0x7fd2f99ba000 0x7fd2f99bc000
(00.014826)    374: vma 0x7fd2f99bc000 0x7fd2f99dd000
(00.014831)    374: vma 0x7fd2f99dd000 0x7fd2f99df000
(00.014836)    374: vma 0x7fd2f99df000 0x7fd2f9a00000
(00.014840)    374: vma 0x7fd2f9a00000 0x7fd2f9a02000
(00.014845)    374: vma 0x7fd2f9a02000 0x7fd2f9a23000
(00.014849)    374: vma 0x7fd2f9a23000 0x7fd2f9a25000
(00.014854)    374: vma 0x7fd2f9a25000 0x7fd2f9a46000
(00.014858)    374: vma 0x7fd2f9a46000 0x7fd2f9a48000
(00.014863)    374: vma 0x7fd2f9a48000 0x7fd2f9a69000
(00.014868)    374: vma 0x7fd2f9a69000 0x7fd2f9a6b000
(00.014873)    374: vma 0x7fd2f9a6b000 0x7fd2f9a8c000
(00.014878)    374: vma 0x7fd2f9a8c000 0x7fd2f9a8e000
(00.014882)    374: vma 0x7fd2f9a8e000 0x7fd2f9aaf000
(00.014887)    374: vma 0x7fd2f9aaf000 0x7fd2f9ab1000
(00.014891)    374: vma 0x7fd2f9ab1000 0x7fd2f9ad2000
(00.014896)    374: vma 0x7fd2f9ad2000 0x7fd2f9ad4000
(00.014901)    374: vma 0x7fd2f9ad4000 0x7fd2f9af5000
(00.014905)    374: vma 0x7fd2f9af5000 0x7fd2f9af7000
(00.014914)    374: vma 0x7fd2f9af7000 0x7fd2f9b18000
(00.014922)    374: vma 0x7fd2f9b18000 0x7fd2f9b1a000
(00.014926)    374: vma 0x7fd2f9b1a000 0x7fd2f9b3b000
(00.014931)    374: vma 0x7fd2f9b3b000 0x7fd2f9b3d000
(00.014936)    374: vma 0x7fd2f9b3d000 0x7fd2f9b5e000
(00.014941)    374: vma 0x7fd2f9b5e000 0x7fd2f9b60000
(00.014946)    374: vma 0x7fd2f9b60000 0x7fd2f9b83000
(00.014950)    374: vma 0x7fd2f9b83000 0x7fd2f9b85000
(00.014955)    374: vma 0x7fd2f9b85000 0x7fd2f9ba6000
(00.014959)    374: vma 0x7fd2f9ba6000 0x7fd2f9ba8000
(00.014964)    374: vma 0x7fd2f9ba8000 0x7fd2f9bc9000
(00.014968)    374: vma 0x7fd2f9bc9000 0x7fd2f9bcb000
(00.014973)    374: vma 0x7fd2f9bcb000 0x7fd2f9bec000
(00.014978)    374: vma 0x7fd2f9bec000 0x7fd2f9bee000
(00.014982)    374: vma 0x7fd2f9bee000 0x7fd2f9c0f000
(00.014987)    374: vma 0x7fd2f9c0f000 0x7fd2f9c11000
(00.014992)    374: vma 0x7fd2f9c11000 0x7fd2f9c32000
(00.014996)    374: vma 0x7fd2f9c32000 0x7fd2f9c34000
(00.015000)    374: vma 0x7fd2f9c34000 0x7fd2f9c55000
(00.015004)    374: vma 0x7fd2f9c55000 0x7fd2f9c57000
(00.015021)    374: vma 0x7fd2f9c57000 0x7fd2f9c78000
(00.015027)    374: vma 0x7fd2f9c78000 0x7fd2f9c7a000
(00.015031)    374: vma 0x7fd2f9c7a000 0x7fd2f9c9b000
(00.015035)    374: vma 0x7fd2f9c9b000 0x7fd2f9c9d000
(00.015039)    374: vma 0x7fd2f9c9d000 0x7fd2f9cbe000
(00.015043)    374: vma 0x7fd2f9cbe000 0x7fd2f9cc0000
(00.015056)    374: vma 0x7fd2f9cc0000 0x7fd2f9ce1000
(00.015059)    374: vma 0x7fd2f9ce1000 0x7fd2f9ce3000
(00.015062)    374: vma 0x7fd2f9ce3000 0x7fd2f9d04000
(00.015068)    374: vma 0x7fd2f9d04000 0x7fd2f9d06000
(00.015071)    374: vma 0x7fd2f9d06000 0x7fd2f9d27000
(00.015075)    374: vma 0x7fd2f9d27000 0x7fd2f9d29000
(00.015078)    374: vma 0x7fd2f9d29000 0x7fd2f9d4a000
(00.015081)    374: vma 0x7fd2f9d4a000 0x7fd2f9d4c000
(00.015084)    374: vma 0x7fd2f9d4c000 0x7fd2f9d6d000
(00.015087)    374: vma 0x7fd2f9d6d000 0x7fd2f9d6f000
(00.015091)    374: vma 0x7fd2f9d6f000 0x7fd2f9d90000
(00.015095)    374: vma 0x7fd2f9d90000 0x7fd2f9d92000
(00.015099)    374: vma 0x7fd2f9d92000 0x7fd2f9db3000
(00.015103)    374: vma 0x7fd2f9db3000 0x7fd2f9db5000
(00.015113)    374: vma 0x7fd2f9db5000 0x7fd2f9dd6000
(00.015117)    374: vma 0x7fd2f9dd6000 0x7fd2f9dd8000
(00.015121)    374: vma 0x7fd2f9dd8000 0x7fd2f9df9000
(00.015126)    374: vma 0x7fd2f9df9000 0x7fd2f9dfb000
(00.015129)    374: vma 0x7fd2f9dfb000 0x7fd2f9e1c000
(00.015133)    374: vma 0x7fd2f9e1c000 0x7fd2f9e1e000
(00.015136)    374: vma 0x7fd2f9e1e000 0x7fd2f9e3f000
(00.015139)    374: vma 0x7fd2f9e3f000 0x7fd2f9e41000
(00.015142)    374: vma 0x7fd2f9e41000 0x7fd2f9e62000
(00.015145)    374: vma 0x7fd2f9e62000 0x7fd2f9e64000
(00.015148)    374: vma 0x7fd2f9e64000 0x7fd2f9e85000
(00.015151)    374: vma 0x7fd2f9e85000 0x7fd2f9e87000
(00.015154)    374: vma 0x7fd2f9e87000 0x7fd2f9ea8000
(00.015157)    374: vma 0x7fd2f9ea8000 0x7fd2f9eaa000
(00.015159)    374: vma 0x7fd2f9eaa000 0x7fd2f9ecb000
(00.015162)    374: vma 0x7fd2f9ecb000 0x7fd2f9ecd000
(00.015166)    374: vma 0x7fd2f9ecd000 0x7fd2f9eee000
(00.015169)    374: vma 0x7fd2f9eee000 0x7fd2f9ef0000
(00.015172)    374: vma 0x7fd2f9ef0000 0x7fd2f9f11000
(00.015175)    374: vma 0x7fd2f9f11000 0x7fd2f9f13000
(00.015181)    374: vma 0x7fd2f9f13000 0x7fd2f9f34000
(00.015184)    374: vma 0x7fd2f9f34000 0x7fd2f9f36000
(00.015189)    374: vma 0x7fd2f9f36000 0x7fd2f9f57000
(00.015193)    374: vma 0x7fd2f9f57000 0x7fd2f9f59000
(00.015197)    374: vma 0x7fd2f9f59000 0x7fd2f9f7a000
(00.015202)    374: vma 0x7fd2f9f7a000 0x7fd2f9f7c000
(00.015205)    374: vma 0x7fd2f9f7c000 0x7fd2f9f9d000
(00.015209)    374: vma 0x7fd2f9f9d000 0x7fd2f9f9f000
(00.015214)    374: vma 0x7fd2f9f9f000 0x7fd2f9fc0000
(00.015218)    374: vma 0x7fd2f9fc0000 0x7fd2f9fc2000
(00.015221)    374: vma 0x7fd2f9fc2000 0x7fd2f9fe3000
(00.015224)    374: vma 0x7fd2f9fe3000 0x7fd2f9fe5000
(00.015227)    374: vma 0x7fd2f9fe5000 0x7fd2fa006000
(00.015230)    374: vma 0x7fd2fa006000 0x7fd2fa008000
(00.015233)    374: vma 0x7fd2fa008000 0x7fd2fa029000
(00.015236)    374: vma 0x7fd2fa029000 0x7fd2fa02b000
(00.015239)    374: vma 0x7fd2fa02b000 0x7fd2fa04c000
(00.015242)    374: vma 0x7fd2fa04c000 0x7fd2fa04e000
(00.015245)    374: vma 0x7fd2fa04e000 0x7fd2fa06f000
(00.015248)    374: vma 0x7fd2fa06f000 0x7fd2fa071000
(00.015254)    374: vma 0x7fd2fa071000 0x7fd2fa092000
(00.015257)    374: vma 0x7fd2fa092000 0x7fd2fa094000
(00.015261)    374: vma 0x7fd2fa094000 0x7fd2fa0b5000
(00.015266)    374: vma 0x7fd2fa0b5000 0x7fd2fa0b7000
(00.015269)    374: vma 0x7fd2fa0b7000 0x7fd2fa0d8000
(00.015272)    374: vma 0x7fd2fa0d8000 0x7fd2fa0da000
(00.015275)    374: vma 0x7fd2fa0da000 0x7fd2fa0fb000
(00.015278)    374: vma 0x7fd2fa0fb000 0x7fd2fa0fd000
(00.015281)    374: vma 0x7fd2fa0fd000 0x7fd2fa11e000
(00.015284)    374: vma 0x7fd2fa11e000 0x7fd2fa120000
(00.015287)    374: vma 0x7fd2fa120000 0x7fd2fa141000
(00.015290)    374: vma 0x7fd2fa141000 0x7fd2fa143000
(00.015293)    374: vma 0x7fd2fa143000 0x7fd2fa164000
(00.015296)    374: vma 0x7fd2fa164000 0x7fd2fa166000
(00.015299)    374: vma 0x7fd2fa166000 0x7fd2fa187000
(00.015303)    374: vma 0x7fd2fa187000 0x7fd2fa189000
(00.015306)    374: vma 0x7fd2fa189000 0x7fd2fa1aa000
(00.015309)    374: vma 0x7fd2fa1aa000 0x7fd2fa1ac000
(00.015311)    374: vma 0x7fd2fa1ac000 0x7fd2fa1cd000
(00.015314)    374: vma 0x7fd2fa1cd000 0x7fd2fa1cf000
(00.015321)    374: vma 0x7fd2fa1cf000 0x7fd2fa1f0000
(00.015324)    374: vma 0x7fd2fa1f0000 0x7fd2fa1f2000
(00.015329)    374: vma 0x7fd2fa1f2000 0x7fd2fa213000
(00.015333)    374: vma 0x7fd2fa213000 0x7fd2fa215000
(00.015336)    374: vma 0x7fd2fa215000 0x7fd2fa236000
(00.015341)    374: vma 0x7fd2fa236000 0x7fd2fa238000
(00.015344)    374: vma 0x7fd2fa238000 0x7fd2fa259000
(00.015348)    374: vma 0x7fd2fa259000 0x7fd2fa25b000
(00.015354)    374: vma 0x7fd2fa25b000 0x7fd2fa27c000
(00.015356)    374: vma 0x7fd2fa27c000 0x7fd2fa27e000
(00.015359)    374: vma 0x7fd2fa27e000 0x7fd2fa29f000
(00.015362)    374: vma 0x7fd2fa29f000 0x7fd2fa2a1000
(00.015365)    374: vma 0x7fd2fa2a1000 0x7fd2fa2c2000
(00.015368)    374: vma 0x7fd2fa2c2000 0x7fd2fa2c4000
(00.015371)    374: vma 0x7fd2fa2c4000 0x7fd2fa2e5000
(00.015375)    374: vma 0x7fd2fa2e5000 0x7fd2fa2e7000
(00.015378)    374: vma 0x7fd2fa2e7000 0x7fd2fa308000
(00.015381)    374: vma 0x7fd2fa308000 0x7fd2fa30a000
(00.015384)    374: vma 0x7fd2fa30a000 0x7fd2fa32b000
(00.015387)    374: vma 0x7fd2fa32b000 0x7fd2fa32d000
(00.015393)    374: vma 0x7fd2fa32d000 0x7fd2fa34e000
(00.015400)    374: vma 0x7fd2fa34e000 0x7fd2fa350000
(00.015403)    374: vma 0x7fd2fa350000 0x7fd2fa371000
(00.015406)    374: vma 0x7fd2fa371000 0x7fd2fa373000
(00.015409)    374: vma 0x7fd2fa373000 0x7fd2fa394000
(00.015412)    374: vma 0x7fd2fa394000 0x7fd2fa396000
(00.015415)    374: vma 0x7fd2fa396000 0x7fd2fa3b7000
(00.015418)    374: vma 0x7fd2fa3b7000 0x7fd2fa3b9000
(00.015421)    374: vma 0x7fd2fa3b9000 0x7fd2fa3da000
(00.015424)    374: vma 0x7fd2fa3da000 0x7fd2fa3dc000
(00.015428)    374: vma 0x7fd2fa3dc000 0x7fd2fa3fd000
(00.015431)    374: vma 0x7fd2fa3fd000 0x7fd2fa3ff000
(00.015434)    374: vma 0x7fd2fa3ff000 0x7fd2fa420000
(00.015437)    374: vma 0x7fd2fa420000 0x7fd2fa422000
(00.015439)    374: vma 0x7fd2fa422000 0x7fd2fa443000
(00.015442)    374: vma 0x7fd2fa443000 0x7fd2fa445000
(00.015446)    374: vma 0x7fd2fa445000 0x7fd2fa466000
(00.015449)    374: vma 0x7fd2fa466000 0x7fd2fa468000
(00.015452)    374: vma 0x7fd2fa468000 0x7fd2fa489000
(00.015455)    374: vma 0x7fd2fa489000 0x7fd2fa48b000
(00.015462)    374: vma 0x7fd2fa48b000 0x7fd2fa4ac000
(00.015467)    374: vma 0x7fd2fa4ac000 0x7fd2fa4ae000
(00.015471)    374: vma 0x7fd2fa4ae000 0x7fd2fa4cf000
(00.015475)    374: vma 0x7fd2fa4cf000 0x7fd2fa4d1000
(00.015478)    374: vma 0x7fd2fa4d1000 0x7fd2fa4f2000
(00.015481)    374: vma 0x7fd2fa4f2000 0x7fd2fa4f4000
(00.015484)    374: vma 0x7fd2fa4f4000 0x7fd2fa515000
(00.015487)    374: vma 0x7fd2fa515000 0x7fd2fa517000
(00.015489)    374: vma 0x7fd2fa517000 0x7fd2fa538000
(00.015492)    374: vma 0x7fd2fa538000 0x7fd2fa53a000
(00.015496)    374: vma 0x7fd2fa53a000 0x7fd2fa55b000
(00.015499)    374: vma 0x7fd2fa55b000 0x7fd2fa55d000
(00.015502)    374: vma 0x7fd2fa55d000 0x7fd2fa57e000
(00.015505)    374: vma 0x7fd2fa57e000 0x7fd2fa580000
(00.015508)    374: vma 0x7fd2fa580000 0x7fd2fa5a1000
(00.015511)    374: vma 0x7fd2fa5a1000 0x7fd2fa5a3000
(00.015514)    374: vma 0x7fd2fa5a3000 0x7fd2fa5c4000
(00.015517)    374: vma 0x7fd2fa5c4000 0x7fd2fa5c6000
(00.015520)    374: vma 0x7fd2fa5c6000 0x7fd2fa5e7000
(00.015523)    374: vma 0x7fd2fa5e7000 0x7fd2fa5e9000
(00.015531)    374: vma 0x7fd2fa5e9000 0x7fd2fa60a000
(00.015536)    374: vma 0x7fd2fa60a000 0x7fd2fa60b000
(00.015541)    374: vma 0x7fd2fa60b000 0x7fd2fa60c000
(00.015544)    374: vma 0x7fd2fa60c000 0x7fd2fa60d000
(00.015547)    374: vma 0x7fd2fa60d000 0x7fd2fa60e000
(00.015550)    374: vma 0x7fd2fa60e000 0x7fd2fa60f000
(00.015553)    374: vma 0x7fd2fa60f000 0x7fd2fa610000
(00.015557)    374: vma 0x7fd2fa610000 0x7fd2fa611000
(00.015561)    374: vma 0x7fd2fa611000 0x7fd2fa612000
(00.015564)    374: vma 0x7fd2fa612000 0x7fd2fa613000
(00.015567)    374: vma 0x7fd2fa613000 0x7fd2fa614000
(00.015570)    374: vma 0x7fd2fa614000 0x7fd2fa61a000
(00.015574)    374: vma 0x7fd2fa61a000 0x7fd2fa61f000
(00.015577)    374: vma 0x7fd2fa61f000 0x7fd2fa622000
(00.015580)    374: vma 0x7fd2fa622000 0x7fd2fa623000
(00.015585)    374: vma 0x7fd2fa623000 0x7fd2fa624000
(00.015589)    374: vma 0x7fd2fa624000 0x7fd2fa625000
(00.015593)    374: vma 0x7fd2fa625000 0x7fd2fa626000
(00.015597)    374: vma 0x7fd2fa626000 0x7fd2fa63a000
(00.015601)    374: vma 0x7fd2fa63a000 0x7fd2fa6f1000
(00.015608)    374: vma 0x7fd2fa6f1000 0x7fd2fa73d000
(00.015618)    374: vma 0x7fd2fa73d000 0x7fd2fa746000
(00.015621)    374: vma 0x7fd2fa746000 0x7fd2fab28000
(00.015624)    374: vma 0x7fd2fab28000 0x7fd2fade8000
(00.015627)    374: vma 0x7fd2fade8000 0x7fd2fadfd000
(00.015630)    374: vma 0x7fd2fadfd000 0x7fd2fae45000
(00.015634)    374: vma 0x7fd2fae45000 0x7fd2fae7b000
(00.015637)    374: vma 0x7fd2fae7b000 0x7fd2fae7c000
(00.015640)    374: vma 0x7fd2fae7c000 0x7fd2fae7d000
(00.015643)    374: vma 0x7fd2fae7d000 0x7fd2fae80000
(00.015646)    374: vma 0x7ffd6f9e1000 0x7ffd6fa02000
(00.015649)    374: vma 0x7ffd6fb8e000 0x7ffd6fb91000
(00.015651)    374: vma 0x7ffd6fb91000 0x7ffd6fb93000
(00.015654)    374: vma 0xffffffffff600000 0xffffffffff601000
(00.015668)    374: Collect fdinfo pid=374 fd=0 id=0x6
(00.015675)    374: Collect fdinfo pid=374 fd=1 id=0x6
(00.015679)    374: Collect fdinfo pid=374 fd=2 id=0x6
(00.015683)    374: Collect fdinfo pid=374 fd=3 id=0x8
(00.015691)    374: Collect fdinfo pid=374 fd=4 id=0x9
(00.015699)    374: Collect fdinfo pid=374 fd=5 id=0xa
(00.015704)    374: Collect fdinfo pid=374 fd=6 id=0xb
(00.015710)    374: Collect fdinfo pid=374 fd=7 id=0xc
(00.015726)    374: Collect fdinfo pid=374 fd=8 id=0xd
(00.015730)    374: Collect fdinfo pid=374 fd=9 id=0xe
(00.015737)    374: Collect fdinfo pid=374 fd=10 id=0xf
(00.015744)    374: Collect fdinfo pid=374 fd=11 id=0x10
(00.015748)    374: Collect fdinfo pid=374 fd=12 id=0x11
(00.015752)    374: Collect fdinfo pid=374 fd=13 id=0x12
(00.015760)    374: Collect fdinfo pid=374 fd=14 id=0x13
(00.015768)    374: Collect fdinfo pid=374 fd=15 id=0x14
(00.015772)    374: Collect fdinfo pid=374 fd=16 id=0x15
(00.015778)    374: Collect fdinfo pid=374 fd=17 id=0x16
(00.015783)    374: Collect fdinfo pid=374 fd=18 id=0x17
(00.015788)    374: Collect fdinfo pid=374 fd=19 id=0x18
(00.015831)    374: skqueue: Preparing SCMs
(00.015836)    374: tty: Unpaired slave 6
(00.015840)    374: tty: Inherit terminal for id 0x6
(00.015843)    374: tty: head driver pts id 0x6 index 6 (master 0 sid 0 pgrp 0 inherit 1)
(00.015849)    374: tty: Found orphan slave fake leader (0x6)
(00.015854)    374: Pipes:
(00.015857)    374:  `- PIPE ID 0x1fcea7
(00.015861)    374:   `- ID 0x7f390f89ff80 0xa
(00.015865)    374:    `- FD 5 pid 374
(00.015870)    374:   `- ID 0x7f390f7f1f80 0xb
(00.015874)    374:    `- FD 6 pid 374
(00.015878)    374:     by 0xa
(00.015882)    374: unix: ghost: Resolving addresses
(00.015886)    374: File descs:
(00.015889)    374:  `- type 1 ID 0x1
(00.015892)    374:  `- type 1 ID 0x2
(00.015896)    374:  `- type 1 ID 0x3
(00.015900)    374:  `- type 1 ID 0x4
(00.015904)    374:  `- type 1 ID 0x5
(00.015908)    374:  `- type 11 ID 0x6
(00.015912)    374:    `- FD 0 pid 374
(00.015915)    374:    `- FD 1 pid 374
(00.015918)    374:    `- FD 2 pid 374
(00.015921)    374:  `- type 1 ID 0x7
(00.015924)    374:  `- type 7 ID 0x8
(00.015928)    374:    `- FD 3 pid 374
(00.015933)    374:  `- type 7 ID 0x9
(00.015937)    374:    `- FD 4 pid 374
(00.015941)    374:  `- type 2 ID 0xa
(00.015943)    374:    `- FD 5 pid 374
(00.015946)    374:  `- type 2 ID 0xb
(00.015949)    374:    `- FD 6 pid 374
(00.015952)    374:  `- type 7 ID 0xc
(00.015956)    374:    `- FD 7 pid 374
(00.015961)    374:  `- type 6 ID 0xd
(00.015964)    374:    `- FD 8 pid 374
(00.015967)    374:  `- type 4 ID 0xe
(00.015971)    374:    `- FD 9 pid 374
(00.015974)    374:  `- type 4 ID 0xf
(00.015977)    374:    `- FD 10 pid 374
(00.015980)    374:  `- type 4 ID 0x10
(00.015984)    374:    `- FD 11 pid 374
(00.015988)    374:  `- type 4 ID 0x11
(00.015992)    374:    `- FD 12 pid 374
(00.015995)    374:  `- type 4 ID 0x12
(00.015998)    374:    `- FD 13 pid 374
(00.016000)    374:  `- type 4 ID 0x13
(00.016003)    374:    `- FD 14 pid 374
(00.016006)    374:  `- type 4 ID 0x14
(00.016009)    374:    `- FD 15 pid 374
(00.016013)    374:  `- type 4 ID 0x15
(00.016017)    374:    `- FD 16 pid 374
(00.016020)    374:  `- type 4 ID 0x16
(00.016023)    374:    `- FD 17 pid 374
(00.016026)    374:  `- type 4 ID 0x17
(00.016029)    374:    `- FD 18 pid 374
(00.016037)    374:  `- type 4 ID 0x18
(00.016041)    374:    `- FD 19 pid 374
(00.016044)    374:  `- type 1 ID 0x19
(00.016047)    374:  `- type 1 ID 0x1a
(00.016104)    374: No parent images directory provided
(00.016168)    374: Opened local page read 1 (parent 0)
(00.016180)    374: Enqueue page-read
(00.016189)    374: Enqueue page-read
(00.016194)    374: Enqueue page-read
(00.016198)    374: Enqueue page-read
(00.016204)    374: Enqueue page-read
(00.016213)    374: Enqueue page-read
(00.016220)    374: Enqueue page-read
(00.016225)    374: Enqueue page-read
(00.016233)    374: Enqueue page-read
(00.016236)    374: Enqueue page-read
(00.016239)    374: Enqueue page-read
(00.016242)    374: Enqueue page-read
(00.016245)    374: Enqueue page-read
(00.016247)    374: Enqueue page-read
(00.016252)    374: Enqueue page-read
(00.016256)    374: Enqueue page-read
(00.016260)    374: Enqueue page-read
(00.016262)    374: Enqueue page-read
(00.016266)    374: Enqueue page-read
(00.016271)    374: Enqueue page-read
(00.016274)    374: Enqueue page-read
(00.016276)    374: Enqueue page-read
(00.016279)    374: Enqueue page-read
(00.016282)    374: Enqueue page-read
(00.016284)    374: Enqueue page-read
(00.016287)    374: Enqueue page-read
(00.016290)    374: Enqueue page-read
(00.016292)    374: Enqueue page-read
(00.016295)    374: Enqueue page-read
(00.016297)    374: Enqueue page-read
(00.016302)    374: Enqueue page-read
(00.016305)    374: Enqueue page-read
(00.016308)    374: Enqueue page-read
(00.016312)    374: Enqueue page-read
(00.016315)    374: Enqueue page-read
(00.016317)    374: Enqueue page-read
(00.016319)    374: Enqueue page-read
(00.016322)    374: Enqueue page-read
(00.016325)    374: Enqueue page-read
(00.016328)    374: Enqueue page-read
(00.016330)    374: Enqueue page-read
(00.016336)    374: Enqueue page-read
(00.016339)    374: Enqueue page-read
(00.016342)    374: Enqueue page-read
(00.016346)    374: Enqueue page-read
(00.016349)    374: Enqueue page-read
(00.016352)    374: Enqueue page-read
(00.016354)    374: Enqueue page-read
(00.016357)    374: Enqueue page-read
(00.016365)    374: Enqueue page-read
(00.016370)    374: Enqueue page-read
(00.016373)    374: Enqueue page-read
(00.016376)    374: Enqueue page-read
(00.016379)    374: Enqueue page-read
(00.016381)    374: Enqueue page-read
(00.016384)    374: Enqueue page-read
(00.016386)    374: Enqueue page-read
(00.016389)    374: Enqueue page-read
(00.016391)    374: Enqueue page-read
(00.016394)    374: Enqueue page-read
(00.016397)    374: Enqueue page-read
(00.016399)    374: Enqueue page-read
(00.016403)    374: Enqueue page-read
(00.016406)    374: Enqueue page-read
(00.016409)    374: Enqueue page-read
(00.016412)    374: Enqueue page-read
(00.016414)    374: Enqueue page-read
(00.016417)    374: Enqueue page-read
(00.016419)    374: Enqueue page-read
(00.016422)    374: Enqueue page-read
(00.016425)    374: Enqueue page-read
(00.016427)    374: Enqueue page-read
(00.016430)    374: Enqueue page-read
(00.016432)    374: Enqueue page-read
(00.016435)    374: Enqueue page-read
(00.016438)    374: Enqueue page-read
(00.016440)    374: Enqueue page-read
(00.016443)    374: Enqueue page-read
(00.016445)    374: Enqueue page-read
(00.016448)    374: Enqueue page-read
(00.016451)    374: Enqueue page-read
(00.016453)    374: Enqueue page-read
(00.016456)    374: Enqueue page-read
(00.016459)    374: Enqueue page-read
(00.016461)    374: Enqueue page-read
(00.016464)    374: Enqueue page-read
(00.016466)    374: Enqueue page-read
(00.016469)    374: Enqueue page-read
(00.016472)    374: Enqueue page-read
(00.016474)    374: Enqueue page-read
(00.016477)    374: Enqueue page-read
(00.016480)    374: Enqueue page-read
(00.016482)    374: Enqueue page-read
(00.016485)    374: Enqueue page-read
(00.016487)    374: Enqueue page-read
(00.016490)    374: Enqueue page-read
(00.016493)    374: Enqueue page-read
(00.016495)    374: Enqueue page-read
(00.016498)    374: Enqueue page-read
(00.016501)    374: Enqueue page-read
(00.016506)    374: Enqueue page-read
(00.016510)    374: Enqueue page-read
(00.016514)    374: Enqueue page-read
(00.016516)    374: Enqueue page-read
(00.016519)    374: Enqueue page-read
(00.016522)    374: Enqueue page-read
(00.016524)    374: Enqueue page-read
(00.016527)    374: Enqueue page-read
(00.016530)    374: Enqueue page-read
(00.016532)    374: Enqueue page-read
(00.016535)    374: Enqueue page-read
(00.016537)    374: Enqueue page-read
(00.016540)    374: Enqueue page-read
(00.016543)    374: Enqueue page-read
(00.016545)    374: Enqueue page-read
(00.016548)    374: Enqueue page-read
(00.016551)    374: Enqueue page-read
(00.016553)    374: Enqueue page-read
(00.016556)    374: Enqueue page-read
(00.016558)    374: Enqueue page-read
(00.016561)    374: Enqueue page-read
(00.016564)    374: Enqueue page-read
(00.016566)    374: Enqueue page-read
(00.016569)    374: Enqueue page-read
(00.016572)    374: Enqueue page-read
(00.016574)    374: Enqueue page-read
(00.016577)    374: Enqueue page-read
(00.016579)    374: Enqueue page-read
(00.016582)    374: Enqueue page-read
(00.016585)    374: Enqueue page-read
(00.016588)    374: Enqueue page-read
(00.016590)    374: Enqueue page-read
(00.016593)    374: Enqueue page-read
(00.016595)    374: Enqueue page-read
(00.016598)    374: Enqueue page-read
(00.016600)    374: Enqueue page-read
(00.016603)    374: Enqueue page-read
(00.016605)    374: Enqueue page-read
(00.016608)    374: Enqueue page-read
(00.016611)    374: Enqueue page-read
(00.016613)    374: Enqueue page-read
(00.016616)    374: Enqueue page-read
(00.016618)    374: Enqueue page-read
(00.016621)    374: Enqueue page-read
(00.016624)    374: Enqueue page-read
(00.016626)    374: Enqueue page-read
(00.016629)    374: Enqueue page-read
(00.016632)    374: Enqueue page-read
(00.016634)    374: Enqueue page-read
(00.016637)    374: Enqueue page-read
(00.016639)    374: Enqueue page-read
(00.016642)    374: Enqueue page-read
(00.016644)    374: Enqueue page-read
(00.016647)    374: Enqueue page-read
(00.016650)    374: Enqueue page-read
(00.016653)    374: Enqueue page-read
(00.016655)    374: Enqueue page-read
(00.016657)    374: Enqueue page-read
(00.016660)    374: Enqueue page-read
(00.016663)    374: Enqueue page-read
(00.016665)    374: Enqueue page-read
(00.016668)    374: Enqueue page-read
(00.016670)    374: Enqueue page-read
(00.016673)    374: Enqueue page-read
(00.016675)    374: Enqueue page-read
(00.016678)    374: Enqueue page-read
(00.016680)    374: Enqueue page-read
(00.016683)    374: Enqueue page-read
(00.016686)    374: Enqueue page-read
(00.016688)    374: Enqueue page-read
(00.016691)    374: Enqueue page-read
(00.016694)    374: Enqueue page-read
(00.016696)    374: Enqueue page-read
(00.016698)    374: Enqueue page-read
(00.016701)    374: Enqueue page-read
(00.016704)    374: Enqueue page-read
(00.016707)    374: Enqueue page-read
(00.016723)    374: nr_restored_pages: 1796
(00.016728)    374: nr_shared_pages:   0
(00.016731)    374: nr_dropped_pages:   0
(00.016734)    374: nr_lazy:           0
(00.016739)    374: Shrunk premap area to 0x7f390dd7b000(0)
(00.016742)    374: Restore on-core sigactions for 374
(00.016767)    374: Restoring children in alien sessions:
(00.016771)    374: Restoring children in our session:
(00.016779)    374: Restoring 374 to 374 pgid
(00.016787)    374: Restoring resources
(00.016812)    374: Opening fdinfo-s
(00.016816)    374: tty: open driver pts id 0x6 index 6 (master 0 sid 0 pgrp 0 inherit 1)
(00.016822)    374: Error (criu/tty.c:992): tty: Don't have tty to inherit session from, aborting
(00.016828)    374: Error (criu/files.c:1213): Unable to open fd=0 id=0x6
(00.016874) Error (criu/cr-restore.c:2536): Restoring FAILED.
(00.017012) Error (criu/cr-restore.c:1498): 374 killed by signal 9: Killed
Output of `criu --version`:

Version: 3.17.1
GitID: v3.17.1
Output of `criu check --all`:

# criu check --all
Error (criu/util.c:641): exited, status=3
Warn  (criu/kerndat.c:1117): Can't keep kdat cache on non-tempfs
Warn  (criu/cr-check.c:1231): clone3() with set_tid not supported
Error (criu/cr-check.c:1273): Time namespaces are not supported
Error (criu/cr-check.c:1283): IFLA_NEW_IFINDEX isn't supported
Warn  (criu/cr-check.c:1305): Pidfd store requires pidfd_getfd syscall which is not supported
Warn  (criu/cr-check.c:804): ptrace(PTRACE_GET_RSEQ_CONFIGURATION) isn't supported. C/R of processes which are using rseq() won't work.
Looks good but some kernel features are missing
which, depending on your process tree, may cause
dump or restore failure.

Additional environment details: This is happening inside a docker container running in privileged mode.

astro-stan avatar Feb 01 '23 13:02 astro-stan

Interesting. I think the Python bindings are not used very much. I had a quick look at the Go bindings and they do not seem to close the FD 0,1,2.

Do you think you could compare your test case with either the C, Go or Rust CRIU bindings to see if they behave differently.

I think the main problem is, that at least the C and Go bindings are actively being used. I do not know if the Python bindings are used a lot.

adrianreber avatar Feb 01 '23 13:02 adrianreber

Sorry, I do not have an easy way to test this with the other bindings (need to create a new container that has them).

But I am pretty sure they will work because:

  1. When I remove the code that closes FDs 0,1 and 2 the python bindigs work as well
  2. Restoring directly from the console using the CRIU CLI also works

astro-stan avatar Feb 01 '23 13:02 astro-stan

A friendly reminder that this issue had no activity for 30 days.

github-actions[bot] avatar Mar 04 '23 00:03 github-actions[bot]

@sdimovv are you able to dump the python process with success? I am using below code to dump the process but not sure how to pass opts.images_dir_fd option to criu.

Can you please share how you implemented it? Below is my code.

import os from pycriu.criu import * c=criu() f = os.open("dummy", os.O_DIRECTORY) c.opts.images_dir_fd = f c.use_binary("/home/ec2-user/criu/criu/criu/criu") c.dump()

prenit-wankhede avatar Jun 05 '24 20:06 prenit-wankhede