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

REG: AWT testcases deadlock

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Introduced In Build:
      b51
    • Introduced In Version:
      6
    • Resolved In Build:
      b58
    • CPU:
      sparc
    • OS:
      solaris_10
    • Verification:
      Verified

      Description

      AWT testcases deadlock when run on solaris 10 since mustang b51. They work fine on b50.

      I could not create a standalone testcase to reproduce the hang. Any of the following testcases can hang when run in tonga. Attached is the thread dump on two cases when it hanged.

      AWT_Component/Automated/setLocRelativeTo/SetLocDlgComHid/SetLocDlgComHidTest.html jtreg
      AWT_Component/Automated/setLocRelativeTo/SetLocJFrmComHid/SetLocJFrmComHidTest.html jtreg
      AWT_Component/Automated/setLocRelativeTo/SetLocJWin/SetLocJWinTest.html jtreg
      AWT_Component/Automated/setLocRelativeTo/SetLocFrmComHid/SetLocFrmComHidTest.html jtreg
      AWT_Component/Automated/setLocRelativeTo/SetLocJWinComHid/SetLocJWinComHidTest.html jtreg
      AWT_Component/Automated/setLocRelativeTo/SetLocWin/SetLocWinTest.html jtreg
      AWT_Component/Automated/setLocRelativeTo/SetLocWinComHid/SetLocWinComHidTest.html jtreg
      AWT_Component/Automated/setLocRelativeTo/SetLocJDlgComHid/SetLocJDlgComHidTest.html jtreg

      The hang is consistently reproducible with testcases which tests setLocationRelativeTo. They always hang when the test is complete and when the last window is about to be closed.
      To run these testcases using Tonga, do the following:

      The SQE workspace is present at
      /net/sqesvr-nfs.sfbay/global/nfs/ws1/6.0

      1. Create a child workspace of that. Include the following files/folders: awt, share, Run.sh, Run_main.sh, Run_legacy.sh, Run_Standalone.ksh, suite-cfg.xml
      2. Create a testlist which contains the testcases mentioned in the bug description within the awt/testlist directory of the workspace. (Just copy the list and paste it into a new file, say 'tests')
      3. Create a copy of the arguments file awt/docs/standalone/sample_arg.txt (create it anywhere) and change the values of JAVA_HOME (java to test), RESULTS_DIR (create a directory and give it), STABLE_JAVA (any jdk path will do). Uncomment the TESTLIST variable and supply the newly created testlist file (just the name of the file) as value for it.
      4. Run the testcases as follows:
      ksh Run_Standalone.ksh -a <give_the_complete_path_to_the_new_arguments_file_here>

      All the testcases should be executed (some GUIs should be displayed) and the script will exit. All the testcases should pass. Due to the bug, some of the testcases hang and gets timed out with failed status.

      More details on executing the testcases can be found here:
      /net/sqesvr-nfs.sfbay/global/nfs/ws1/6.0/docs/Run_Standalone_readme.txt

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              campbell Christopher Campbell (Inactive)
              Reporter:
              gramachasunw Girish Ramachandran (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: