Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8369729

[CRaC] CRaC restore fails with different CPUs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • repo-crac
    • repo-crac
    • hotspot
    • None
    • x86_64
    • linux

      original bugreport: https://github.com/zulu-openjdk/zulu-openjdk/issues/320

      After moving an image between machines it reports first:

      ./build/fastdebug-default/images/jdk/bin/java -XX:CRaCRestoreFrom=checkpoint -XX:CRaCEngine=warp
      warp: error: Image constraint 'cpu.features' (bitmap subset) does not match:
      warp: error: Required : d7 fb fd 01 18 02 21 00 cc 03 00 00 00 00 00 00
      warp: error: Image has: f7 fb fd 9d ff 3f ff 07 cc 03 00 00 00 00 00 00
      [0.068s][error][crac] CRaC engine failed to restore from checkpoint: error -1
      [0.068s][error][crac] Restore failed due to incompatible or missing CPU features, try using -XX:CPUFeatures=0x21021801fdfbd7,0x3cc on checkpoint.
      [0.068s][error][crac] Failed to restore from checkpoint
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.

      After providing -XX:CPUFeatures=0x21021801fdfbd7,0x3cc on the snapshot side it crashes during restore:

      ./build/fastdebug-default/images/jdk/bin/java -XX:CRaCRestoreFrom=checkpoint -XX:CRaCEngine=warp
      Segmentation fault

      This test was done on i5-1135G7 -> E5-2630v3

            jkratochvil Jan Kratochvil
            jkratochvil Jan Kratochvil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: