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

TEST_BUG: Regression-cte 4804447/ZeroLengthArray.java fails

    Details

    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      x86
    • OS:
      linux

      Description



      Name: vsR10238 Date: 03/31/2004


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b44
      Testbase : Regression-cte
      Platform[s] : SuSE SLES 8 (AMD 64)
      switch/Mode : -d64
      Falling test[s]:
               CTE_REGTEST/Generic/4804447/ZeroLengthArray.java
      CTE_REGTEST/Generic/4475963/Test4475963.sh
      CTE_REGTEST/Generic/4363638/Test4363638.sh
      CTE_REGTEST/Generic/4514097/PingPong.java

      Regression-cte test CTE_REGTEST/Generic/4804447/ZeroLengthArray.java fails with JDK1.5.0.
      The test does not contain a library for amd64.

      libzla.so-Linux-64 is the Itanium library:

      bash-2.05b$ objdump -a libzla.so-Linux-64

      libzla.so-Linux-64: file format elf64-ia64-little
      libzla.so-Linux-64

      Execution of ZeroLengthArray.class fails with UnsatisfiedLinkError.
      This occures as with libzla.so-Linux being copied to libzla.so, as with libzla.so-Linux-64.
      LD_LIBRARY_PATH was set to .

      vsh@sqe12> /net/linux-15/export/home/java/jdk1.5.0/linux_amd64/bin/java ZeroLengthArray
      Exception in thread "main" java.lang.UnsatisfiedLinkError: /net/linux-15/export/home/tmp/4804447/libzla.so: /net/linux-15/export/home/tmp/4804447/libzla.so: cannot open shared object file: No such
      file or directory
               at java.lang.ClassLoader$NativeLibrary.load(Native Method)
               at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1739)
               at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1635)
               at java.lang.Runtime.load0(Runtime.java:766)
               at java.lang.System.load(System.java:963)
               at ZeroLengthArray.main(ZeroLengthArray.java:16)

      The following tests seem to fail due to the same reason:

      CTE_REGTEST/Generic/4475963/Test4475963.sh
      CTE_REGTEST/Generic/4363638/Test4363638.sh
      CTE_REGTEST/Generic/4514097/PingPong.java


      Test source location:
      =====================
      /net/jdk/export/jpse04/Regression/1.5.0/test/CTE_REGTEST/Generic/4804447/ZeroLengthArray.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b44/regtest/linux/SuSE_SLES_8_sqe12/workDir/cte/CTE_REGTEST/Generic/4804447/ZeroLengthArray.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables)

      --- script start ---
      #!/bin/sh
      RESULT_DIR=`pwd`
      WORK_DIR=$RESULT_DIR/workDir/test
      REPORT_DIR=$RESULT_DIR/reportDir

      #Paths in Java Software:
      JT_HOME="/java/re/jct-tools/3.1.2/archive/fcs/binaries"
      JEMMY_JAR="/net/jdk.sfbay/export/jpse04/Jemmy/jemmy.jar"
      JAVA_HOME="/java/re/jdk/1.5.0/promoted/all/b44/binaries/linux-i586"
      TEST_BASE_PATH="/net/jdk/export/jpse04/Regression/1.5.0/test"

      #Alternative paths outside Java Software
      #JT_HOME="/net/koori.sfbay/onestop/jct-tools/3.1.2/archive/fcs/binaries"
      #JEMMY_JAR="/net/jdk.sfbay/export/jpse04/Jemmy/jemmy.jar"
      #JAVA_HOME="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b44/binaries/linux-i586"
      #TEST_BASE_PATH="/net/jdk/export/jpse04/Regression/1.5.0/test"

      #Alternative paths for the NSK site:
      #JT_HOME="/net/linux-15/export/home/java/jct"
      #JEMMY_JAR="$JT_HOME/jemmy/jemmy.jar"
      #JAVA_HOME="/net/linux-15/export/home/java/jdk1.5.0/linux"
      #TEST_BASE_PATH="/net/linux-15/export/home/java/regtest.tiger/cte"


      TESTVMOPTS="-d64"
      CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"

      TEST="CTE_REGTEST/Generic/4804447/ZeroLengthArray.java"

      mkdir -p $WORK_DIR/scratch 2>&1
      mkdir -p $WORK_DIR/jtData 2>&1
      mkdir -p $REPORT_DIR 2>&1

      #rm $WORK_DIR/jtData/ResultCache.jtw 2>&1

      cd $WORK_DIR/scratch

      $JAVA_HOME/bin/java -showversion -server -cp $CLASSPATH -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=$DISPLAY,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JEMMY_JAR,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=$DISPLAY -DlocalHost=`uname -n` -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/$TEST"

      --- script end ---

      Script output:
      ==============

      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/210)----------
      command: compile /net/linux-15/export/home/java/regtest.tiger/cte/CTE_REGTEST/Generic/4804447/ZeroLengthArray.java
      reason: User specified action: run compile ZeroLengthArray.java
      elapsed time (seconds): 1.09
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:shell
      ----------messages:(3/118)----------
      command: shell Test4804447.sh
      reason: User specified action: run shell Test4804447.sh
      elapsed time (seconds): 2.198
      ----------System.out:(5/140)----------
        inflated: libzla.so-Linux
        inflated: libzla.so-Linux-64
        inflated: libzla.so-i386
        inflated: libzla.so-sparc
        inflated: libzla.so-sparc-64
      ----------System.err:(1/36)----------
      java full version "1.5.0-beta2-b44"
      result: Failed. Execution failed: exit code 1


      test result: Failed. Execution failed: exit code 1


      Specific machine info:
      ======================
      Hostname: sqe12
      OS: SuSE SLES 8


      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              asaha Abhijit Saha
              Reporter:
              vshsunw Vsh Vsh (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: