United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7088020 SEGV in JNIHandleBlock::release_block
JDK-7088020 : SEGV in JNIHandleBlock::release_block

Details
Type:
Bug
Submit Date:
2011-09-07
Status:
Closed
Updated Date:
2013-04-24
Project Name:
JDK
Resolved Date:
2011-11-28
Component:
hotspot
OS:
solaris_10
Sub-Component:
compiler
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs22
Fixed Versions:
hs22 (b06)

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
Several tests on linux crash like this:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fd96584fd7c, pid=11126, tid=140571679655696
#
# JRE version: 7.0-b147
# Java VM: Java HotSpot(TM) 64-Bit Server VM (22.0-b02-internal-201109060011.never.7051798-fastdebug compiled mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x7ced7c]  JNIHandleBlock::release_block(JNIHandleBlock*, Thread*)+0x3c
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp

The problem is misalignment of the stack when calling throw WrongMethodTypeException.  The other uses of generate_throw_exception always call it with an aligned stack but method handles don't enforce alignment while shifting arguments around.

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/c565834fb592
                                     
2011-09-10
EVALUATION

7088020: SEGV in JNIHandleBlock::release_block
Reviewed-by: kvn, twisti

The throw_WrongMethodTypeException stub on x64 needs to align the
stack before calling into the runtime or it might crash.  I also
noticed that two stubs were dead which made an extra argument dead so
I cleaned that up at the same time.  Tested on linux-amd64 with new
regression test and failing tests from report.
                                     
2011-09-12
EVALUATION

See main CR
                                     
2011-09-24



Hardware and Software, Engineered to Work Together