Hello everybody,

Iam working on a project about process migration between Arm and x86. I try
to get runtime migration of processes working. My goal is to migrate a
process from a Raspberry Pi4 (ubuntu 18.04) to my qemu-user mode emulation
at runtime.

To get user-mode emulation working I created an arm64  (ubuntu 18.04)
chroot environment using qemu-aarch64-static and "debootstrap --arch=arm64
bionic ARM64".

I compiled and installed dmtcp in this chroot environment and created a
simple c-program called "test" which prints numbers in the console to test
if dmtcp is working inside the chroot environemnt at all ("make check" is
failing in every case at the restore operation).

"dmtcp_launch ./test" prints the following message before starting the
program:

NOTE at processinfo.cpp:240 in findMiscAreas; REASON='bottom-most page of
stack (page with highest address) was invisible in /proc/self/maps. It is
made visible again now.'

The command "dmtcp_command --checkpoint" is working and creates three files:
ckpt_test_*.dmtcp, dmtcp_restart_script.sh and dmtcp_restart_script_*.sh.

The command "dmtcp_restart ckpt_test_*.dmtcp" fails with the following
message:

mtcp_restart.c:1259 remapMtcpRestartToReservedArea: mmap failed with error;
errno: 9
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)

How can I fix this "bad file descriptor error" called errno 9 ?

Or is it not possible to use dmtcp inside qemu user-mode emulation?

Best regards,

Chris
_______________________________________________
Dmtcp-forum mailing list
Dmtcp-forum@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dmtcp-forum

Reply via email to