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

ExceptionMark exception when reporting illegal package access (-Xfuture)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.0
    • 1.3.0
    • hotspot
    • sol-beta
    • generic
    • generic



      An illegal package access test case supplied by a licensee results in a crash
      in 1.3 RC1 build "S".

      Test case is attached to this bug (test.zip).


      H:\>D:\bin\jdk1.3\bin\java -version
      java version "1.3.0rc1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-T)
      Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)

      H:\>D:\bin\jdk1.3\bin\java -Xfuture -cp test.zip packA.ClsC
      #
      # HotSpot Virtual Machine Error, Internal Error
      #
      # Error ID: 455843455054494F4E530E43505000CA
      #

      abnormal program termination

      H:\>D:\bin\jdk1.3\bin\java_g -Xfuture -cp test.zip packA.ClsC
      java.lang.IllegalAccessError
       - klass: 'java/lang/IllegalAccessError'
      fields:
         - private transient 'backtrace' 'Ljava/lang/Object;' @2 'java/lang/Object'a
      [3] {other class} (82caf50)
         - private 'detailMessage' 'Ljava/lang/String;' @3 "try to access class packA
      .ClsE from class packB.ClsD" (82caf28)
      #
      # HotSpot Virtual Machine Error, Internal Error
      #
      # Fatal: ExceptionMark destructor expects no pending exceptions
      #
      # Error ID: C:/hotspot1.3\src\share\vm\utilities\exceptions.cpp, 202
      #



      $ /usr/local/java/jdk1.3/solaris/bin/java -version
      java version "1.3.0rc1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-T)
      Java HotSpot(TM) Client VM (build 1.3.0rc1-S, interpreted mode)

      $ /usr/local/java/jdk1.3/solaris/bin/java -Xfuture -cp test.zip packA.ClsC
      #
      # HotSpot Virtual Machine Error, Internal Error
      #
      # Error ID: 455843455054494F4E530E43505000D1 01
      #

      $ /usr/local/java/jdk1.3/solaris/bin/java_g -Xfuture -cp test.zip packA.ClsC
      java.lang.IllegalAccessError
       - klass: 'java/lang/IllegalAccessError'
      fields:
         - private transient 'backtrace' 'Ljava/lang/Object;' @2 'java/lang/Object'a [3] {other class} (e8026c98)
         - private 'detailMessage' 'Ljava/lang/String;' @3 "try to access class packA.ClsE from class packB.ClsD" (e8026c70)
      #
      # HotSpot Virtual Machine Error, Internal Error
      #
      # Fatal: ExceptionMark destructor expects no pending exceptions
      #
      # Error ID: /usr/re/hotsparc_client1.3/ws/solsparc/hotsparc_client1.3fcs/build/solaris/../../src/share/vm/utilities/exceptions.cpp, 209 [ Patched ]

            kbr Kenneth Russell (Inactive)
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: