checkpoint-restore / criu

Checkpoint/Restore tool
criu.org
Other
2.9k stars 582 forks source link

runc checkpoint error #2024

Open futurist opened 1 year ago

futurist commented 1 year ago

Description

Run runc checkpoint nginx error

The nginx is the latest image from https://hub.docker.com/_/nginx

Steps to reproduce the issue:

  1. Save rootfs: docker export $(docker create docker.io/library/nginx:latest) --output="nginx.tar" && mkdir -p test/rootfs && tar xf nginx.tar -C test/rootfs

  2. Use the test/config.json as below:

    {
    "ociVersion": "1.0.2-dev",
    "process": {
        "terminal": false,
        "user": {
            "uid": 0,
            "gid": 0
        },
        "args": [
            "sh",
            "-c",
            "nginx -g 'daemon off;'"
        ],
        "env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "TERM=xterm"
        ],
        "cwd": "/",
        "capabilities": {
            "bounding": [
                "CAP_CHOWN",
                "CAP_DAC_OVERRIDE",
                "CAP_FSETID",
                "CAP_FOWNER",
                "CAP_MKNOD",
                "CAP_NET_RAW",
                "CAP_SETGID",
                "CAP_SETUID",
                "CAP_SETFCAP",
                "CAP_SETPCAP",
                "CAP_NET_BIND_SERVICE",
                "CAP_SYS_CHROOT",
                "CAP_KILL",
                "CAP_AUDIT_WRITE"
            ],
            "effective": [
                "CAP_CHOWN",
                "CAP_DAC_OVERRIDE",
                "CAP_FSETID",
                "CAP_FOWNER",
                "CAP_MKNOD",
                "CAP_NET_RAW",
                "CAP_SETGID",
                "CAP_SETUID",
                "CAP_SETFCAP",
                "CAP_SETPCAP",
                "CAP_NET_BIND_SERVICE",
                "CAP_SYS_CHROOT",
                "CAP_KILL",
                "CAP_AUDIT_WRITE"
            ],
            "permitted": [
                "CAP_CHOWN",
                "CAP_DAC_OVERRIDE",
                "CAP_FSETID",
                "CAP_FOWNER",
                "CAP_MKNOD",
                "CAP_NET_RAW",
                "CAP_SETGID",
                "CAP_SETUID",
                "CAP_SETFCAP",
                "CAP_SETPCAP",
                "CAP_NET_BIND_SERVICE",
                "CAP_SYS_CHROOT",
                "CAP_KILL",
                "CAP_AUDIT_WRITE"
            ]
        }
    },
    "root": {
        "path": "rootfs"
    },
    "hostname": "runc",
    "mounts": [
        {
            "destination": "/proc",
            "type": "proc",
            "source": "proc"
        },
        {
            "destination": "/dev",
            "type": "tmpfs",
            "source": "tmpfs",
            "options": [
                "nosuid",
                "strictatime",
                "mode=755",
                "size=65536k"
            ]
        },
        {
            "destination": "/dev/pts",
            "type": "devpts",
            "source": "devpts",
            "options": [
                "nosuid",
                "noexec",
                "newinstance",
                "ptmxmode=0666",
                "mode=0620",
                "gid=5"
            ]
        },
        {
            "destination": "/dev/shm",
            "type": "tmpfs",
            "source": "shm",
            "options": [
                "nosuid",
                "noexec",
                "nodev",
                "mode=1777",
                "size=65536k"
            ]
        },
        {
            "destination": "/dev/mqueue",
            "type": "mqueue",
            "source": "mqueue",
            "options": [
                "nosuid",
                "noexec",
                "nodev"
            ]
        },
        {
            "destination": "/sys",
            "type": "sysfs",
            "source": "sysfs",
            "options": [
                "nosuid",
                "noexec",
                "nodev",
                "ro"
            ]
        },
        {
            "destination": "/sys/fs/cgroup",
            "type": "cgroup",
            "source": "cgroup",
            "options": [
                "nosuid",
                "noexec",
                "nodev",
                "relatime",
                "ro"
            ]
        }
    ],
    "linux": {
        "resources": {
            "devices": [
                {
                    "allow": false,
                    "access": "rwm"
                }
            ]
        },
        "namespaces": [
            {
                "type": "pid"
            },
            {
                "type": "network"
            },
            {
                "type": "ipc"
            },
            {
                "type": "uts"
            },
            {
                "type": "mount"
            }
        ],
        "maskedPaths": [
            "/proc/acpi",
            "/proc/asound",
            "/proc/kcore",
            "/proc/keys",
            "/proc/latency_stats",
            "/proc/timer_list",
            "/proc/timer_stats",
            "/proc/sched_debug",
            "/sys/firmware",
            "/proc/scsi"
        ],
        "readonlyPaths": [
            "/proc/bus",
            "/proc/fs",
            "/proc/irq",
            "/proc/sys",
            "/proc/sysrq-trigger"
        ]
    }
    }
  3. Start the runc and checkpoint:

    runc run -d -b test/ nginx
    runc checkpoint nginx

Describe the results you received: runc checkpoint nginx error message:

ERRO[0000] container is not destroyed
ERRO[0000] criu failed: type NOTIFY errno 0
log file: /run/runc/nginx/criu.work/dump.log

Describe the results you expected:

runc checkpoint nginx should run without error.

CRIU logs and information:

CRIU full dump/restore logs: cat /run/runc/nginx/criu.work/dump.log

``` (00.000015) Version: 3.17 (gitid 18c6426) (00.000024) Running on n23-064-103 Linux 5.4.210.bsk.2-amd64 #5.4.210.bsk.2 SMP Debian 5.4.210.bsk.2 Mon Oct 17 03:53:18 UTC x86_64 (00.000026) Would overwrite RPC settings with values from /etc/criu/runc.conf (00.000030) Effective capability 40 missing (00.000043) Loaded kdat cache from /run/criu.kdat (00.000066) Hugetlb size 2 Mb is supported but cannot get dev's number (00.000076) Hugetlb size 1024 Mb is supported but cannot get dev's number (00.000286) ptrace(PTRACE_GET_RSEQ_CONFIGURATION) is not supported (00.000467) ======================================== (00.000468) Dumping processes (pid: 3946406) (00.000469) ======================================== (00.000472) rlimit: RLIMIT_NOFILE unlimited for self (00.000479) Running pre-dump scripts (00.000480) RPC (00.000549) irmap: Searching irmap cache in work dir (00.000555) No irmap-cache image (00.000556) irmap: Searching irmap cache in parent (00.000559) No parent images directory provided (00.000560) irmap: No irmap cache (00.000565) cpu: x86_family 6 x86_vendor_id GenuineIntel x86_model_id Intel(R) Xeon(R) Gold 5118 CPU @ 2.30GHz (00.000568) cpu: fpu: xfeatures_mask 0x2f5 xsave_size 2696 xsave_size_max 2696 xsaves_size 2568 (00.000571) cpu: fpu: x87 floating point registers xstate_offsets 0 / 0 xstate_sizes 160 / 160 (00.000573) cpu: fpu: AVX registers xstate_offsets 576 / 576 xstate_sizes 256 / 256 (00.000575) cpu: fpu: MPX CSR xstate_offsets 1024 / 832 xstate_sizes 64 / 64 (00.000576) cpu: fpu: AVX-512 opmask xstate_offsets 1088 / 896 xstate_sizes 64 / 64 (00.000577) cpu: fpu: AVX-512 Hi256 xstate_offsets 1152 / 960 xstate_sizes 512 / 512 (00.000578) cpu: fpu: AVX-512 ZMM_Hi256 xstate_offsets 1664 / 1472 xstate_sizes 1024 / 1024 (00.000579) cpu: fpu: Protection Keys User registers xstate_offsets 2688 / 2496 xstate_sizes 8 / 8 (00.000581) cpu: fpu:1 fxsr:1 xsave:1 xsaveopt:1 xsavec:1 xgetbv1:1 xsaves:1 (00.000679) cg-prop: Parsing controller "cpu" (00.000682) cg-prop: Strategy "replace" (00.000685) cg-prop: Property "cpu.shares" (00.000686) cg-prop: Property "cpu.cfs_period_us" (00.000688) cg-prop: Property "cpu.cfs_quota_us" (00.000689) cg-prop: Property "cpu.rt_period_us" (00.000689) cg-prop: Property "cpu.rt_runtime_us" (00.000690) cg-prop: Parsing controller "memory" (00.000691) cg-prop: Strategy "replace" (00.000692) cg-prop: Property "memory.limit_in_bytes" (00.000693) cg-prop: Property "memory.memsw.limit_in_bytes" (00.000694) cg-prop: Property "memory.swappiness" (00.000695) cg-prop: Property "memory.soft_limit_in_bytes" (00.000696) cg-prop: Property "memory.move_charge_at_immigrate" (00.000697) cg-prop: Property "memory.oom_control" (00.000698) cg-prop: Property "memory.use_hierarchy" (00.000699) cg-prop: Property "memory.kmem.limit_in_bytes" (00.000700) cg-prop: Property "memory.kmem.tcp.limit_in_bytes" (00.000700) cg-prop: Parsing controller "cpuset" (00.000702) cg-prop: Strategy "replace" (00.000703) cg-prop: Property "cpuset.cpus" (00.000704) cg-prop: Property "cpuset.mems" (00.000704) cg-prop: Property "cpuset.memory_migrate" (00.000705) cg-prop: Property "cpuset.cpu_exclusive" (00.000706) cg-prop: Property "cpuset.mem_exclusive" (00.000707) cg-prop: Property "cpuset.mem_hardwall" (00.000708) cg-prop: Property "cpuset.memory_spread_page" (00.000709) cg-prop: Property "cpuset.memory_spread_slab" (00.000710) cg-prop: Property "cpuset.sched_load_balance" (00.000711) cg-prop: Property "cpuset.sched_relax_domain_level" (00.000711) cg-prop: Parsing controller "blkio" (00.000714) cg-prop: Strategy "replace" (00.000715) cg-prop: Property "blkio.weight" (00.000716) cg-prop: Parsing controller "freezer" (00.000717) cg-prop: Strategy "replace" (00.000718) cg-prop: Parsing controller "perf_event" (00.000719) cg-prop: Strategy "replace" (00.000720) cg-prop: Parsing controller "net_cls" (00.000721) cg-prop: Strategy "replace" (00.000726) cg-prop: Property "net_cls.classid" (00.000727) cg-prop: Parsing controller "net_prio" (00.000728) cg-prop: Strategy "replace" (00.000729) cg-prop: Property "net_prio.ifpriomap" (00.000730) cg-prop: Parsing controller "pids" (00.000731) cg-prop: Strategy "replace" (00.000731) cg-prop: Property "pids.max" (00.000732) cg-prop: Parsing controller "devices" (00.000733) cg-prop: Strategy "replace" (00.000734) cg-prop: Property "devices.list" (00.000761) Preparing image inventory (version 1) (00.000778) Add pid ns 1 pid 3986691 (00.000782) Add net ns 2 pid 3986691 (00.000787) Add ipc ns 3 pid 3986691 (00.000792) Add uts ns 4 pid 3986691 (00.000795) Add time ns 5 pid 3986691 (00.000799) Add mnt ns 6 pid 3986691 (00.000804) Add user ns 7 pid 3986691 (00.000809) Add cgroup ns 8 pid 3986691 (00.000810) cg: Dumping cgroups for 3986691 (00.000826) cg: `- New css ID 1 (00.000827) cg: `- [] -> [/] [0] (00.000828) cg: `- [blkio] -> [/user.slice/user-0.slice/session-1845.scope] [0] (00.000829) cg: `- [cpu,cpuacct] -> [/user.slice/user-0.slice/session-1845.scope] [0] (00.000830) cg: `- [cpuset] -> [/] [0] (00.000831) cg: `- [devices] -> [/user.slice/user-0.slice/session-1845.scope] [0] (00.000832) cg: `- [freezer] -> [/] [0] (00.000833) cg: `- [hugetlb] -> [/] [0] (00.000834) cg: `- [memory] -> [/user.slice/user-0.slice/session-1845.scope] [0] (00.000834) cg: `- [name=systemd] -> [/user.slice/user-0.slice/session-1845.scope] [0] (00.000835) cg: `- [net_cls,net_prio] -> [/] [0] (00.000836) cg: `- [perf_event] -> [/] [0] (00.000837) cg: `- [pids] -> [/user.slice/user-0.slice/session-1845.scope] [0] (00.000838) cg: Set 1 is criu one (00.000851) Detected cgroup V1 freezer (00.000852) freezing processes: 100000 attempts with 100 ms steps (00.000860) freezer.state=THAWED (00.001028) freezer.state=FREEZING (00.101093) freezer.state=FROZEN (00.101097) freezing processes: 1 attempts done (00.101135) SEIZE 3946406: success (00.101138) SEIZE 3946414: success (00.101141) SEIZE 3946415: success (00.101143) SEIZE 3946416: success (00.101145) SEIZE 3946417: success (00.101147) SEIZE 3946418: success (00.101149) SEIZE 3946419: success (00.101151) SEIZE 3946420: success (00.101153) SEIZE 3946421: success (00.101156) SEIZE 3946422: success (00.101158) SEIZE 3946423: success (00.101160) SEIZE 3946424: success (00.101162) SEIZE 3946425: success (00.101164) SEIZE 3946426: success (00.101166) SEIZE 3946427: success (00.101169) SEIZE 3946428: success (00.101171) SEIZE 3946429: success (00.101173) SEIZE 3946430: success (00.101175) SEIZE 3946431: success (00.101177) SEIZE 3946432: success (00.101180) SEIZE 3946433: success (00.101182) SEIZE 3946434: success (00.101184) SEIZE 3946435: success (00.101186) SEIZE 3946436: success (00.101188) SEIZE 3946437: success (00.101191) SEIZE 3946438: success (00.101193) SEIZE 3946439: success (00.101195) SEIZE 3946440: success (00.101197) SEIZE 3946441: success (00.101199) SEIZE 3946442: success (00.101201) SEIZE 3946443: success (00.101203) SEIZE 3946444: success (00.101206) SEIZE 3946445: success (00.101208) SEIZE 3946446: success (00.101210) SEIZE 3946447: success (00.101212) SEIZE 3946448: success (00.101214) SEIZE 3946449: success (00.101217) SEIZE 3946450: success (00.101225) SEIZE 3946451: success (00.101227) SEIZE 3946452: success (00.101229) SEIZE 3946453: success (00.101232) SEIZE 3946454: success (00.101234) SEIZE 3946455: success (00.101236) SEIZE 3946456: success (00.101238) SEIZE 3946457: success (00.101240) SEIZE 3946458: success (00.101243) SEIZE 3946459: success (00.101245) SEIZE 3946460: success (00.101247) SEIZE 3946461: success (00.101249) SEIZE 3946462: success (00.101459) Seized task 3946406, state 1 (00.101461) seccomp: Collected tid_real 3946406 mode 0 (00.101470) Collected (0 attempts, 0 in_progress) (00.101481) Seized task 3946414, state 0 (00.101516) seccomp: Collected tid_real 3946414 mode 0 (00.101522) Collected (0 attempts, 0 in_progress) (00.101546) Seized task 3946415, state 0 (00.101580) seccomp: Collected tid_real 3946415 mode 0 (00.101588) Collected (0 attempts, 0 in_progress) (00.101596) Collected (0 attempts, 0 in_progress) (00.101601) Collected 3946415 in 1 state (00.101602) Seized task 3946416, state 0 (00.101634) seccomp: Collected tid_real 3946416 mode 0 (00.101642) Collected (0 attempts, 0 in_progress) (00.101649) Collected (0 attempts, 0 in_progress) (00.101652) Collected 3946416 in 1 state (00.101653) Seized task 3946417, state 0 (00.101686) seccomp: Collected tid_real 3946417 mode 0 (00.101693) Collected (0 attempts, 0 in_progress) (00.101700) Collected (0 attempts, 0 in_progress) (00.101703) Collected 3946417 in 1 state (00.101704) Seized task 3946418, state 0 (00.101736) seccomp: Collected tid_real 3946418 mode 0 (00.101743) Collected (0 attempts, 0 in_progress) (00.101752) Collected (0 attempts, 0 in_progress) (00.101756) Collected 3946418 in 1 state (00.101756) Seized task 3946419, state 0 (00.101788) seccomp: Collected tid_real 3946419 mode 0 (00.101795) Collected (0 attempts, 0 in_progress) (00.101802) Collected (0 attempts, 0 in_progress) (00.101806) Collected 3946419 in 1 state (00.101807) Seized task 3946420, state 0 (00.101839) seccomp: Collected tid_real 3946420 mode 0 (00.101846) Collected (0 attempts, 0 in_progress) (00.101853) Collected (0 attempts, 0 in_progress) (00.101856) Collected 3946420 in 1 state (00.101857) Seized task 3946421, state 0 (00.101888) seccomp: Collected tid_real 3946421 mode 0 (00.101895) Collected (0 attempts, 0 in_progress) (00.101902) Collected (0 attempts, 0 in_progress) (00.101903) Collected 3946421 in 1 state (00.101904) Seized task 3946422, state 0 (00.101934) seccomp: Collected tid_real 3946422 mode 0 (00.101947) Collected (0 attempts, 0 in_progress) (00.101954) Collected (0 attempts, 0 in_progress) (00.101956) Collected 3946422 in 1 state (00.101957) Seized task 3946423, state 0 (00.101987) seccomp: Collected tid_real 3946423 mode 0 (00.101995) Collected (0 attempts, 0 in_progress) (00.102002) Collected (0 attempts, 0 in_progress) (00.102004) Collected 3946423 in 1 state (00.102005) Seized task 3946424, state 0 (00.102036) seccomp: Collected tid_real 3946424 mode 0 (00.102043) Collected (0 attempts, 0 in_progress) (00.102050) Collected (0 attempts, 0 in_progress) (00.102053) Collected 3946424 in 1 state (00.102054) Seized task 3946425, state 0 (00.102085) seccomp: Collected tid_real 3946425 mode 0 (00.102091) Collected (0 attempts, 0 in_progress) (00.102099) Collected (0 attempts, 0 in_progress) (00.102100) Collected 3946425 in 1 state (00.102101) Seized task 3946426, state 0 (00.102131) seccomp: Collected tid_real 3946426 mode 0 (00.102139) Collected (0 attempts, 0 in_progress) (00.102146) Collected (0 attempts, 0 in_progress) (00.102148) Collected 3946426 in 1 state (00.102149) Seized task 3946427, state 0 (00.102180) seccomp: Collected tid_real 3946427 mode 0 (00.102187) Collected (0 attempts, 0 in_progress) (00.102194) Collected (0 attempts, 0 in_progress) (00.102197) Collected 3946427 in 1 state (00.102198) Seized task 3946428, state 0 (00.102234) seccomp: Collected tid_real 3946428 mode 0 (00.102242) Collected (0 attempts, 0 in_progress) (00.102249) Collected (0 attempts, 0 in_progress) (00.102251) Collected 3946428 in 1 state (00.102252) Seized task 3946429, state 0 (00.102283) seccomp: Collected tid_real 3946429 mode 0 (00.102291) Collected (0 attempts, 0 in_progress) (00.102298) Collected (0 attempts, 0 in_progress) (00.102300) Collected 3946429 in 1 state (00.102301) Seized task 3946430, state 0 (00.102332) seccomp: Collected tid_real 3946430 mode 0 (00.102339) Collected (0 attempts, 0 in_progress) (00.102347) Collected (0 attempts, 0 in_progress) (00.102350) Collected 3946430 in 1 state (00.102351) Seized task 3946431, state 0 (00.102381) seccomp: Collected tid_real 3946431 mode 0 (00.102389) Collected (0 attempts, 0 in_progress) (00.102396) Collected (0 attempts, 0 in_progress) (00.102398) Collected 3946431 in 1 state (00.102399) Seized task 3946432, state 0 (00.102429) seccomp: Collected tid_real 3946432 mode 0 (00.102436) Collected (0 attempts, 0 in_progress) (00.102445) Collected (0 attempts, 0 in_progress) (00.102447) Collected 3946432 in 1 state (00.102448) Seized task 3946433, state 0 (00.102478) seccomp: Collected tid_real 3946433 mode 0 (00.102487) Collected (0 attempts, 0 in_progress) (00.102495) Collected (0 attempts, 0 in_progress) (00.102498) Collected 3946433 in 1 state (00.102499) Seized task 3946434, state 0 (00.102530) seccomp: Collected tid_real 3946434 mode 0 (00.102537) Collected (0 attempts, 0 in_progress) (00.102544) Collected (0 attempts, 0 in_progress) (00.102546) Collected 3946434 in 1 state (00.102547) Seized task 3946435, state 0 (00.102577) seccomp: Collected tid_real 3946435 mode 0 (00.102590) Collected (0 attempts, 0 in_progress) (00.102597) Collected (0 attempts, 0 in_progress) (00.102599) Collected 3946435 in 1 state (00.102600) Seized task 3946436, state 0 (00.102630) seccomp: Collected tid_real 3946436 mode 0 (00.102637) Collected (0 attempts, 0 in_progress) (00.102646) Collected (0 attempts, 0 in_progress) (00.102648) Collected 3946436 in 1 state (00.102650) Seized task 3946437, state 0 (00.102689) seccomp: Collected tid_real 3946437 mode 0 (00.102698) Collected (0 attempts, 0 in_progress) (00.102706) Collected (0 attempts, 0 in_progress) (00.102709) Collected 3946437 in 1 state (00.102710) Seized task 3946438, state 0 (00.102741) seccomp: Collected tid_real 3946438 mode 0 (00.102749) Collected (0 attempts, 0 in_progress) (00.102756) Collected (0 attempts, 0 in_progress) (00.102757) Collected 3946438 in 1 state (00.102758) Seized task 3946439, state 0 (00.102788) seccomp: Collected tid_real 3946439 mode 0 (00.102795) Collected (0 attempts, 0 in_progress) (00.102802) Collected (0 attempts, 0 in_progress) (00.102804) Collected 3946439 in 1 state (00.102805) Seized task 3946440, state 0 (00.102835) seccomp: Collected tid_real 3946440 mode 0 (00.102843) Collected (0 attempts, 0 in_progress) (00.102850) Collected (0 attempts, 0 in_progress) (00.102854) Collected 3946440 in 1 state (00.102855) Seized task 3946441, state 0 (00.102886) seccomp: Collected tid_real 3946441 mode 0 (00.102894) Collected (0 attempts, 0 in_progress) (00.102903) Collected (0 attempts, 0 in_progress) (00.102904) Collected 3946441 in 1 state (00.102905) Seized task 3946442, state 0 (00.102936) seccomp: Collected tid_real 3946442 mode 0 (00.102943) Collected (0 attempts, 0 in_progress) (00.102951) Collected (0 attempts, 0 in_progress) (00.102952) Collected 3946442 in 1 state (00.102953) Seized task 3946443, state 0 (00.102984) seccomp: Collected tid_real 3946443 mode 0 (00.102991) Collected (0 attempts, 0 in_progress) (00.102998) Collected (0 attempts, 0 in_progress) (00.103001) Collected 3946443 in 1 state (00.103003) Seized task 3946444, state 0 (00.103033) seccomp: Collected tid_real 3946444 mode 0 (00.103040) Collected (0 attempts, 0 in_progress) (00.103048) Collected (0 attempts, 0 in_progress) (00.103049) Collected 3946444 in 1 state (00.103050) Seized task 3946445, state 0 (00.103081) seccomp: Collected tid_real 3946445 mode 0 (00.103089) Collected (0 attempts, 0 in_progress) (00.103096) Collected (0 attempts, 0 in_progress) (00.103098) Collected 3946445 in 1 state (00.103099) Seized task 3946446, state 0 (00.103129) seccomp: Collected tid_real 3946446 mode 0 (00.103138) Collected (0 attempts, 0 in_progress) (00.103146) Collected (0 attempts, 0 in_progress) (00.103147) Collected 3946446 in 1 state (00.103148) Seized task 3946447, state 0 (00.103179) seccomp: Collected tid_real 3946447 mode 0 (00.103187) Collected (0 attempts, 0 in_progress) (00.103194) Collected (0 attempts, 0 in_progress) (00.103196) Collected 3946447 in 1 state (00.103197) Seized task 3946448, state 0 (00.103232) seccomp: Collected tid_real 3946448 mode 0 (00.103239) Collected (0 attempts, 0 in_progress) (00.103246) Collected (0 attempts, 0 in_progress) (00.103248) Collected 3946448 in 1 state (00.103249) Seized task 3946449, state 0 (00.103280) seccomp: Collected tid_real 3946449 mode 0 (00.103288) Collected (0 attempts, 0 in_progress) (00.103295) Collected (0 attempts, 0 in_progress) (00.103296) Collected 3946449 in 1 state (00.103299) Seized task 3946450, state 0 (00.103330) seccomp: Collected tid_real 3946450 mode 0 (00.103337) Collected (0 attempts, 0 in_progress) (00.103345) Collected (0 attempts, 0 in_progress) (00.103349) Collected 3946450 in 1 state (00.103350) Seized task 3946451, state 0 (00.103380) seccomp: Collected tid_real 3946451 mode 0 (00.103388) Collected (0 attempts, 0 in_progress) (00.103395) Collected (0 attempts, 0 in_progress) (00.103396) Collected 3946451 in 1 state (00.103397) Seized task 3946452, state 0 (00.103427) seccomp: Collected tid_real 3946452 mode 0 (00.103435) Collected (0 attempts, 0 in_progress) (00.103442) Collected (0 attempts, 0 in_progress) (00.103443) Collected 3946452 in 1 state (00.103445) Seized task 3946453, state 0 (00.103475) seccomp: Collected tid_real 3946453 mode 0 (00.103483) Collected (0 attempts, 0 in_progress) (00.103490) Collected (0 attempts, 0 in_progress) (00.103493) Collected 3946453 in 1 state (00.103494) Seized task 3946454, state 0 (00.103526) seccomp: Collected tid_real 3946454 mode 0 (00.103533) Collected (0 attempts, 0 in_progress) (00.103541) Collected (0 attempts, 0 in_progress) (00.103543) Collected 3946454 in 1 state (00.103544) Seized task 3946455, state 0 (00.103574) seccomp: Collected tid_real 3946455 mode 0 (00.103587) Collected (0 attempts, 0 in_progress) (00.103594) Collected (0 attempts, 0 in_progress) (00.103596) Collected 3946455 in 1 state (00.103597) Seized task 3946456, state 0 (00.103627) seccomp: Collected tid_real 3946456 mode 0 (00.103635) Collected (0 attempts, 0 in_progress) (00.103643) Collected (0 attempts, 0 in_progress) (00.103646) Collected 3946456 in 1 state (00.103648) Seized task 3946457, state 0 (00.103678) seccomp: Collected tid_real 3946457 mode 0 (00.103685) Collected (0 attempts, 0 in_progress) (00.103693) Collected (0 attempts, 0 in_progress) (00.103694) Collected 3946457 in 1 state (00.103695) Seized task 3946458, state 0 (00.103726) seccomp: Collected tid_real 3946458 mode 0 (00.103734) Collected (0 attempts, 0 in_progress) (00.103741) Collected (0 attempts, 0 in_progress) (00.103742) Collected 3946458 in 1 state (00.103743) Seized task 3946459, state 0 (00.103775) seccomp: Collected tid_real 3946459 mode 0 (00.103783) Collected (0 attempts, 0 in_progress) (00.103790) Collected (0 attempts, 0 in_progress) (00.103791) Collected 3946459 in 1 state (00.103793) Seized task 3946460, state 0 (00.103823) seccomp: Collected tid_real 3946460 mode 0 (00.103830) Collected (0 attempts, 0 in_progress) (00.103838) Collected (0 attempts, 0 in_progress) (00.103842) Collected 3946460 in 1 state (00.103843) Seized task 3946461, state 0 (00.103873) seccomp: Collected tid_real 3946461 mode 0 (00.103881) Collected (0 attempts, 0 in_progress) (00.103888) Collected (0 attempts, 0 in_progress) (00.103890) Collected 3946461 in 1 state (00.103891) Seized task 3946462, state 0 (00.103922) seccomp: Collected tid_real 3946462 mode 0 (00.103930) Collected (0 attempts, 0 in_progress) (00.103938) Collected (0 attempts, 0 in_progress) (00.103939) Collected 3946462 in 1 state (00.103966) Collected (-1 attempts, 0 in_progress) (00.103969) Collected 3946414 in 1 state (00.103982) Collected (-1 attempts, 0 in_progress) (00.103984) Collected 3946406 in 1 state (00.103998) Will take pid namespace in the image (00.104000) Add pid ns 9 pid 3946406 (00.104005) Will take net namespace in the image (00.104006) Add net ns 10 pid 3946406 (00.104010) Will take ipc namespace in the image (00.104011) Add ipc ns 11 pid 3946406 (00.104015) Will take uts namespace in the image (00.104016) Add uts ns 12 pid 3946406 (00.104024) Will take mnt namespace in the image (00.104025) Add mnt ns 13 pid 3946406 (00.105517) Lock network (00.105519) Running network-lock scripts (00.105520) RPC iptables-restore: invalid option -- 'w' ip6tables-restore: invalid option -- 'w' (00.108361) No parent images directory provided (00.108373) ======================================== (00.108374) Dumping task (pid: 3946406) (00.108375) ======================================== (00.108376) Obtaining task stat ... (00.108398) (00.108400) Collecting mappings (pid: 3946406) (00.108401) ---------------------------------------- (00.108448) Found regular file mapping, OK (00.108485) Error (criu/files-reg.c:1717): Can't lookup mount=11185 for fd=-3 path=/bin/dash (00.108498) vma 5555b7ee9000 borrows vfi from previous 5555b7ee5000 (00.108505) vma 5555b7efc000 borrows vfi from previous 5555b7ee9000 (00.108510) vma 5555b7f02000 borrows vfi from previous 5555b7efc000 (00.108516) vma 5555b7f04000 borrows vfi from previous 5555b7f02000 (00.108586) Found regular file mapping, OK (00.108598) Error (criu/files-reg.c:1717): Can't lookup mount=11185 for fd=-3 path=/lib/x86_64-linux-gnu/libc-2.31.so (00.108605) vma 7f441710c000 borrows vfi from previous 7f44170e7000 (00.108610) vma 7f4417257000 borrows vfi from previous 7f441710c000 (00.108616) vma 7f44172a1000 borrows vfi from previous 7f4417257000 (00.108621) vma 7f44172a2000 borrows vfi from previous 7f44172a1000 (00.108644) vma 7f44172a5000 borrows vfi from previous 7f44172a2000 (00.108660) Found regular file mapping, OK (00.108670) Error (criu/files-reg.c:1717): Can't lookup mount=11185 for fd=-3 path=/lib/x86_64-linux-gnu/ld-2.31.so (00.108676) vma 7f44172b2000 borrows vfi from previous 7f44172b1000 (00.108682) vma 7f44172d2000 borrows vfi from previous 7f44172b2000 (00.108698) vma 7f44172db000 borrows vfi from previous 7f44172d2000 (00.108704) vma 7f44172dc000 borrows vfi from previous 7f44172db000 (00.108731) Collected, longest area occupies 331 pages (00.108732) 0x5555b7ee5000-0x5555b7ee9000 (16K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0 reg fp shmid: 0x1 (00.108735) 0x5555b7ee9000-0x5555b7efc000 (76K) prot 0x5 flags 0x2 fdflags 0 st 0x41 off 0x4000 reg fp shmid: 0x1 (00.108736) 0x5555b7efc000-0x5555b7f02000 (24K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0x17000 reg fp shmid: 0x1 (00.108737) 0x5555b7f02000-0x5555b7f04000 (8K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0x1c000 reg fp shmid: 0x1 (00.108739) 0x5555b7f04000-0x5555b7f05000 (4K) prot 0x3 flags 0x2 fdflags 0 st 0x41 off 0x1e000 reg fp shmid: 0x1 (00.108740) 0x5555b7f05000-0x5555b7f07000 (8K) prot 0x3 flags 0x22 fdflags 0 st 0x201 off 0 reg ap shmid: 0 (00.108741) 0x5555b93d2000-0x5555b93f3000 (132K) prot 0x3 flags 0x22 fdflags 0 st 0x221 off 0 reg heap ap shmid: 0 (00.108743) 0x7f44170e7000-0x7f441710c000 (148K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0 reg fp shmid: 0x2 (00.108744) 0x7f441710c000-0x7f4417257000 (1324K) prot 0x5 flags 0x2 fdflags 0 st 0x41 off 0x25000 reg fp shmid: 0x2 (00.108745) 0x7f4417257000-0x7f44172a1000 (296K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0x170000 reg fp shmid: 0x2 (00.108746) 0x7f44172a1000-0x7f44172a2000 (4K) prot 0 flags 0x2 fdflags 0 st 0x41 off 0x1ba000 reg fp shmid: 0x2 (00.108748) 0x7f44172a2000-0x7f44172a5000 (12K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0x1ba000 reg fp shmid: 0x2 (00.108749) 0x7f44172a5000-0x7f44172a8000 (12K) prot 0x3 flags 0x2 fdflags 0 st 0x41 off 0x1bd000 reg fp shmid: 0x2 (00.108750) 0x7f44172a8000-0x7f44172ae000 (24K) prot 0x3 flags 0x22 fdflags 0 st 0x201 off 0 reg ap shmid: 0 (00.108751) 0x7f44172b1000-0x7f44172b2000 (4K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0 reg fp shmid: 0x3 (00.108752) 0x7f44172b2000-0x7f44172d2000 (128K) prot 0x5 flags 0x2 fdflags 0 st 0x41 off 0x1000 reg fp shmid: 0x3 (00.108753) 0x7f44172d2000-0x7f44172da000 (32K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0x21000 reg fp shmid: 0x3 (00.108754) 0x7f44172db000-0x7f44172dc000 (4K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0x29000 reg fp shmid: 0x3 (00.108756) 0x7f44172dc000-0x7f44172dd000 (4K) prot 0x3 flags 0x2 fdflags 0 st 0x41 off 0x2a000 reg fp shmid: 0x3 (00.108757) 0x7f44172dd000-0x7f44172de000 (4K) prot 0x3 flags 0x22 fdflags 0 st 0x201 off 0 reg ap shmid: 0 (00.108758) 0x7ffd0f0a4000-0x7ffd0f0c5000 (132K) prot 0x3 flags 0x122 fdflags 0 st 0x201 off 0 reg ap shmid: 0 (00.108759) 0x7ffd0f0fa000-0x7ffd0f0fd000 (12K) prot 0x1 flags 0x22 fdflags 0 st 0x1201 off 0 reg vvar ap shmid: 0 (00.108760) 0x7ffd0f0fd000-0x7ffd0f0fe000 (4K) prot 0x5 flags 0x22 fdflags 0 st 0x209 off 0 reg vdso ap shmid: 0 (00.108764) ---------------------------------------- (00.108765) (00.108765) Collecting fds (pid: 3946406) (00.108766) ---------------------------------------- (00.108777) Found 3 file descriptors (00.108778) ---------------------------------------- (00.108784) Dump private signals of 3946406 (00.108789) Dump shared signals of 3946406 (00.108796) Parasite syscall_ip at 0x5555b7ee9000 (00.108938) Set up parasite blob using memfd (00.108967) Putting parasite blob into 0x7fa0a00f3000->0x7f44170d8000 (00.109035) Dumping general registers for 3946406 in native mode (00.109036) Dumping GP/FPU registers for 3946406 (00.109049) x86: xsave runtime structure (00.109050) x86: ----------------------- (00.109051) x86: cwd:0 swd:0 twd:0 fop:0 mxcsr:0x1f80 mxcsr_mask:0xffff (00.109052) x86: magic1:0x46505853 extended_size:2700 xstate_bv:0x2f7 xstate_size:2696 (00.109053) x86: xstate_bv: 0x2f7 (00.109054) x86: ----------------------- (00.109055) Putting tsock into pid 3946406 (00.109058) Error (compel/src/lib/infect.c:456): Unable to get name for a socket: Socket operation on non-socket (00.109112) Error (criu/cr-dump.c:1570): Can't infect (pid: 3946406) with parasite (00.109174) Unlock network (00.109176) Running network-unlock scripts (00.109177) RPC iptables-restore: invalid option -- 'w' ip6tables-restore: invalid option -- 'w' (00.111748) Unfreezing tasks into 1 (00.111755) Unseizing 3946406 into 1 (00.111761) Unseizing 3946414 into 1 (00.111766) Unseizing 3946415 into 1 (00.111771) Unseizing 3946416 into 1 (00.111775) Unseizing 3946417 into 1 (00.111780) Unseizing 3946418 into 1 (00.111785) Unseizing 3946419 into 1 (00.111789) Unseizing 3946420 into 1 (00.111795) Unseizing 3946421 into 1 (00.111800) Unseizing 3946422 into 1 (00.111804) Unseizing 3946423 into 1 (00.111811) Unseizing 3946424 into 1 (00.111815) Unseizing 3946425 into 1 (00.111819) Unseizing 3946426 into 1 (00.111823) Unseizing 3946427 into 1 (00.111829) Unseizing 3946428 into 1 (00.111833) Unseizing 3946429 into 1 (00.111838) Unseizing 3946430 into 1 (00.111841) Unseizing 3946431 into 1 (00.111845) Unseizing 3946432 into 1 (00.111849) Unseizing 3946433 into 1 (00.111854) Unseizing 3946434 into 1 (00.111859) Unseizing 3946435 into 1 (00.111863) Unseizing 3946436 into 1 (00.111866) Unseizing 3946437 into 1 (00.111869) Unseizing 3946438 into 1 (00.111872) Unseizing 3946439 into 1 (00.111875) Unseizing 3946440 into 1 (00.111879) Unseizing 3946441 into 1 (00.111882) Unseizing 3946442 into 1 (00.111886) Unseizing 3946443 into 1 (00.111889) Unseizing 3946444 into 1 (00.111894) Unseizing 3946445 into 1 (00.111898) Unseizing 3946446 into 1 (00.111902) Unseizing 3946447 into 1 (00.111906) Unseizing 3946448 into 1 (00.111910) Unseizing 3946449 into 1 (00.111913) Unseizing 3946450 into 1 (00.111917) Unseizing 3946451 into 1 (00.111921) Unseizing 3946452 into 1 (00.111926) Unseizing 3946453 into 1 (00.111930) Unseizing 3946454 into 1 (00.111933) Unseizing 3946455 into 1 (00.111935) Unseizing 3946456 into 1 (00.111940) Unseizing 3946457 into 1 (00.111944) Unseizing 3946458 into 1 (00.111948) Unseizing 3946459 into 1 (00.111952) Unseizing 3946460 into 1 (00.111957) Unseizing 3946461 into 1 (00.111961) Unseizing 3946462 into 1 (00.112015) Error (criu/cr-dump.c:2059): Dumping FAILED. ```

Output of `criu --version`:

``` Version: 3.17 GitID: 18c6426 ```

Output of `criu check --all`:

``` Warn (criu/cr-check.c:1244): clone3() with set_tid not supported Error (criu/cr-check.c:1286): Time namespaces are not supported Error (criu/cr-check.c:1296): IFLA_NEW_IFINDEX isn't supported Warn (criu/cr-check.c:1318): Pidfd store requires pidfd_getfd syscall which is not supported Warn (criu/cr-check.c:1347): Nftables based locking requires libnftables and set concatenations support Warn (criu/cr-check.c:813): 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:

OS: Debian9 Kernel: Linux n23-064-103 5.4.210.bsk.2-amd64 #5.4.210.bsk.2 SMP Debian 5.4.210.bsk.2 Mon Oct 17 03:53:18 UTC x86_64 GNU/Linux iptables --version: iptables v1.6.0

adrianreber commented 1 year ago

I have seen distributions which restrict ptrace access. Can you check what you have in /proc/sys/kernel/yama/ptrace_scope

I have:

$ cat /proc/sys/kernel/yama/ptrace_scope
0

If there is something else try to write a 0 to it and please retry.

futurist commented 1 year ago

@adrianreber I've tried cat /proc/sys/kernel/yama/ptrace_scope and the result is 0. Anything else can be tried to debug this issue?

adrianreber commented 1 year ago

Do you have apparmor or selinux enabled?

adrianreber commented 1 year ago

What kind of system is that? Bare metal? VM?

Just saw some additional unusual error messages:

(00.108485) Error (criu/files-reg.c:1717): Can't lookup mount=11185 for fd=-3 path=/bin/dash

What kind of file system do you have?

futurist commented 1 year ago

What kind of system is that? Bare metal? VM?

Just saw some additional unusual error messages:

(00.108485) Error (criu/files-reg.c:1717): Can't lookup mount=11185 for fd=-3 path=/bin/dash

