JDK-4307310 : ExceptionMark exception when reporting illegal package access (-Xfuture)
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.3.0
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2000-01-26
  • Updated: 2012-10-08
  • Resolved: 2000-05-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.3.0 sol-betaFixed
Related Reports
Relates :  
Relates :  
Relates :  
Description

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 ]

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: kest-sol-beta FIXED IN: kest-sol-beta INTEGRATED IN: kest-sol-beta
14-06-2004

EVALUATION See sqesvr/vsn/Bugs/4307310. The bug is not reporoducible without -Xfuture. It is also reproducible with -verify. mohammad.gharahgouzloo@Eng 2000-01-26 Fixed in HotSpot Merlin workspace. The fix was nontrivial and we have decided not to put it in to the Kestrel workspace. kenneth.russell@eng 2000-02-14 ---------------------------------------------------------------------------- Correction: the fix is in the Kestrel on Solaris workspace. kenneth.russell@eng 2000-05-09
14-02-2000