Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to dump the process that was restored from the checkpoint #2341

Closed
liuaifu opened this issue Feb 1, 2024 · 6 comments
Closed

Failed to dump the process that was restored from the checkpoint #2341

liuaifu opened this issue Feb 1, 2024 · 6 comments

Comments

@liuaifu
Copy link

liuaifu commented Feb 1, 2024

Description

Failed to dump the process that was restored from the checkpoint.

Steps to reproduce the issue:

  1. sudo ~/criu/scripts/criu-ns dump -t [pid] -D ~/test -j
  2. sudo ~/criu/scripts/criu-ns restore -D ~/test -j
  3. sudo ~/criu/scripts/criu-ns dump -t [newpid] -D ~/test2 -j

Describe the results you received:
eplace pid 5191 with 3069
['/home/dev/criu/scripts/criu-ns', 'dump', '-t', '3069', '-D', '/home/dev/test2', '-j']
Warn (compel/arch/x86/src/lib/infect.c:281): Will restore 3069 with interrupted system call
Error (criu/files-reg.c:1371): Can't lookup mount=26 for fd=0 path=/dev/pts/0
Error (criu/cr-dump.c:1348): Dump files (pid: 3069) failed with -1
Error (criu/cr-dump.c:1764): Dumping FAILED.

Describe the results you expected:
ok.

Additional information you deem important (e.g. issue happens only occasionally):

CRIU logs and information:

CRIU full dump/restore logs:

(paste your output here)

Output of `criu --version`:

Version: 3.14

Output of `criu check --all`:

Looks good.

Additional environment details:

dev@dev-VirtualBox:~$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.10
DISTRIB_CODENAME=groovy
DISTRIB_DESCRIPTION="Ubuntu 20.10"
dev@dev-VirtualBox:~$ uname -r
5.8.0-63-generic
@adrianreber
Copy link
Member

Any specific reason you are using criu-ns? Did you try it without criu-ns?

@liuaifu
Copy link
Author

liuaifu commented Feb 1, 2024

@adrianreber The main purpose of using criu-ns is to clone processes, where a specified process is cloned into multiple processes. criu cannot achieve this task.

Is the version of criu I'm using too old? Does the new version fix this?

@adrianreber
Copy link
Member

Ah, okay, makes sense.

@Snorch
Copy link
Member

Snorch commented Feb 2, 2024

Version: 3.14
Is the version of criu I'm using too old? Does the new version fix this?

Yes, I believe new version can fix your problem, as we had problems with criu-ns recently.

For reference, see:
#1909
#232
#1893

@liuaifu
Copy link
Author

liuaifu commented Feb 2, 2024

I tested v3.18-201-ga9cbdad76 on Ubuntu 22.04.3 LTS and this issue has been fixed, thanks.

@Snorch
Copy link
Member

Snorch commented Feb 2, 2024

Thanks for confirming!

@Snorch Snorch closed this as completed Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants