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

java/io/File/GetXSpace.java fails with "53687091200 != 161051996160"

    XMLWordPrintable

Details

    • b24
    • x86_64
    • windows

    Backports

      Description

        The following test failed in the JDK20 CI:

        java/io/File/GetXSpace.java

        Here's a snippet from the log file:

        #section:main
        ----------messages:(4/211)----------
        command: main -Djava.security.manager=allow GetXSpace
        reason: User specified action: run main/othervm -Djava.security.manager=allow GetXSpace
        Mode: othervm [/othervm specified]
        elapsed time (seconds): 0.41
        ----------configuration:(0/0)----------
        ----------System.out:(32/1682)*----------
        --- Testing df
        C:/cygwin 157277340 106383716 50893624 68% /


        SecurityManager = null
        C:/cygwin:
          df total= 161051996160 free = 0 usable = 52115070976
          getX total= 161051996160 free = 52115070976 usable = 52115070976

        SecurityManager = GetXSpace$Allow
        C:/cygwin:
          df total= 161051996160 free = 0 usable = 52115070976
          getX total= 161051996160 free = 52115070976 usable = 52115070976

        SecurityManager = GetXSpace$DenyFSA
        C:/cygwin:
           getTotalSpace: "java.lang.SecurityException: sorry - getFileSystemAttributes" thrown as expected
            getFreeSpace: "java.lang.SecurityException: sorry - getFileSystemAttributes" thrown as expected
          getUsableSpace: "java.lang.SecurityException: sorry - getFileSystemAttributes" thrown as expected

        SecurityManager = GetXSpace$DenyRead
        C:/cygwin:
           getTotalSpace: "java.lang.SecurityException: sorry - checkRead()" thrown as expected
            getFreeSpace: "java.lang.SecurityException: sorry - checkRead()" thrown as expected
          getUsableSpace: "java.lang.SecurityException: sorry - checkRead()" thrown as expected
        all 26 tests passed
        --- Testing c:\\sb\\prod\\1659592958\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\4552725401030746762\\8312758356040035656\\foo14892501083129272171.tmp
        C: 52428800 1535176 50893624 3% /cygdrive/c

        c:\\sb\\prod\\1659592958\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\4552725401030746762\\8312758356040035656\\foo14892501083129272171.tmp:
          df total= 53687091200 free = 0 usable = 52115070976
          getX total= 161051996160 free = 52115070976 usable = 52115070976
        ----------System.err:(17/1469)*----------
        WARNING: A terminally deprecated method in java.lang.System has been called
        WARNING: System::setSecurityManager has been called by GetXSpace (file:/C:/sb/prod/1659592958/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/classes/3/java/io/File/GetXSpace.d/)
        WARNING: Please consider reporting this to the maintainers of GetXSpace
        WARNING: System::setSecurityManager will be removed in a future release
        FAILED: 'c:\\sb\\prod\\1659592958\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\4552725401030746762\\8312758356040035656\\foo14892501083129272171.tmp': 53687091200 != 161051996160
        4 tests: 1 failure(s); first: java.lang.RuntimeException: 'c:\\sb\\prod\\1659592958\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\4552725401030746762\\8312758356040035656\\foo14892501083129272171.tmp': 53687091200 != 161051996160
        java.lang.RuntimeException: 1 test(s) failed
        at GetXSpace.main(GetXSpace.java:452)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:1589)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: 1 test(s) failed
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 1 test(s) failed
        ----------rerun:(40/5672)*----------

        Please note that this failure msg:

        FAILED: 'c:\\sb\\prod\\1659592958\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\4552725401030746762\\8312758356040035656\\foo14892501083129272171.tmp': 53687091200 != 161051996160

        is not very helpful. We have two values that are expected to
        match, but we have no idea from this output what the values
        represent.

        I'm starting this bug off as a P3 since this is a Tier2 failure.

        Attachments

          Issue Links

            Activity

              People

                bpb Brian Burkhalter
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: