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

containers/docker/TestMemoryWithCgroupV1.java fails which run with linux x86(32bit) jdk

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • None
    • hotspot
    • x86
    • linux

      When the test jdk is linux x86(32bit) jdk, containers/docker/TestMemoryWithCgroupV1.java fails

      test command:
      jtreg -v:fail,error -nr -w tmp test/hotspot/jtreg/containers/docker/TestMemoryWithCgroupV1.java

      result:
      STDERR:
       stdout: [exec /jdk/bin/java: no such file or directory
      ];
       stderr: [WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
      ]
       exitValue = 1

      java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
              at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:521)
              at jdk.test.lib.containers.docker.Common.run(Common.java:108)
              at TestMemoryWithCgroupV1.testMemoryLimitWithSwappiness(TestMemoryWithCgroupV1.java:84)
              at TestMemoryWithCgroupV1.main(TestMemoryWithCgroupV1.java:61)


      The linux x86(32bit) jdk needs 32bit runtime on linux x86_64 OS system.

      # file tmp/scratch/jdk-internal-test-containers-docker-TestMemoryWithCgroupV1-memory/jdk/bin/java
      tmp/scratch/jdk-internal-test-containers-docker-TestMemoryWithCgroupV1-memory/jdk/bin/java: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, BuildID[sha1]=09c46112fc9b2f425a52ba97798be4fb2dd3b0bf, for GNU/Linux 3.2.0, not stripped


      # ldd tmp/scratch/jdk-internal-test-containers-docker-TestMemoryWithCgroupV1-memory/jdk/bin/java
              linux-gate.so.1 (0xf7f75000)
              libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf7f43000)
              libjli.so => /tmp/tone/run/jtreg/jdk-repo/tmp/scratch/jdk-internal-test-containers-docker-TestMemoryWithCgroupV1-memory/jdk/bin/../lib/libjli.so (0xf7f31000)
              libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf7f0e000)
              libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7f08000)
              libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7d19000)
              /lib/ld-linux.so.2 (0xf7f77000)

            syan Sendao Yan
            syan Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: