JDK-6261890 : nsk/stress/stack/stack001 test fail with StackOverflowError exception
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2005-04-26
  • Updated: 2012-10-08
  • Resolved: 2005-10-04
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.
JDK 6
6 b48Fixed
Related Reports
Relates :  
Description
===================================================
Test Fail  :  nsk/stress/stack/stack001
Mode      : -Xcomp/-Xmixed
Platform  :  All platforms
Options   :  defaults
JDK 	  : Mustang b33
=====================================================
This test passed in b32.

Description:

    Provoke StackOverflowError by infinite recursion in Java method, 
    intercept the exception try to make one more invocation. 


Test Log:
http://sqeweb.sfbay/st4/VM/mustang/DTWS/results/1.6.0-ea-b33/ServerVM/64BITSOLSPARC5.10/mixed/VM/GC_FULLLOOK-22-WEEKLYmtg-VM-ServerVM-mixed-64BITSOLSPARC5.10-2005-04-22-14-58-32-0678/ResultDir/stack001/stack001.tlog

Steps to reproduce
1) cd /net/jano.sfbay/export/disk20/GammaBase/Bugs/{Bugid}
2) sh rerun.sh

Output:
###@###.### 2005-04-26 23:33:35 GMT
###@###.### 2005-04-27 00:10:42 GMT

Comments
EVALUATION There was code added for loading classes where if a class load returns an error, that same error is returned for subsequent requests. In this case, a StackOverflowError is returned for a thread that's testing that). I think StackOverflowError should not prevent an application from retrying to load that class. In this case the class was StackOverflowError. ---------------- Fixed 6261890: nsk/stress/stack/stack001 test fail with StackOverflowError exception The test broke b/c the work for VM Spec statement from the VM spec (5.4.3): "Subsequent attempts to resolve a symbolic reference that the Java virtual machine has previously unsuccessfully attempted to resolve always fails with the same error that was thrown as a result of the initial resolution attempt". This code was causing StackOverflowError to be rethrown, for the instanceof operator in the exception handler for the test,causing it to propagate stack overflow error to main. Gilad and Alan believe that VirtualMemoryErrors such as StackOverflowError and OutOfMemoryError, should be excepted by this spec change. Bug http://bt2ws.central.sun.com/CrPrint?id=6308271 filed to clarify the spec.
05-08-2005