What kind of file system do you have?

It's bare metal

rst0git commented 1 year ago

runc run -d -b test/ nginx runc checkpoint nginx

There is a known issue for checkpointing with runc when --detach / -d is used:

@futurist Could you try to start checkpoint the container with the following commands?

cd test
runc run nginx

Then in another terminal:

mkdir -p /tmp/test/
runc checkpoint --image-path /tmp/test/ --work-path /tmp/test/ nginx
futurist commented 1 year ago

Do you have apparmor or selinux enabled?

No

futurist commented 1 year ago

runc run -d -b test/ nginx runc checkpoint nginx

There is a known issue for checkpointing with runc when --detach / -d is used:

@futurist Could you try to start checkpoint the container with the following commands?

cd test
runc run nginx

Then in another terminal:

mkdir -p /tmp/test/
runc checkpoint --image-path /tmp/test/ --work-path /tmp/test/ nginx

followed the steps, and the result:

ERRO[0000] container is not destroyed
ERRO[0000] criu failed: type NOTIFY errno 0
log file: /tmp/test/dump.log
cat /tmp/test/dump.log:

``` (00.000043) Version: 3.17 (gitid 18c6426) (00.000056) Running on n23-064-103 Linux 5.4.210.bsk.2-amd64 #5.4.210.bsk.2 SMP Debian 5.4.210.bsk.2 Mon Oct 17 03:53:18 UTC x86_64 (00.000058) Would overwrite RPC settings with values from /etc/criu/runc.conf (00.000062) Effective capability 40 missing (00.000076) Loaded kdat cache from /run/criu.kdat (00.000101) Hugetlb size 2 Mb is supported but cannot get dev's number (00.000113) Hugetlb size 1024 Mb is supported but cannot get dev's number (00.000324) ptrace(PTRACE_GET_RSEQ_CONFIGURATION) is not supported (00.000506) ======================================== (00.000508) Dumping processes (pid: 1820007) (00.000510) ======================================== (00.000513) rlimit: RLIMIT_NOFILE unlimited for self (00.000522) Running pre-dump scripts (00.000523) RPC (00.000599) irmap: Searching irmap cache in work dir (00.000607) No irmap-cache image (00.000609) irmap: Searching irmap cache in parent (00.000613) No parent images directory provided (00.000614) irmap: No irmap cache (00.000621) cpu: x86_family 6 x86_vendor_id GenuineIntel x86_model_id Intel(R) Xeon(R) Gold 5118 CPU @ 2.30GHz (00.000624) cpu: fpu: xfeatures_mask 0x2f5 xsave_size 2696 xsave_size_max 2696 xsaves_size 2568 (00.000628) cpu: fpu: x87 floating point registers xstate_offsets 0 / 0 xstate_sizes 160 / 160 (00.000631) cpu: fpu: AVX registers xstate_offsets 576 / 576 xstate_sizes 256 / 256 (00.000632) cpu: fpu: MPX CSR xstate_offsets 1024 / 832 xstate_sizes 64 / 64 (00.000634) cpu: fpu: AVX-512 opmask xstate_offsets 1088 / 896 xstate_sizes 64 / 64 (00.000636) cpu: fpu: AVX-512 Hi256 xstate_offsets 1152 / 960 xstate_sizes 512 / 512 (00.000638) cpu: fpu: AVX-512 ZMM_Hi256 xstate_offsets 1664 / 1472 xstate_sizes 1024 / 1024 (00.000639) cpu: fpu: Protection Keys User registers xstate_offsets 2688 / 2496 xstate_sizes 8 / 8 (00.000641) cpu: fpu:1 fxsr:1 xsave:1 xsaveopt:1 xsavec:1 xgetbv1:1 xsaves:1 (00.000742) cg-prop: Parsing controller "cpu" (00.000746) cg-prop: Strategy "replace" (00.000748) cg-prop: Property "cpu.shares" (00.000750) cg-prop: Property "cpu.cfs_period_us" (00.000752) cg-prop: Property "cpu.cfs_quota_us" (00.000754) cg-prop: Property "cpu.rt_period_us" (00.000755) cg-prop: Property "cpu.rt_runtime_us" (00.000757) cg-prop: Parsing controller "memory" (00.000758) cg-prop: Strategy "replace" (00.000760) cg-prop: Property "memory.limit_in_bytes" (00.000761) cg-prop: Property "memory.memsw.limit_in_bytes" (00.000763) cg-prop: Property "memory.swappiness" (00.000764) cg-prop: Property "memory.soft_limit_in_bytes" (00.000766) cg-prop: Property "memory.move_charge_at_immigrate" (00.000767) cg-prop: Property "memory.oom_control" (00.000768) cg-prop: Property "memory.use_hierarchy" (00.000770) cg-prop: Property "memory.kmem.limit_in_bytes" (00.000771) cg-prop: Property "memory.kmem.tcp.limit_in_bytes" (00.000773) cg-prop: Parsing controller "cpuset" (00.000774) cg-prop: Strategy "replace" (00.000776) cg-prop: Property "cpuset.cpus" (00.000777) cg-prop: Property "cpuset.mems" (00.000779) cg-prop: Property "cpuset.memory_migrate" (00.000780) cg-prop: Property "cpuset.cpu_exclusive" (00.000782) cg-prop: Property "cpuset.mem_exclusive" (00.000783) cg-prop: Property "cpuset.mem_hardwall" (00.000784) cg-prop: Property "cpuset.memory_spread_page" (00.000786) cg-prop: Property "cpuset.memory_spread_slab" (00.000787) cg-prop: Property "cpuset.sched_load_balance" (00.000789) cg-prop: Property "cpuset.sched_relax_domain_level" (00.000790) cg-prop: Parsing controller "blkio" (00.000792) cg-prop: Strategy "replace" (00.000793) cg-prop: Property "blkio.weight" (00.000795) cg-prop: Parsing controller "freezer" (00.000796) cg-prop: Strategy "replace" (00.000798) cg-prop: Parsing controller "perf_event" (00.000804) cg-prop: Strategy "replace" (00.000806) cg-prop: Parsing controller "net_cls" (00.000808) cg-prop: Strategy "replace" (00.000816) cg-prop: Property "net_cls.classid" (00.000817) cg-prop: Parsing controller "net_prio" (00.000819) cg-prop: Strategy "replace" (00.000820) cg-prop: Property "net_prio.ifpriomap" (00.000822) cg-prop: Parsing controller "pids" (00.000823) cg-prop: Strategy "replace" (00.000825) cg-prop: Property "pids.max" (00.000826) cg-prop: Parsing controller "devices" (00.000828) cg-prop: Strategy "replace" (00.000829) cg-prop: Property "devices.list" (00.000857) Preparing image inventory (version 1) (00.000875) Add pid ns 1 pid 1821394 (00.000880) Add net ns 2 pid 1821394 (00.000886) Add ipc ns 3 pid 1821394 (00.000892) Add uts ns 4 pid 1821394 (00.000896) Add time ns 5 pid 1821394 (00.000901) Add mnt ns 6 pid 1821394 (00.000907) Add user ns 7 pid 1821394 (00.000912) Add cgroup ns 8 pid 1821394 (00.000913) cg: Dumping cgroups for 1821394 (00.000930) cg: `- New css ID 1 (00.000932) cg: `- [] -> [/] [0] (00.000933) cg: `- [blkio] -> [/user.slice/user-0.slice/session-2031.scope] [0] (00.000935) cg: `- [cpu,cpuacct] -> [/user.slice/user-0.slice/session-2031.scope] [0] (00.000936) cg: `- [cpuset] -> [/] [0] (00.000938) cg: `- [devices] -> [/user.slice/user-0.slice/session-2031.scope] [0] (00.000939) cg: `- [freezer] -> [/] [0] (00.000940) cg: `- [hugetlb] -> [/] [0] (00.000942) cg: `- [memory] -> [/user.slice/user-0.slice/session-2031.scope] [0] (00.000943) cg: `- [name=systemd] -> [/user.slice/user-0.slice/session-2031.scope] [0] (00.000944) cg: `- [net_cls,net_prio] -> [/] [0] (00.000946) cg: `- [perf_event] -> [/] [0] (00.000947) cg: `- [pids] -> [/user.slice/user-0.slice/session-2031.scope] [0] (00.000948) cg: Set 1 is criu one (00.000962) Detected cgroup V1 freezer (00.000964) freezing processes: 100000 attempts with 100 ms steps (00.000972) freezer.state=THAWED (00.001104) freezer.state=FROZEN (00.001105) freezing processes: 0 attempts done (00.001141) SEIZE 1820007: success (00.001145) SEIZE 1820014: success (00.001149) SEIZE 1820015: success (00.001152) SEIZE 1820016: success (00.001155) SEIZE 1820017: success (00.001159) SEIZE 1820018: success (00.001162) SEIZE 1820019: success (00.001165) SEIZE 1820020: success (00.001169) SEIZE 1820021: success (00.001172) SEIZE 1820022: success (00.001175) SEIZE 1820023: success (00.001179) SEIZE 1820024: success (00.001182) SEIZE 1820025: success (00.001185) SEIZE 1820026: success (00.001188) SEIZE 1820027: success (00.001191) SEIZE 1820028: success (00.001195) SEIZE 1820029: success (00.001198) SEIZE 1820030: success (00.001201) SEIZE 1820031: success (00.001204) SEIZE 1820032: success (00.001207) SEIZE 1820033: success (00.001211) SEIZE 1820034: success (00.001214) SEIZE 1820035: success (00.001217) SEIZE 1820036: success (00.001220) SEIZE 1820037: success (00.001223) SEIZE 1820038: success (00.001226) SEIZE 1820039: success (00.001229) SEIZE 1820040: success (00.001232) SEIZE 1820041: success (00.001235) SEIZE 1820042: success (00.001239) SEIZE 1820043: success (00.001242) SEIZE 1820044: success (00.001245) SEIZE 1820045: success (00.001248) SEIZE 1820046: success (00.001251) SEIZE 1820047: success (00.001254) SEIZE 1820048: success (00.001257) SEIZE 1820049: success (00.001260) SEIZE 1820050: success (00.001263) SEIZE 1820051: success (00.001272) SEIZE 1820052: success (00.001276) SEIZE 1820053: success (00.001279) SEIZE 1820054: success (00.001282) SEIZE 1820055: success (00.001285) SEIZE 1820056: success (00.001289) SEIZE 1820057: success (00.001292) SEIZE 1820058: success (00.001296) SEIZE 1820059: success (00.001298) SEIZE 1820060: success (00.001302) SEIZE 1820061: success (00.001304) SEIZE 1820062: success (00.001470) Seized task 1820007, state 1 (00.001473) seccomp: Collected tid_real 1820007 mode 0 (00.001485) Collected (0 attempts, 0 in_progress) (00.001498) Seized task 1820014, state 0 (00.001536) seccomp: Collected tid_real 1820014 mode 0 (00.001545) Collected (0 attempts, 0 in_progress) (00.001572) Seized task 1820015, state 0 (00.001609) seccomp: Collected tid_real 1820015 mode 0 (00.001617) Collected (0 attempts, 0 in_progress) (00.001631) Collected (0 attempts, 0 in_progress) (00.001636) Collected 1820015 in 1 state (00.001637) Seized task 1820016, state 0 (00.001673) seccomp: Collected tid_real 1820016 mode 0 (00.001683) Collected (0 attempts, 0 in_progress) (00.001692) Collected (0 attempts, 0 in_progress) (00.001696) Collected 1820016 in 1 state (00.001698) Seized task 1820017, state 0 (00.001733) seccomp: Collected tid_real 1820017 mode 0 (00.001744) Collected (0 attempts, 0 in_progress) (00.001752) Collected (0 attempts, 0 in_progress) (00.001756) Collected 1820017 in 1 state (00.001758) Seized task 1820018, state 0 (00.001792) seccomp: Collected tid_real 1820018 mode 0 (00.001802) Collected (0 attempts, 0 in_progress) (00.001810) Collected (0 attempts, 0 in_progress) (00.001816) Collected 1820018 in 1 state (00.001818) Seized task 1820019, state 0 (00.001851) seccomp: Collected tid_real 1820019 mode 0 (00.001861) Collected (0 attempts, 0 in_progress) (00.001870) Collected (0 attempts, 0 in_progress) (00.001875) Collected 1820019 in 1 state (00.001877) Seized task 1820020, state 0 (00.001910) seccomp: Collected tid_real 1820020 mode 0 (00.001920) Collected (0 attempts, 0 in_progress) (00.001928) Collected (0 attempts, 0 in_progress) (00.001932) Collected 1820020 in 1 state (00.001934) Seized task 1820021, state 0 (00.001967) seccomp: Collected tid_real 1820021 mode 0 (00.001976) Collected (0 attempts, 0 in_progress) (00.001984) Collected (0 attempts, 0 in_progress) (00.001986) Collected 1820021 in 1 state (00.001988) Seized task 1820022, state 0 (00.002021) seccomp: Collected tid_real 1820022 mode 0 (00.002032) Collected (0 attempts, 0 in_progress) (00.002041) Collected (0 attempts, 0 in_progress) (00.002043) Collected 1820022 in 1 state (00.002044) Seized task 1820023, state 0 (00.002077) seccomp: Collected tid_real 1820023 mode 0 (00.002087) Collected (0 attempts, 0 in_progress) (00.002095) Collected (0 attempts, 0 in_progress) (00.002097) Collected 1820023 in 1 state (00.002099) Seized task 1820024, state 0 (00.002132) seccomp: Collected tid_real 1820024 mode 0 (00.002143) Collected (0 attempts, 0 in_progress) (00.002151) Collected (0 attempts, 0 in_progress) (00.002155) Collected 1820024 in 1 state (00.002157) Seized task 1820025, state 0 (00.002190) seccomp: Collected tid_real 1820025 mode 0 (00.002199) Collected (0 attempts, 0 in_progress) (00.002208) Collected (0 attempts, 0 in_progress) (00.002210) Collected 1820025 in 1 state (00.002212) Seized task 1820026, state 0 (00.002245) seccomp: Collected tid_real 1820026 mode 0 (00.002255) Collected (0 attempts, 0 in_progress) (00.002264) Collected (0 attempts, 0 in_progress) (00.002272) Collected 1820026 in 1 state (00.002274) Seized task 1820027, state 0 (00.002307) seccomp: Collected tid_real 1820027 mode 0 (00.002317) Collected (0 attempts, 0 in_progress) (00.002325) Collected (0 attempts, 0 in_progress) (00.002329) Collected 1820027 in 1 state (00.002331) Seized task 1820028, state 0 (00.002364) seccomp: Collected tid_real 1820028 mode 0 (00.002373) Collected (0 attempts, 0 in_progress) (00.002382) Collected (0 attempts, 0 in_progress) (00.002384) Collected 1820028 in 1 state (00.002385) Seized task 1820029, state 0 (00.002418) seccomp: Collected tid_real 1820029 mode 0 (00.002428) Collected (0 attempts, 0 in_progress) (00.002437) Collected (0 attempts, 0 in_progress) (00.002440) Collected 1820029 in 1 state (00.002442) Seized task 1820030, state 0 (00.002475) seccomp: Collected tid_real 1820030 mode 0 (00.002484) Collected (0 attempts, 0 in_progress) (00.002493) Collected (0 attempts, 0 in_progress) (00.002497) Collected 1820030 in 1 state (00.002498) Seized task 1820031, state 0 (00.002531) seccomp: Collected tid_real 1820031 mode 0 (00.002541) Collected (0 attempts, 0 in_progress) (00.002549) Collected (0 attempts, 0 in_progress) (00.002552) Collected 1820031 in 1 state (00.002553) Seized task 1820032, state 0 (00.002586) seccomp: Collected tid_real 1820032 mode 0 (00.002596) Collected (0 attempts, 0 in_progress) (00.002604) Collected (0 attempts, 0 in_progress) (00.002610) Collected 1820032 in 1 state (00.002612) Seized task 1820033, state 0 (00.002645) seccomp: Collected tid_real 1820033 mode 0 (00.002656) Collected (0 attempts, 0 in_progress) (00.002665) Collected (0 attempts, 0 in_progress) (00.002669) Collected 1820033 in 1 state (00.002670) Seized task 1820034, state 0 (00.002703) seccomp: Collected tid_real 1820034 mode 0 (00.002712) Collected (0 attempts, 0 in_progress) (00.002721) Collected (0 attempts, 0 in_progress) (00.002723) Collected 1820034 in 1 state (00.002725) Seized task 1820035, state 0 (00.002757) seccomp: Collected tid_real 1820035 mode 0 (00.002771) Collected (0 attempts, 0 in_progress) (00.002780) Collected (0 attempts, 0 in_progress) (00.002783) Collected 1820035 in 1 state (00.002784) Seized task 1820036, state 0 (00.002817) seccomp: Collected tid_real 1820036 mode 0 (00.002827) Collected (0 attempts, 0 in_progress) (00.002835) Collected (0 attempts, 0 in_progress) (00.002837) Collected 1820036 in 1 state (00.002839) Seized task 1820037, state 0 (00.002872) seccomp: Collected tid_real 1820037 mode 0 (00.002882) Collected (0 attempts, 0 in_progress) (00.002891) Collected (0 attempts, 0 in_progress) (00.002894) Collected 1820037 in 1 state (00.002896) Seized task 1820038, state 0 (00.002928) seccomp: Collected tid_real 1820038 mode 0 (00.002937) Collected (0 attempts, 0 in_progress) (00.002947) Collected (0 attempts, 0 in_progress) (00.002949) Collected 1820038 in 1 state (00.002950) Seized task 1820039, state 0 (00.002983) seccomp: Collected tid_real 1820039 mode 0 (00.002993) Collected (0 attempts, 0 in_progress) (00.003001) Collected (0 attempts, 0 in_progress) (00.003004) Collected 1820039 in 1 state (00.003005) Seized task 1820040, state 0 (00.003038) seccomp: Collected tid_real 1820040 mode 0 (00.003047) Collected (0 attempts, 0 in_progress) (00.003055) Collected (0 attempts, 0 in_progress) (00.003060) Collected 1820040 in 1 state (00.003062) Seized task 1820041, state 0 (00.003095) seccomp: Collected tid_real 1820041 mode 0 (00.003105) Collected (0 attempts, 0 in_progress) (00.003113) Collected (0 attempts, 0 in_progress) (00.003115) Collected 1820041 in 1 state (00.003117) Seized task 1820042, state 0 (00.003150) seccomp: Collected tid_real 1820042 mode 0 (00.003160) Collected (0 attempts, 0 in_progress) (00.003167) Collected (0 attempts, 0 in_progress) (00.003170) Collected 1820042 in 1 state (00.003171) Seized task 1820043, state 0 (00.003205) seccomp: Collected tid_real 1820043 mode 0 (00.003214) Collected (0 attempts, 0 in_progress) (00.003222) Collected (0 attempts, 0 in_progress) (00.003226) Collected 1820043 in 1 state (00.003228) Seized task 1820044, state 0 (00.003260) seccomp: Collected tid_real 1820044 mode 0 (00.003276) Collected (0 attempts, 0 in_progress) (00.003286) Collected (0 attempts, 0 in_progress) (00.003288) Collected 1820044 in 1 state (00.003290) Seized task 1820045, state 0 (00.003323) seccomp: Collected tid_real 1820045 mode 0 (00.003332) Collected (0 attempts, 0 in_progress) (00.003341) Collected (0 attempts, 0 in_progress) (00.003343) Collected 1820045 in 1 state (00.003345) Seized task 1820046, state 0 (00.003378) seccomp: Collected tid_real 1820046 mode 0 (00.003387) Collected (0 attempts, 0 in_progress) (00.003396) Collected (0 attempts, 0 in_progress) (00.003398) Collected 1820046 in 1 state (00.003400) Seized task 1820047, state 0 (00.003432) seccomp: Collected tid_real 1820047 mode 0 (00.003443) Collected (0 attempts, 0 in_progress) (00.003452) Collected (0 attempts, 0 in_progress) (00.003456) Collected 1820047 in 1 state (00.003458) Seized task 1820048, state 0 (00.003491) seccomp: Collected tid_real 1820048 mode 0 (00.003501) Collected (0 attempts, 0 in_progress) (00.003510) Collected (0 attempts, 0 in_progress) (00.003513) Collected 1820048 in 1 state (00.003514) Seized task 1820049, state 0 (00.003547) seccomp: Collected tid_real 1820049 mode 0 (00.003558) Collected (0 attempts, 0 in_progress) (00.003568) Collected (0 attempts, 0 in_progress) (00.003570) Collected 1820049 in 1 state (00.003572) Seized task 1820050, state 0 (00.003608) seccomp: Collected tid_real 1820050 mode 0 (00.003618) Collected (0 attempts, 0 in_progress) (00.003627) Collected (0 attempts, 0 in_progress) (00.003632) Collected 1820050 in 1 state (00.003633) Seized task 1820051, state 0 (00.003666) seccomp: Collected tid_real 1820051 mode 0 (00.003677) Collected (0 attempts, 0 in_progress) (00.003685) Collected (0 attempts, 0 in_progress) (00.003688) Collected 1820051 in 1 state (00.003689) Seized task 1820052, state 0 (00.003722) seccomp: Collected tid_real 1820052 mode 0 (00.003732) Collected (0 attempts, 0 in_progress) (00.003741) Collected (0 attempts, 0 in_progress) (00.003743) Collected 1820052 in 1 state (00.003745) Seized task 1820053, state 0 (00.003778) seccomp: Collected tid_real 1820053 mode 0 (00.003788) Collected (0 attempts, 0 in_progress) (00.003797) Collected (0 attempts, 0 in_progress) (00.003805) Collected 1820053 in 1 state (00.003807) Seized task 1820054, state 0 (00.003840) seccomp: Collected tid_real 1820054 mode 0 (00.003851) Collected (0 attempts, 0 in_progress) (00.003860) Collected (0 attempts, 0 in_progress) (00.003863) Collected 1820054 in 1 state (00.003864) Seized task 1820055, state 0 (00.003897) seccomp: Collected tid_real 1820055 mode 0 (00.003912) Collected (0 attempts, 0 in_progress) (00.003921) Collected (0 attempts, 0 in_progress) (00.003923) Collected 1820055 in 1 state (00.003925) Seized task 1820056, state 0 (00.003958) seccomp: Collected tid_real 1820056 mode 0 (00.003967) Collected (0 attempts, 0 in_progress) (00.003976) Collected (0 attempts, 0 in_progress) (00.003980) Collected 1820056 in 1 state (00.003982) Seized task 1820057, state 0 (00.004014) seccomp: Collected tid_real 1820057 mode 0 (00.004024) Collected (0 attempts, 0 in_progress) (00.004032) Collected (0 attempts, 0 in_progress) (00.004034) Collected 1820057 in 1 state (00.004036) Seized task 1820058, state 0 (00.004068) seccomp: Collected tid_real 1820058 mode 0 (00.004078) Collected (0 attempts, 0 in_progress) (00.004087) Collected (0 attempts, 0 in_progress) (00.004089) Collected 1820058 in 1 state (00.004091) Seized task 1820059, state 0 (00.004123) seccomp: Collected tid_real 1820059 mode 0 (00.004133) Collected (0 attempts, 0 in_progress) (00.004141) Collected (0 attempts, 0 in_progress) (00.004144) Collected 1820059 in 1 state (00.004145) Seized task 1820060, state 0 (00.004179) seccomp: Collected tid_real 1820060 mode 0 (00.004188) Collected (0 attempts, 0 in_progress) (00.004197) Collected (0 attempts, 0 in_progress) (00.004201) Collected 1820060 in 1 state (00.004203) Seized task 1820061, state 0 (00.004237) seccomp: Collected tid_real 1820061 mode 0 (00.004246) Collected (0 attempts, 0 in_progress) (00.004255) Collected (0 attempts, 0 in_progress) (00.004257) Collected 1820061 in 1 state (00.004259) Seized task 1820062, state 0 (00.004298) seccomp: Collected tid_real 1820062 mode 0 (00.004308) Collected (0 attempts, 0 in_progress) (00.004316) Collected (0 attempts, 0 in_progress) (00.004319) Collected 1820062 in 1 state (00.004346) Collected (-1 attempts, 0 in_progress) (00.004351) Collected 1820014 in 1 state (00.004363) Collected (-1 attempts, 0 in_progress) (00.004366) Collected 1820007 in 1 state (00.004380) Will take pid namespace in the image (00.004382) Add pid ns 9 pid 1820007 (00.004388) Will take net namespace in the image (00.004389) Add net ns 10 pid 1820007 (00.004394) Will take ipc namespace in the image (00.004396) Add ipc ns 11 pid 1820007 (00.004401) Will take uts namespace in the image (00.004403) Add uts ns 12 pid 1820007 (00.004410) Will take mnt namespace in the image (00.004412) Add mnt ns 13 pid 1820007 (00.006072) Lock network (00.006076) Running network-lock scripts (00.006077) RPC iptables-restore: invalid option -- 'w' ip6tables-restore: invalid option -- 'w' (00.009196) No parent images directory provided (00.009209) ======================================== (00.009210) Dumping task (pid: 1820007) (00.009212) ======================================== (00.009213) Obtaining task stat ... (00.009235) (00.009242) Collecting mappings (pid: 1820007) (00.009243) ---------------------------------------- (00.009298) Found regular file mapping, OK (00.009338) Error (criu/files-reg.c:1717): Can't lookup mount=11185 for fd=-3 path=/bin/dash (00.009353) vma 56317268a000 borrows vfi from previous 563172686000 (00.009361) vma 56317269d000 borrows vfi from previous 56317268a000 (00.009369) vma 5631726a3000 borrows vfi from previous 56317269d000 (00.009376) vma 5631726a5000 borrows vfi from previous 5631726a3000 (00.009440) Found regular file mapping, OK (00.009453) Error (criu/files-reg.c:1717): Can't lookup mount=11185 for fd=-3 path=/lib/x86_64-linux-gnu/libc-2.31.so (00.009461) vma 7f0d62e3f000 borrows vfi from previous 7f0d62e1a000 (00.009468) vma 7f0d62f8a000 borrows vfi from previous 7f0d62e3f000 (00.009475) vma 7f0d62fd4000 borrows vfi from previous 7f0d62f8a000 (00.009483) vma 7f0d62fd5000 borrows vfi from previous 7f0d62fd4000 (00.009509) vma 7f0d62fd8000 borrows vfi from previous 7f0d62fd5000 (00.009525) Found regular file mapping, OK (00.009537) Error (criu/files-reg.c:1717): Can't lookup mount=11185 for fd=-3 path=/lib/x86_64-linux-gnu/ld-2.31.so (00.009545) vma 7f0d62fe5000 borrows vfi from previous 7f0d62fe4000 (00.009551) vma 7f0d63005000 borrows vfi from previous 7f0d62fe5000 (00.009569) vma 7f0d6300e000 borrows vfi from previous 7f0d63005000 (00.009576) vma 7f0d6300f000 borrows vfi from previous 7f0d6300e000 (00.009603) Collected, longest area occupies 331 pages (00.009604) 0x563172686000-0x56317268a000 (16K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0 reg fp shmid: 0x1 (00.009607) 0x56317268a000-0x56317269d000 (76K) prot 0x5 flags 0x2 fdflags 0 st 0x41 off 0x4000 reg fp shmid: 0x1 (00.009609) 0x56317269d000-0x5631726a3000 (24K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0x17000 reg fp shmid: 0x1 (00.009611) 0x5631726a3000-0x5631726a5000 (8K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0x1c000 reg fp shmid: 0x1 (00.009613) 0x5631726a5000-0x5631726a6000 (4K) prot 0x3 flags 0x2 fdflags 0 st 0x41 off 0x1e000 reg fp shmid: 0x1 (00.009615) 0x5631726a6000-0x5631726a8000 (8K) prot 0x3 flags 0x22 fdflags 0 st 0x201 off 0 reg ap shmid: 0 (00.009616) 0x563172a7e000-0x563172a9f000 (132K) prot 0x3 flags 0x22 fdflags 0 st 0x221 off 0 reg heap ap shmid: 0 (00.009618) 0x7f0d62e1a000-0x7f0d62e3f000 (148K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0 reg fp shmid: 0x2 (00.009620) 0x7f0d62e3f000-0x7f0d62f8a000 (1324K) prot 0x5 flags 0x2 fdflags 0 st 0x41 off 0x25000 reg fp shmid: 0x2 (00.009622) 0x7f0d62f8a000-0x7f0d62fd4000 (296K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0x170000 reg fp shmid: 0x2 (00.009623) 0x7f0d62fd4000-0x7f0d62fd5000 (4K) prot 0 flags 0x2 fdflags 0 st 0x41 off 0x1ba000 reg fp shmid: 0x2 (00.009625) 0x7f0d62fd5000-0x7f0d62fd8000 (12K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0x1ba000 reg fp shmid: 0x2 (00.009627) 0x7f0d62fd8000-0x7f0d62fdb000 (12K) prot 0x3 flags 0x2 fdflags 0 st 0x41 off 0x1bd000 reg fp shmid: 0x2 (00.009628) 0x7f0d62fdb000-0x7f0d62fe1000 (24K) prot 0x3 flags 0x22 fdflags 0 st 0x201 off 0 reg ap shmid: 0 (00.009630) 0x7f0d62fe4000-0x7f0d62fe5000 (4K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0 reg fp shmid: 0x3 (00.009632) 0x7f0d62fe5000-0x7f0d63005000 (128K) prot 0x5 flags 0x2 fdflags 0 st 0x41 off 0x1000 reg fp shmid: 0x3 (00.009633) 0x7f0d63005000-0x7f0d6300d000 (32K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0x21000 reg fp shmid: 0x3 (00.009635) 0x7f0d6300e000-0x7f0d6300f000 (4K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0x29000 reg fp shmid: 0x3 (00.009637) 0x7f0d6300f000-0x7f0d63010000 (4K) prot 0x3 flags 0x2 fdflags 0 st 0x41 off 0x2a000 reg fp shmid: 0x3 (00.009638) 0x7f0d63010000-0x7f0d63011000 (4K) prot 0x3 flags 0x22 fdflags 0 st 0x201 off 0 reg ap shmid: 0 (00.009640) 0x7ffca7fb9000-0x7ffca7fda000 (132K) prot 0x3 flags 0x122 fdflags 0 st 0x201 off 0 reg ap shmid: 0 (00.009642) 0x7ffca7fe9000-0x7ffca7fec000 (12K) prot 0x1 flags 0x22 fdflags 0 st 0x1201 off 0 reg vvar ap shmid: 0 (00.009643) 0x7ffca7fec000-0x7ffca7fed000 (4K) prot 0x5 flags 0x22 fdflags 0 st 0x209 off 0 reg vdso ap shmid: 0 (00.009649) ---------------------------------------- (00.009651) (00.009652) Collecting fds (pid: 1820007) (00.009653) ---------------------------------------- (00.009665) Found 3 file descriptors (00.009666) ---------------------------------------- (00.009674) Dump private signals of 1820007 (00.009680) Dump shared signals of 1820007 (00.009689) Parasite syscall_ip at 0x56317268a000 (00.009929) Set up parasite blob using memfd (00.009972) Putting parasite blob into 0x7f3c58761000->0x7f0d62e0b000 (00.010037) Dumping general registers for 1820007 in native mode (00.010041) Dumping GP/FPU registers for 1820007 (00.010056) x86: xsave runtime structure (00.010058) x86: ----------------------- (00.010059) x86: cwd:0x37f swd:0 twd:0 fop:0 mxcsr:0x1f80 mxcsr_mask:0xffff (00.010061) x86: magic1:0x46505853 extended_size:2700 xstate_bv:0x2f7 xstate_size:2696 (00.010063) x86: xstate_bv: 0x2f7 (00.010064) x86: ----------------------- (00.010066) Putting tsock into pid 1820007 (00.010071) Error (compel/src/lib/infect.c:456): Unable to get name for a socket: Socket operation on non-socket (00.010136) Error (criu/cr-dump.c:1570): Can't infect (pid: 1820007) with parasite (00.010198) Unlock network (00.010200) Running network-unlock scripts (00.010202) RPC iptables-restore: invalid option -- 'w' ip6tables-restore: invalid option -- 'w' (00.012817) Unfreezing tasks into 1 (00.012825) Unseizing 1820007 into 1 (00.012829) Unseizing 1820014 into 1 (00.012833) Unseizing 1820015 into 1 (00.012837) Unseizing 1820016 into 1 (00.012840) Unseizing 1820017 into 1 (00.012844) Unseizing 1820018 into 1 (00.012847) Unseizing 1820019 into 1 (00.012853) Unseizing 1820020 into 1 (00.012856) Unseizing 1820021 into 1 (00.012859) Unseizing 1820022 into 1 (00.012863) Unseizing 1820023 into 1 (00.012866) Unseizing 1820024 into 1 (00.012869) Unseizing 1820025 into 1 (00.012878) Unseizing 1820026 into 1 (00.012882) Unseizing 1820027 into 1 (00.012885) Unseizing 1820028 into 1 (00.012888) Unseizing 1820029 into 1 (00.012894) Unseizing 1820030 into 1 (00.012898) Unseizing 1820031 into 1 (00.012901) Unseizing 1820032 into 1 (00.012907) Unseizing 1820033 into 1 (00.012910) Unseizing 1820034 into 1 (00.012918) Unseizing 1820035 into 1 (00.012924) Unseizing 1820036 into 1 (00.012927) Unseizing 1820037 into 1 (00.012931) Unseizing 1820038 into 1 (00.012934) Unseizing 1820039 into 1 (00.012938) Unseizing 1820040 into 1 (00.012942) Unseizing 1820041 into 1 (00.012948) Unseizing 1820042 into 1 (00.012951) Unseizing 1820043 into 1 (00.012955) Unseizing 1820044 into 1 (00.012961) Unseizing 1820045 into 1 (00.012966) Unseizing 1820046 into 1 (00.012969) Unseizing 1820047 into 1 (00.012973) Unseizing 1820048 into 1 (00.012977) Unseizing 1820049 into 1 (00.012982) Unseizing 1820050 into 1 (00.012986) Unseizing 1820051 into 1 (00.012992) Unseizing 1820052 into 1 (00.012995) Unseizing 1820053 into 1 (00.012999) Unseizing 1820054 into 1 (00.013002) Unseizing 1820055 into 1 (00.013006) Unseizing 1820056 into 1 (00.013012) Unseizing 1820057 into 1 (00.013017) Unseizing 1820058 into 1 (00.013021) Unseizing 1820059 into 1 (00.013024) Unseizing 1820060 into 1 (00.013028) Unseizing 1820061 into 1 (00.013031) Unseizing 1820062 into 1 (00.013086) Error (criu/cr-dump.c:2059): Dumping FAILED. ```

adrianreber commented 1 year ago

Which file system are you using?

futurist commented 1 year ago

Which file system are you using?

$ df -T test/ Filesystem Type 1K-blocks Used Available Use% Mounted on /dev/sda1 ext4 115153868 27821396 81456760 26% /

adrianreber commented 1 year ago

I am not sure. Everything seems okay. I see, however, that the system has AVX-512. Not sure we have seen systems with that before. The following is just a guess, but could you try to reboot your system with the kernel command-line noxsave. I highly doubt that that might help, but it could be worth a try.

Or a VM with a limited set of feature flags. Not all CPU features from the host.

Both ideas are just a try to see if CRIU has problems with the AVX-512 somehow.

futurist commented 1 year ago

I've rebooted and tried, the log shows same errors (both with -d and without -d).

Use below command to verify noxsave presents:

$ cat /proc/cmdline BOOT_IMAGE=/boot/vmlinuz-5.4.210.bsk.2-amd64 root=UUID=7b02013a-30b3-4d8c-8e3f-1f896d194da9 ro elevator=noop scsi_mod.use_blk_mq=0 transparent_hugepage=madvise net.ifnames=1 nopti nvme_core.default_ps_max_latency_us=0 acpi=nocmcff systemd.legacy_systemd_cgroup_controller=1 quiet noxsave crashkernel=128M,low crashkernel=128M,high

Is there any way I can dump only the memory and then restore only the memory? That's to say ignore all FDs and Networks. The program actually run without any FD deps once it's started.

adrianreber commented 1 year ago

Thanks for trying.

Is there any way I can dump only the memory and then restore only the memory? That's to say ignore all FDs and Networks.

No.

At this point I can only recommend to try it in a VM or with a different distribution. Not sure that helps.

github-actions[bot] commented 1 year ago

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