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

FileInputStream.available() Throw IOException When Encountering Negative Available Values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8
    • None
    • core-libs
    • None
    • b86
    • generic
    • generic
    • Verified

    Description

      Testcase, java/io/FileInputStream/LargeFileAvailable.java, failed intermittently in the nightly test

      nightly-b82_2013-03-19 regression report shows its failure in sparc platform.

      Here is its log.

      #Test Results (version 2)
      #Wed Mar 20 02:34:20 PDT 2013
      #checksum:4ab8b0518063d682
      #-----testdescription-----
      $file=/export/home/aurora/sandbox/testbase/test/java/io/FileInputStream/LargeFileAvailable.java
      $root=/export/home/aurora/sandbox/testbase/test
      keywords=bug6402006 bug7030573
      run=ASSUMED_ACTION main LargeFileAvailable\n
      source=LargeFileAvailable.java
      title=Test if available returns correct value when reading a large file.

      #-----environment-----

      #-----testresult-----
      description=file\:/export/home/aurora/sandbox/testbase/test/java/io/FileInputStream/LargeFileAvailable.java
      elapsed=331 0\:00\:00.331
      end=Wed Mar 20 02\:34\:20 PDT 2013
      environment=regtest
      execStatus=Failed. Execution failed\: `main' threw exception\: java.io.IOException
      hostname=sc11136067
      javatestOS=SunOS 5.10 (sparc)
      javatestVersion=4.4
      jtregVersion=jtreg 4.1 fcs b05
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build compile main
      start=Wed Mar 20 02\:34\:20 PDT 2013
      test=java/io/FileInputStream/LargeFileAvailable.java
      user.name=aurora
      work=/export/home/aurora/sandbox/gresults/testoutput/jdk_io/JTwork/java/io/FileInputStream

      #section:script_messages
      ----------messages:(5/228)----------
      JDK under test: (/export/home/aurora/sandbox/jdk)
      java version "1.8.0-ea"
      Java(TM) SE Runtime Environment (build 1.8.0-ea-langtools-nightly-h3738-20130319-b82-b00)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b23, mixed mode)


      #section:build
      ----------messages:(3/103)----------
      command: build LargeFileAvailable
      reason: Named class compiled on demand
      elapsed time (seconds): 0.302
      result: Passed. Build successful

      #section:compile
      ----------messages:(3/185)----------
      command: compile /export/home/aurora/sandbox/testbase/test/java/io/FileInputStream/LargeFileAvailable.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.3
      result: Passed. Compilation successful

      #section:main
      ----------messages:(3/135)----------
      command: main LargeFileAvailable
      reason: Assumed action based on file name: run main LargeFileAvailable
      elapsed time (seconds): 0.026
      ----------System.out:(3/212)----------
      Skipped 2610080768 bytes available() returns 2147483647 remaining=2610080768
      Skipped 10 bytes available() returns 2147483647 remaining=2610080758
      Skipped 2610080768 bytes available() returns -10 remaining=-10
      ----------System.err:(14/700)----------
      java.io.IOException
      at java.io.FileInputStream.available(Native Method)
      at LargeFileAvailable.skipBytes(LargeFileAvailable.java:90)
      at LargeFileAvailable.main(LargeFileAvailable.java:63)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:487)
      at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:706)
      at java.lang.Thread.run(Thread.java:722)

      JavaTest Message: Test threw exception: java.io.IOException
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.io.IOException


      test result: Failed. Execution failed: `main' threw exception: java.io.IOException

      Attachments

        Issue Links

          Activity

            People

              dxu Dan Xu (Inactive)
              dxu Dan Xu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: