runtime/appcds/GraalWithLimitedMetaspace.java ran with Graal as JIT compiler crashes on macosx-64
# SIGSEGV (0xb) at pc=0x0000000109f60544, pid=99904, tid=7683
#
# JRE version: Java(TM) SE Runtime Environment (11.0) (fastdebug build 11-internal+0-2018-03-21-2008371.epavlova.jdk.hs)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 11-internal+0-2018-03-21-2008371.epavlova.jdk.hs, interpreted mode, tiered, jvmci, jvmci compiler, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# V [libjvm.dylib+0x960544] visit_all_interfaces(Array<Klass*>*, InterfaceVisiterClosure*)+0x30
#
--------------- T H R E A D ---------------
Current thread (0x00007fd7a8800620): JavaThread "main" [_thread_in_vm, id=7683, stack(0x000000010ac76000,0x000000010ad76000)]
Stack: [0x000000010ac76000,0x000000010ad76000], sp=0x000000010ad72f00, free space=1011k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.dylib+0x960544] visit_all_interfaces(Array<Klass*>*, InterfaceVisiterClosure*)+0x30
V [libjvm.dylib+0x960656] klassItable::compute_itable_size(Array<Klass*>*)+0x2a
V [libjvm.dylib+0x3e4278] ClassFileParser::post_process_parsed_stream(ClassFileStream const*, ConstantPool*, Thread*)+0xa88
V [libjvm.dylib+0x3e2b07] ClassFileParser::ClassFileParser(ClassFileStream*, Symbol*, ClassLoaderData*, Handle, InstanceKlass const*, GrowableArray<Handle>*, ClassFileParser::Publicity, Thread*)+0x5ab
V [libjvm.dylib+0x95b86d] KlassFactory::create_from_stream(ClassFileStream*, Symbol*, ClassLoaderData*, Handle, InstanceKlass const*, GrowableArray<Handle>*, Thread*)+0x481
V [libjvm.dylib+0xccddc8] SystemDictionary::resolve_from_stream(Symbol*, Handle, Handle, ClassFileStream*, Thread*)+0x136
V [libjvm.dylib+0x80c210] jvm_define_class_common(JNIEnv_*, char const*, _jobject*, signed char const*, int, _jobject*, char const*, Thread*)+0x49f
V [libjvm.dylib+0x80c470] JVM_DefineClassWithSource+0x1bc
C [libjava.dylib+0x1675] Java_java_lang_ClassLoader_defineClass2+0x121
j java.lang.ClassLoader.defineClass2(Ljava/lang/ClassLoader;Ljava/lang/String;Ljava/nio/ByteBuffer;IILjava/security/ProtectionDomain;Ljava/lang/String;)Ljava/lang/Class;+0 java.base@11-internal
j java.lang.ClassLoader.defineClass(Ljava/lang/String;Ljava/nio/ByteBuffer;Ljava/security/ProtectionDomain;)Ljava/lang/Class;+93 java.base@11-internal
j java.security.SecureClassLoader.defineClass(Ljava/lang/String;Ljava/nio/ByteBuffer;Ljava/security/CodeSource;)Ljava/lang/Class;+8 java.base@11-internal
j jdk.internal.loader.BuiltinClassLoader.defineClass(Ljava/lang/String;Ljdk/internal/loader/BuiltinClassLoader$LoadedModule;)Ljava/lang/Class;+127 java.base@11-internal
j jdk.internal.loader.BuiltinClassLoader.findClassInModuleOrNull(Ljdk/internal/loader/BuiltinClassLoader$LoadedModule;Ljava/lang/String;)Ljava/lang/Class;+9 java.base@11-internal
j jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Ljava/lang/String;Z)Ljava/lang/Class;+55 java.base@11-internal
j jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Ljava/lang/String;)Ljava/lang/Class;+3 java.base@11-internal
j jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Ljava/lang/String;Z)Ljava/lang/Class;+66 java.base@11-internal
j jdk.internal.loader.BuiltinClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+3 java.base@11-internal
j jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+36 java.base@11-internal
j java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;+3 java.base@11-internal
v ~StubRoutines::call_stub
V [libjvm.dylib+0x6fb160] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x478
V [libjvm.dylib+0x6f9e99] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, Thread*)+0x2a9
V [libjvm.dylib+0x6fa0c1] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, Handle, Thread*)+0xcb
V [libjvm.dylib+0x3e877b] ClassListParser::load_current_class(Thread*)+0x295
V [libjvm.dylib+0xac3b75] MetaspaceShared::preload_classes(char const*, Thread*)+0x67
V [libjvm.dylib+0xac39c4] MetaspaceShared::preload_and_dump(Thread*)+0x174
V [libjvm.dylib+0xd11b86] Threads::create_vm(JavaVMInitArgs*, bool*)+0xa54
V [libjvm.dylib+0x7c3664] JNI_CreateJavaVM+0xb8
C [java+0x4470] JavaMain+0x113
C [libsystem_pthread.dylib+0x393b] _pthread_body+0xb4
C [libsystem_pthread.dylib+0x3887] _pthread_body+0x0
C [libsystem_pthread.dylib+0x308d] thread_start+0xd
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j java.lang.ClassLoader.defineClass2(Ljava/lang/ClassLoader;Ljava/lang/String;Ljava/nio/ByteBuffer;IILjava/security/ProtectionDomain;Ljava/lang/String;)Ljava/lang/Class;+0 java.base@11-internal
j java.lang.ClassLoader.defineClass(Ljava/lang/String;Ljava/nio/ByteBuffer;Ljava/security/ProtectionDomain;)Ljava/lang/Class;+93 java.base@11-internal
j java.security.SecureClassLoader.defineClass(Ljava/lang/String;Ljava/nio/ByteBuffer;Ljava/security/CodeSource;)Ljava/lang/Class;+8 java.base@11-internal
j jdk.internal.loader.BuiltinClassLoader.defineClass(Ljava/lang/String;Ljdk/internal/loader/BuiltinClassLoader$LoadedModule;)Ljava/lang/Class;+127 java.base@11-internal
j jdk.internal.loader.BuiltinClassLoader.findClassInModuleOrNull(Ljdk/internal/loader/BuiltinClassLoader$LoadedModule;Ljava/lang/String;)Ljava/lang/Class;+9 java.base@11-internal
j jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Ljava/lang/String;Z)Ljava/lang/Class;+55 java.base@11-internal
j jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Ljava/lang/String;)Ljava/lang/Class;+3 java.base@11-internal
j jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Ljava/lang/String;Z)Ljava/lang/Class;+66 java.base@11-internal
j jdk.internal.loader.BuiltinClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+3 java.base@11-internal
j jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+36 java.base@11-internal
j java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;+3 java.base@11-internal
v ~StubRoutines::call_stub