United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7116216 StackOverflow GC crash
7116216 : StackOverflow GC crash

Details
Type:
Bug
Submit Date:
2011-11-28
Status:
Closed
Updated Date:
2013-04-24
Project Name:
JDK
Resolved Date:
2012-03-29
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs23

Related Reports
Backport:
Backport:

Sub Tasks

Description
1. Compile the two attached java files
   2. Invoke Java with arguments : -Xcomp -Xbatch StackOverflow
   3. (optional) To make sure garbage collection happens, a debug build is needed, and invoke Java with arguments : -XX:+FullGCALot -Xcomp -Xbatch StackOverflow

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/dca455dea3a7
                                     
2012-03-22
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/dca455dea3a7
                                     
2012-01-06
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-main/hotspot/rev/dca455dea3a7
                                     
2012-01-05
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-emb/hotspot/rev/dca455dea3a7
                                     
2011-12-21
EVALUATION

There are indeed two generic issues already identified:
- we cannot safely call TemplateInterpreter::_throw_StackOverflowError_entry
  since the caller may not be interpreted
- if SP is modified in gen_c2i_adapter, it must be restored to allow the
  stack walker to correctly parse the caller frame

This leads to different issues depending on the platform and on the JIT compiler used (failure to clean up the interpreter state, stack walking issues, oop parsing issues...).

In addition, for platforms which do not modify SP in gen_c2i_adapter, it might be safer to restore it anyway in case it has been modified by JSR292 adapters.
                                     
2011-12-16
SUGGESTED FIX

SAP would like to make contribution to fix this issue. The webrev is here:

http://www.sapjvm.com/yw/webrevs/StackOverflow_GC_Crash/
*** (#1 of 1): [ UNSAVED ] ###@###.###
                                     
2011-11-28



Hardware and Software, Engineered to Work Together