If you download 8u45, and then also download the 8u45 demos, and then try to run heapTracker demo, then you will crash with:
$ ~/Install/jdk1.8.0_45/bin/java -agentpath:./lib/libheapTracker.so Hello
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000000000000, pid=25090, tid=140547090478848
#
# JRE version: (8.0_45-b14) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C 0x0000000000000000
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/shade/temp/jdk1.8.0_45/demo/jvmti/heapTracker/hs_err_pid25090.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
Aborted (core dumped)
...running the same with latest jdk9-dev fastdebug reveals:
$ ~/trunks/jdk9-dev/build/linux-x86_64-normal-server-fastdebug/jdk/bin/java -agentpath:./lib/libheapTracker.so Hello
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc: SuppressErrorAt=/linkResolver.cpp:1180
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/shade/trunks/jdk9-dev/hotspot/src/share/vm/interpreter/linkResolver.cpp:1180), pid=25103, tid=139757890959104
# assert(resolved_method->method_holder()->is_linked()) failed: must be linked
#
# JRE version: (9.0) (build )
# Java VM: OpenJDK 64-Bit Server VM (1.9.0-internal-fastdebug-shade_2015_04_21_21_59-b00 mixed mode linux-amd64 compressed oops)
# Core dump written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %P" (or dumping to /home/shade/temp/jdk1.8.0_45/demo/jvmti/heapTracker/core.25103)
#
# An error report file with more information is saved as:
# /home/shade/temp/jdk1.8.0_45/demo/jvmti/heapTracker/hs_err_pid25103.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 139757890959104
Dumping core ...
Aborted (core dumped)
Surprisingly, running jdk9-dev-fastdebug with jdk9-dev built demos is fine.
Running 8u45 with jdk9-dev built demos triggers the same crash.
(Initially assigned to hotspot/jvmti, looks like a demo issue)
$ ~/Install/jdk1.8.0_45/bin/java -agentpath:./lib/libheapTracker.so Hello
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000000000000, pid=25090, tid=140547090478848
#
# JRE version: (8.0_45-b14) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C 0x0000000000000000
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/shade/temp/jdk1.8.0_45/demo/jvmti/heapTracker/hs_err_pid25090.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
Aborted (core dumped)
...running the same with latest jdk9-dev fastdebug reveals:
$ ~/trunks/jdk9-dev/build/linux-x86_64-normal-server-fastdebug/jdk/bin/java -agentpath:./lib/libheapTracker.so Hello
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc: SuppressErrorAt=/linkResolver.cpp:1180
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/shade/trunks/jdk9-dev/hotspot/src/share/vm/interpreter/linkResolver.cpp:1180), pid=25103, tid=139757890959104
# assert(resolved_method->method_holder()->is_linked()) failed: must be linked
#
# JRE version: (9.0) (build )
# Java VM: OpenJDK 64-Bit Server VM (1.9.0-internal-fastdebug-shade_2015_04_21_21_59-b00 mixed mode linux-amd64 compressed oops)
# Core dump written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %P" (or dumping to /home/shade/temp/jdk1.8.0_45/demo/jvmti/heapTracker/core.25103)
#
# An error report file with more information is saved as:
# /home/shade/temp/jdk1.8.0_45/demo/jvmti/heapTracker/hs_err_pid25103.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 139757890959104
Dumping core ...
Aborted (core dumped)
Surprisingly, running jdk9-dev-fastdebug with jdk9-dev built demos is fine.
Running 8u45 with jdk9-dev built demos triggers the same crash.
(Initially assigned to hotspot/jvmti, looks like a demo issue)
- relates to
-
JDK-8069005 Hotspot crashes in System.out.println with assert(resolved_method->method_holder()->is_linked()) failed: must be linked
-
- Resolved
-