Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6855551

java -Xrunhprof crashes when running with classes compiled with targed=7

XMLWordPrintable

    • b01
    • 7
    • b66
    • generic
    • generic

        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.

              ohair Kelly Ohair (Inactive)
              epavlova Ekaterina Pavlova
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: