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

Got "sema_wait failed" error when ThreadGroup.stop()is called since b37 only on solaris

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • core-svc
    • None
    • b43
    • generic
    • solaris_9
    • Verified

      The test failed starting from b37. It happens on sol9, sol10, sol9-x86, sol-amd.
      Got "Java HotSpot(TM) Client VM warning: sema_wait failed: Error 0" when ThreadGroup.stop()is called.
      The method is deprecated. But since it is an regression from b37, suggest to do more investigation.

      To reproduce:
      1. Got to sqe sqe workspace:
      cd /net/sqe/global/nfs/sec/ws_6.0_int/security/src/Permissions/threadGroupStopTest
      2. copy everything over to your working directory
      3. setenv JAVA_HOME b37
      4. sh Run.sh
      ---------------------------------
      Sample output:

      /net/sqe/global/nfs/sec/users/lichun/ws_6.0_int/security/src/Permissions/threadGroupStopTest-) setenv JAVA_HOME /net/koori/onestop/jdk/6.0/promoted/ea/b37/binaries/solaris-sparc
      /net/sqe/global/nfs/sec/users/lichun/ws_6.0_int/security/src/Permissions/threadGroupStopTest-) !sh
      sh Run.sh
      java version "1.6.0-ea"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b37)
      Java HotSpot(TM) Client VM (build 1.6.0-ea-b37, mixed mode)
      Note: privilegedClasses/localTestThread.java uses or overrides a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      Note: ./privilegedClasses/testUtils.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      Note: threadGroupStopTest.java uses or overrides a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      Note: ./privilegedClasses/privilegedThread.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      -----------------------------------

      localTestThread started....
      Java HotSpot(TM) Client VM warning: sema_wait failed: Error 0
      -----------------------------------

      Test Name = threadGroupStopTest
      Test Args = void Expected Result = false
      Test Result = PASS: the test got Security exception as expected

      /net/sqe/global/nfs/sec/users/lichun/ws_6.0_int/security/src/Permissions/threadGroupStopTest-) setenv JAVA_HOME /net/koori/onestop/jdk/6.0/promoted/ea/b36/binaries/solaris-sparc
      /net/sqe/global/nfs/sec/users/lichun/ws_6.0_int/security/src/Permissions/threadGroupStopTest-) !sh
      sh Run.sh
      java version "1.6.0-ea"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b36)
      Java HotSpot(TM) Client VM (build 1.6.0-ea-b36, mixed mode)
      Note: privilegedClasses/localTestThread.java uses or overrides a
      deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      Note: ./privilegedClasses/testUtils.java uses unchecked or unsafe
      operations.
      Note: Recompile with -Xlint:unchecked for details.
      Note: threadGroupStopTest.java uses or overrides a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      Note: ./privilegedClasses/privilegedThread.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      -----------------------------------

      localTestThread started....
      -----------------------------------

      Test Name = threadGroupStopTest
      Test Args = void Expected Result = false
      Test Result = PASS: the test got Security exception as expected

      /net/sqe/global/nfs/sec/users/lichun/ws_6.0_int/security/src/Permissions/threadGroupStopTest-)

      ###@###.### 2005-06-01 21:04:39 GMT
      ###@###.### 2005-06-07 17:39:17 GMT

            alanb Alan Bateman
            lzhanorcl Lichun Zhan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: