[crac] RFR: Correct System.nanotime() value after restore [v6]

Jan Kratochvil duke at openjdk.org
Fri May 12 02:00:13 UTC 2023


On Thu, 11 May 2023 15:15:23 GMT, Jan Kratochvil <duke at openjdk.org> wrote:

>> Are you using your own build of CRIU? Looks like you have CRIU build with libbsd support. When you remove `libbsd-devel` and rebuild CRIU this should work.
>
> Yes. When I remove `libbsd-devel` I get:
> 
> /usr/bin/ld: /home/azul/azul/criu-git/criu/apparmor.c:127: undefined reference to `strlcpy'
> /home/azul/azul/criu-git/criu/crtools.c:130: undefined reference to `setproctitle_init'
> 
> Besides that no package should break (despite only its testcase) when some additional system feature is available.

Besides discussion of this patch vs. native CRIU timens support I find easier (YMMV) and less error-prone to just use simple `LD_PRELOAD`+`RTLD_NEXT` to simulate the system reboots: https://stackoverflow.com/a/6083624/2995591

-------------

PR Review Comment: https://git.openjdk.org/crac/pull/53#discussion_r1191835421


More information about the crac-dev mailing list