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

SEGV in CompilationPolicy::must_be_compiled(methodHandle,int)

XMLWordPrintable

      A crash in JRuby:

      Stack: [0xfe2f0000,0xfe3f0000], sp=0xfe3e71e0, free space=988k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x344efc] bool CompilationPolicy::must_be_compiled(methodHandle,int)+0xc;; __1cRCompilationPolicyQmust_be_compiled6FnMmethodHandle_i_b_+0xc
      V [libjvm.so+0x5dfa7c] void CallInfo::set_common(KlassHandle,KlassHandle,methodHandle,methodHandle,int,Thread*)+0x50;; __1cICallInfoKset_common6MnLKlassHandle_1nMmethodHandle_2ipnGThread__v_+0x50
      V [libjvm.so+0x5df9f4] void CallInfo::set_handle(methodHandle,Handle,Handle,Thread*)+0xb8;; __1cICallInfoKset_handle6MnMmethodHandle_nGHandle_2pnGThread__v_+0xb8
      V [libjvm.so+0x5e5a8c] void LinkResolver::resolve_invokedynamic(CallInfo&,constantPoolHandle,int,Thread*)+0x458;; __1cMLinkResolverVresolve_invokedynamic6FrnICallInfo_nSconstantPoolHandle_ipnGThread__v_+0x458
      V [libjvm.so+0x12495c] void LinkResolver::resolve_invoke(CallInfo&,Handle,constantPoolHandle,int,Bytecodes::Code,Thread*)+0x108;; __1cMLinkResolverOresolve_invoke6FrnICallInfo_nGHandle_nSconstantPoolHandle_inJBytecodesECode_pnGThread__v_+0x108
      V [libjvm.so+0x468520] void InterpreterRuntime::resolve_invokedynamic(JavaThread*)+0x22c;; __1cSInterpreterRuntimeVresolve_invokedynamic6FpnKJavaThread__v_+0x22c
      ...
      j org.jruby.runtime.CompiledBlock.yield(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Binding;Lorg/jruby/runtime/Block$Type;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+49
      j org.jruby.runtime.CompiledBlock.yield(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Binding;Lorg/jruby/runtime/Block$Type;)Lorg/jruby/runtime/builtin/IRubyObject;+9
      j org.jruby.runtime.Block.yield(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+14
      ...
      j org.jruby.internal.runtime.methods.DynamicMethod.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+11
      j org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;Lorg/jruby/runtime/Block;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+57
      j org.jruby.runtime.callsite.CachingCallSite.callBlock(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+50
      j org.jruby.runtime.callsite.CachingCallSite.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+6
      j org.jruby.RubyClass.newInstance(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+15
      j org.jruby.RubyClass$INVOKER$i$newInstance.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+7
      j org.jruby.runtime.invokedynamic.InvocationLinker.fail(Lorg/jruby/runtime/invokedynamic/JRubyCallSite;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+99
      j java.lang.invoke.LambdaForm$DMH.invokeStatic_LLLLLL_L(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+20
      j java.lang.invoke.LambdaForm$BMH.reinvoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+32
      j java.lang.invoke.LambdaForm$NamedFunction.invoke_LLLLL_L(Ljava/lang/invoke/MethodHandle;[Ljava/lang/Object;)Ljava/lang/Object;+36
      J java.lang.invoke.LambdaForm$DMH.invokeStatic_LL_L(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
      ...

            twisti Christian Thalinger (Inactive)
            kshiroko Kirill Shirokov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: