概要
Runnable メソッド参照 (System::gc) の 448 インスタンスで null MethodHandle の invokeExact メソッドを呼び出すメイン メソッドを持つインターフェイスをコンパイルできました。
インターフェイスを実行すると、Java ランタイム環境によって致命的なエラーが検出されました。
- pc=0xb71b9bde、pid=12918、tid=3030936432 の SIGSEGV (0xb)
- JRE バージョン: Java(TM) SE ランタイム環境 (8.0_51-b16) (ビルド 1.8.0_51-b16)
- Java VM: Java HotSpot(TM) クライアント VM (25.51-b03 混合モード linux-x86 )
- 問題のあるフレーム:
- V [libjvm.so+0x507bde] SignatureIterator::parse_type()+0x1ce
ソースコードと実行結果のリンク: http://ideone.com/3oh7Uk
ソース
interface $ {
static void main(String[] $) throws Throwable {
((java.lang.invoke.MethodHandle) null).invokeExact(
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc,
(Runnable) System::gc
);
}
}
結果
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb71b9bde, pid=12918, tid=3030936432
#
# JRE version: Java(TM) SE Runtime Environment (8.0_51-b16) (build 1.8.0_51-b16)
# Java VM: Java HotSpot(TM) Client VM (25.51-b03 mixed mode linux-x86 )
# Problematic frame:
# V [libjvm.so+0x507bde] SignatureIterator::parse_type()+0x1ce
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# Can not save log file, dump to screen..
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb71b9bde, pid=12918, tid=3030936432
#
# JRE version: Java(TM) SE Runtime Environment (8.0_51-b16) (build 1.8.0_51-b16)
# Java VM: Java HotSpot(TM) Client VM (25.51-b03 mixed mode linux-x86 )
# Problematic frame:
# V [libjvm.so+0x507bde] SignatureIterator::parse_type()+0x1ce
#
# 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://b...content-available-to-author-only...a.com/bugreport/crash.jsp
#