From 5c01686856215666875683d92835bfacd5d4708d Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Sat, 7 Dec 2024 00:08:59 +0000 Subject: [PATCH] Debug java tests (00.062248) Handling VMA with the following smaps entry: 7fc5dda00000-7fc5ddc00000 rw-s 00000000 00:32 11413275 /criu/test/javaTests/omrvmem_000000626_Mlm48x (deleted) (00.062297) Found regular file mapping, OK (00.062353) Dumping path for -3 fd via self 12 [/criu/test/javaTests/omrvmem_000000626_Mlm48x (deleted)] (00.062358) Strip ' (deleted)' tag from './criu/test/javaTests/omrvmem_000000626_Mlm48x (deleted)' (00.062360) Dumping ghost file for fd 12 id 0x2 (00.062363) Error (criu/files-reg.c:1031): Can't dump ghost file /criu/test/javaTests/omrvmem_000000626_Mlm48x of 2097152 size, increase limit (00.062374) Error (criu/cr-dump.c:1570): Collect mappings (pid: 626) failed with -1 --- scripts/build/Dockerfile.openj9-ubuntu | 3 ++- scripts/ci/java-test.sh | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/build/Dockerfile.openj9-ubuntu b/scripts/build/Dockerfile.openj9-ubuntu index c2cf20a36b..e190c27929 100644 --- a/scripts/build/Dockerfile.openj9-ubuntu +++ b/scripts/build/Dockerfile.openj9-ubuntu @@ -24,9 +24,10 @@ RUN apt-install protobuf-c-compiler \ gcc \ maven +RUN mkdir -p /etc/criu && echo 'ghost-limit 16777216' > /etc/criu/default.conf COPY . /criu WORKDIR /criu RUN make mrproper && make -j $(nproc) CC="$CC" -ENTRYPOINT mvn -q -f test/javaTests/pom.xml test +ENTRYPOINT mvn -f test/javaTests/pom.xml test diff --git a/scripts/ci/java-test.sh b/scripts/ci/java-test.sh index 7cf704f074..7110b6ceba 100755 --- a/scripts/ci/java-test.sh +++ b/scripts/ci/java-test.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -x + cd ../.. || exit 1 failures=""