criu
criu copied to clipboard
CRIU can't dump huge mappings
[root@fc24 criu]# time python test/zdtm.py run -t zdtm/static/env00
cc -D_GNU_SOURCE umount2.c -o umount2
cc -D_GNU_SOURCE zdtm_ct.c -o zdtm_ct
Warn (criu/kerndat.c:674): Stale /run/criu.kdat file
=== Run 1/1 ================ zdtm/static/env00
========================== Run zdtm/static/env00 in h ==========================
Start test
./env00 --pidfile=env00.pid --outfile=env00.out --envname=ENV_00_TEST
Run criu dump
=[log]=> dump/zdtm/static/env00/36/1/dump.log
------------------------ grep Error ------------------------
(00.008203)
(00.008208) Dumping pages (type: 52 pid: 36)
(00.008214) ----------------------------------------
(00.008219) Private vmas 3758030849/5368728359 pages
(00.008260) Error (criu/pagemap-cache.c:54): pagemap-cache: pmc_init: Can't allocate 30064246792 bytes
(00.008267) Error (criu/pagemap-cache.c:85): pagemap-cache: Failed to init pagemap for 36
(00.008272) Error (criu/mem.c:465): Can't dump page with parasite
(00.010108) 36 was stopped
(00.010350) Unlock network
(00.010359) Unfreezing tasks into 1
(00.010363) Unseizing 36 into 1
(00.010375) Error (criu/cr-dump.c:1697): Dumping FAILED.
------------------------ ERROR OVER ------------------------
################### Test zdtm/static/env00 FAIL at CRIU dump ###################
Send the 9 signal to 36
Wait for zdtm/static/env00(36) to die for 0.100000
##################################### FAIL #####################################
Steps to reproduce:
- Apply the following patch
diff --git a/test/zdtm/Makefile.inc b/test/zdtm/Makefile.inc
index 5e8836e90..8ce4c8205 100644
--- a/test/zdtm/Makefile.inc
+++ b/test/zdtm/Makefile.inc
@@ -93,4 +93,10 @@ ifeq ($(filter $(no-deps-targets), $(MAKECMDGOALS)),)
-include $(wildcard $(DEP))
endif
+ifeq ($(ASAN),1)
+ CFLAGS-ASAN := -fsanitize=address
+ export CFLAGS-ASAN
+ CFLAGS += $(CFLAGS-ASAN)
+ LDFLAGS += -lasan
+endif
.SECONDARY:
- make ASAN=1 -C test/zdtm/
- make
- time python test/zdtm.py run -t zdtm/static/env00
A friendly reminder that this issue had no activity for 30 days.
Needs to be checked if it is still an issue.
(and probably a good idea for a zdtm test if it's not an issue anymore)
A friendly reminder that this issue had no activity for 30 days.
A friendly reminder that this issue had no activity for 30 days.
I also got this error with a program compiled with ASan and it is successfully checkpointed without ASan.