-
Bug
-
Resolution: Fixed
-
P2
-
7
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2185793 | OpenJDK6 | Kelly Ohair | P3 | Resolved | Fixed | b18 |
Starting from jdk7b62 "java -Xrunhprof" crashes with ACCESS_VIOLATION on windows and SIGSEGV on linux/solaris when running with classes compiled with targed=7.
The crash occurs on all platforms.
The crash started to appear from jdk7b62 where default javac options -source and -target
were changed from 6 to 7, see 6827026 "Change javac source and target default to 7"
for more details.
Steps to reproduce:
> JDK7B62_HOME/bin/javac Hello.java
> JDK7B62_HOME/bin/java -Xrunhprof:file=hprof.out Hello
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d3b1057, pid=6300, tid=676
#
# JRE version: 7.0-b62
# Java VM: Java HotSpot(TM) Client VM (16.0-b04 mixed mode windows-x86 )
# Problematic frame:
# C [java_crw_demo.dll+0x1057]
No crash in case java file is compiled with "-source 6 -target 6":
> JDK7B62_HOME/bin/javac -source 6 -target 6 Hello.java
> JDK7B62_HOME/bin/java -Xrunhprof:file=hprof.out Hello
Dumping Java heap ... allocation sites ... done.
The crash occurs on all platforms.
The crash started to appear from jdk7b62 where default javac options -source and -target
were changed from 6 to 7, see 6827026 "Change javac source and target default to 7"
for more details.
Steps to reproduce:
> JDK7B62_HOME/bin/javac Hello.java
> JDK7B62_HOME/bin/java -Xrunhprof:file=hprof.out Hello
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d3b1057, pid=6300, tid=676
#
# JRE version: 7.0-b62
# Java VM: Java HotSpot(TM) Client VM (16.0-b04 mixed mode windows-x86 )
# Problematic frame:
# C [java_crw_demo.dll+0x1057]
No crash in case java file is compiled with "-source 6 -target 6":
> JDK7B62_HOME/bin/javac -source 6 -target 6 Hello.java
> JDK7B62_HOME/bin/java -Xrunhprof:file=hprof.out Hello
Dumping Java heap ... allocation sites ... done.
- backported by
-
JDK-2185793 java -Xrunhprof crashes when running with classes compiled with targed=7
-
- Resolved
-
- relates to
-
JDK-6855180 Fix classfile version check in java_crw_demo
-
- Closed
-