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

RegTest sun/awt/x11/XServerXShmAttachErrorTest/XServerXShmAttachErrorTest.sh

    XMLWordPrintable

Details

    • 2d
    • b15
    • x86
    • linux
    • Verified

    Description



      Name: iaR10016 Date: 07/17/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b10
                         (the test fails with previous JDK builds due to the bug #4877838)
      Testbase : RegTest-test
      Platform[s] : fails on Suse Linux 8.1/Gnome2, RedHat Linux 7.3/KDE, RedHat Linux 8.0/Gnome2
                         passes on Solaris sparc, Solaris x86
                         not valid for Windows systems
      switch/Mode : -client
      Falling test[s]: sun/awt/x11/XServerXShmAttachErrorTest/XServerXShmAttachErrorTest.sh

      Regression test sun/awt/x11/XServerXShmAttachErrorTest/XServerXShmAttachErrorTest.sh
      fails with timeout using JDK1.5.0-b10 on any Linux machines I have if timeout factor is less
      then 5.

      This test stable passes with timeout factor = 1 on any Solaris (sparc, x86) machines I have.

      I got the following results on Linux systems if I set timeout factor to 5:
      - the test hangs on Suse Linux 8.1 and RedHat Linux 8.0
      - the test fails with java.lang.RuntimeException on RedHat Linux 7.3
      - the test passes on RedHat Advanced Server 2.1

      Test source location:
      =====================
      /java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/sun/awt/x11/XServerXShmAttachErrorTest/*

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results/tiger/b10/tmp/XServerXShmAttachErrorTest.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change it's variables):
      --- script start ---
      #!/bin/sh

      RESULT_DIR=`pwd`
      WORK_DIR=$RESULT_DIR/workDir/test
      REPORT_DIR=$RESULT_DIR/reportDir
      JT_HOME="/net/linux-15/export/home/java/jct"
      JAVA_HOME="/net/linux-15/export/home/java/jdk1.5.0/x86"
      TEST_BASE_PATH="/net/linux-15/export/home/java/regtest/test"
      TESTWITH=$JAVA_HOME
      TESTJAVA=$JAVA_HOME
      JTOPTS="-client"
      TESTVMOPTS="-client"
      export CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"

      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 -cp $CLASSPATH $JTOPTS \ -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-6" -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/sun/awt/x11/XServerXShmAttachErrorTest/XServerXShmAttachErrorTest.sh"
      --- script end ---

      Test output (jtr part for RedHat Linux 7.3):
      ============================================
      #section:shell
      ----------messages:(3/163)----------
      command: shell XServerXShmAttachErrorTest.sh
      reason: User specified action: run shell/timeout=400 XServerXShmAttachErrorTest.sh
      elapsed time (seconds): 1741.148
      ----------System.out:(4/116)----------
      SHMSEG= 4096
      JDK under test is: /net/linux-15/export/home/java/jdk1.5.0/linux
      The test failed
      exit status was 1
      ----------System.err:(20/1395)----------
      instanceCmd=/.automount/linux-15/root/export/home/java/jdk1.5.0/linux/jre/bin/java -Dsun.java2d.pmoffscreen=true XServerXShmAttachErrorTest -max 4096 -instance 0
      instanceCmd=/.automount/linux-15/root/export/home/java/jdk1.5.0/linux/jre/bin/java -Dsun.java2d.pmoffscreen=true XServerXShmAttachErrorTest -max 4096 -instance 1
      instanceCmd=/.automount/linux-15/root/export/home/java/jdk1.5.0/linux/jre/bin/java -Dsun.java2d.pmoffscreen=true XServerXShmAttachErrorTest -max 4096 -instance 2
      instanceCmd=/.automount/linux-15/root/export/home/java/jdk1.5.0/linux/jre/bin/java -Dsun.java2d.pmoffscreen=true XServerXShmAttachErrorTest -max 4096 -instance 3
      instanceCmd=/.automount/linux-15/root/export/home/java/jdk1.5.0/linux/jre/bin/java -Dsun.java2d.pmoffscreen=true XServerXShmAttachErrorTest -max 4096 -instance 4
      Exit value of process instance 0 was 248
      ------ stderr output from instance 0
      ------ end of stderr output
      Exit value of process instance 1 was 0
      Exit value of process instance 2 was 0
      Exit value of process instance 3 was 248
      ------ stderr output from instance 3
      ------ end of stderr output
      Exit value of process instance 4 was 248
      ------ stderr output from instance 4
      ------ end of stderr output
      Exception in thread "main" java.lang.RuntimeException: FAILED: Some of the processes returned error.
            at TestStarter.<init>(TestStarter.java:43)
            at TestStarter.main(TestStarter.java:73)
      !
      result: Failed. Execution failed: exit code 1

      test result: Failed. Execution failed: exit code 1

      Specific machine info:
      ======================
      Hostname: linux-12
      OS: Suse Linux 8.1

      Hostname: linux-19
      OS: RedHat Linux 7.3

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

      Attachments

        Issue Links

          Activity

            People

              tdv Dmitri Trembovetski (Inactive)
              irasunw Ira Ira (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: