Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JVM Crashes when using Jabel plugin in BUCK #76

Open
raviagarwal7 opened this issue Jun 19, 2021 · 3 comments
Open

JVM Crashes when using Jabel plugin in BUCK #76

raviagarwal7 opened this issue Jun 19, 2021 · 3 comments

Comments

@raviagarwal7
Copy link
Contributor

Seeing the below JVM crash (on latest master). @bsideup any ideas on what could be wrong?
This is with the static initialization of bytebuddy.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f1f49ad8840, pid=52452, tid=57258
#
# JRE version: OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (11.0.11+9) (build 11.0.11+9)
# Java VM: OpenJDK 64-Bit Server VM AdoptOpenJDK-11.0.11+9 (11.0.11+9, mixed mode, tiered, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x609840]  ClassLoaderData::is_builtin_class_loader_data() const+0x0
#
# Core dump will be written. Default location: /tmp/cores/core.%e.%t.%h.52452 (max size 2097152 kB). To ensure a full core dump, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /mnt/jenkins/workspace/build-differential-bucket-fievel/hs_err_pid52452.log
[thread 57239 also had an error]
#
# If you would like to submit a bug report, please visit:
#   https://github.com/AdoptOpenJDK/openjdk-support/issues
#
Stack: [0x00007f0c6ffec000,0x00007f0c73fed000],  sp=0x00007f0c73fe99b8,  free space=65526k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x609840]  ClassLoaderData::is_builtin_class_loader_data() const+0x0
V  [libjvm.so+0xc7da45]  PackageEntry::set_exported(ModuleEntry*)+0x45
V  [libjvm.so+0xbfcc7a]  Modules::add_module_exports(_jobject*, char const*, _jobject*, Thread*)+0x48a
V  [libjvm.so+0x970726]  JVM_AddModuleExports+0x56
C  [libjava.so+0xedc8]  Java_java_lang_Module_addExports0+0xb8
j  java.lang.Module.addExports0(Ljava/lang/Module;Ljava/lang/String;Ljava/lang/Module;)V+0 [email protected]
j  java.lang.Module.implAddExportsOrOpens(Ljava/lang/String;Ljava/lang/Module;ZZ)V+185 [email protected]
j  java.lang.Module.implAddOpens(Ljava/lang/String;Ljava/lang/Module;)V+5 [email protected]
j  java.lang.System$2.addOpens(Ljava/lang/Module;Ljava/lang/String;Ljava/lang/Module;)V+3 [email protected]
j  jdk.internal.module.Modules.addOpens(Ljava/lang/Module;Ljava/lang/String;Ljava/lang/Module;)V+6 [email protected]
j  sun.instrument.InstrumentationImpl.lambda$redefineModule$3(Ljava/lang/Module;Ljava/lang/String;Ljava/lang/Module;)V+3 [email protected]
j  sun.instrument.InstrumentationImpl$$Lambda$3280.accept(Ljava/lang/Object;)V+12 [email protected]
J 31488 c1 java.lang.Iterable.forEach(Ljava/util/function/Consumer;)V [email protected] (39 bytes) @ 0x00007f1f197c5624 [0x00007f1f197c5580+0x00000000000000a4]
j  sun.instrument.InstrumentationImpl.redefineModule(Ljava/lang/Module;Ljava/util/Set;Ljava/util/Map;Ljava/util/Map;Ljava/util/Set;Ljava/util/Map;)V+409 [email protected]
v  ~StubRoutines::call_stub
V  [libjvm.so+0x8c22c9]  JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x3b9
V  [libjvm.so+0xd056ad]  invoke(InstanceKlass*, methodHandle const&, Handle, bool, objArrayHandle, BasicType, objArrayHandle, bool, Thread*) [clone .constprop.101]+0x43d
V  [libjvm.so+0xd066e2]  Reflection::invoke_method(oopDesc*, Handle, objArrayHandle, Thread*)+0x102
V  [libjvm.so+0x9779fc]  JVM_InvokeMethod+0xfc
J 34357  jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; [email protected] (0 bytes) @ 0x00007f1f29758030 [0x00007f1f29757f40+0x00000000000000f0]
J 34644 c1 jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; [email protected] (104 bytes) @ 0x00007f1f1b48514c [0x00007f1f1b4845c0+0x0000000000000b8c]
J 34388 c2 net.bytebuddy.utility.JavaDispatcher$ProxiedInvocationHandler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object; (290 bytes) @ 0x00007f1f29771774 [0x00007f1f29771080+0x00000000000006f4]
j  net.bytebuddy.dynamic.loading.$Proxy145.redefineModule(Ljava/lang/instrument/Instrumentation;Ljava/lang/Object;Ljava/util/Set;Ljava/util/Map;Ljava/util/Map;Ljava/util/Set;Ljava/util/Map;)V+46
j  net.bytebuddy.dynamic.loading.ClassInjector$UsingInstrumentation.redefineModule(Ljava/lang/instrument/Instrumentation;Lnet/bytebuddy/utility/JavaModule;Ljava/util/Set;Ljava/util/Map;Ljava/util/Map;Ljava/util/Set;Ljava/util/Map;)V+373
j  com.github.bsideup.jabel.JabelCompilerPlugin.<clinit>()V+145
v  ~StubRoutines::call_stub
V  [libjvm.so+0x8c22c9]  JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x3b9
V  [libjvm.so+0x89338e]  InstanceKlass::call_class_initializer(Thread*)+0x22e
V  [libjvm.so+0x8939db]  InstanceKlass::initialize_impl(Thread*)+0x4fb
V  [libjvm.so+0xd063df]  Reflection::invoke_constructor(oopDesc*, objArrayHandle, Thread*)+0xaf
V  [libjvm.so+0x977b89]  JVM_NewInstanceFromConstructor+0x79
J 1919  jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Ljava/lang/reflect/Constructor;[Ljava/lang/Object;)Ljava/lang/Object; [email protected] (0 bytes) @ 0x00007f1f27cf8418 [0x00007f1f27cf8340+0x00000000000000d8]
J 1918 c1 jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance([Ljava/lang/Object;)Ljava/lang/Object; [email protected] (89 bytes) @ 0x00007f1f1840700c [0x00007f1f184064c0+0x0000000000000b4c]
J 19302 c2 jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance([Ljava/lang/Object;)Ljava/lang/Object; [email protected] (9 bytes) @ 0x00007f1f28ead7d0 [0x00007f1f28ead7a0+0x0000000000000030]
J 4032 c1 java.util.ServiceLoader$ProviderImpl.newInstance()Ljava/lang/Object; [email protected] (134 bytes) @ 0x00007f1f1892891c [0x00007f1f18928580+0x000000000000039c]
J 4028 c1 java.util.ServiceLoader$3.next()Ljava/lang/Object; [email protected] (90 bytes) @ 0x00007f1f189240c4 [0x00007f1f18923c60+0x0000000000000464]
j  com.sun.tools.javac.api.BasicJavacTask.initPlugins(Ljava/util/Set;)V+199 [email protected]
j  com.sun.tools.javac.api.JavacTaskImpl.prepareCompiler(Z)V+102 [email protected]
j  com.sun.tools.javac.api.JavacTaskImpl.lambda$doCall$0()Lcom/sun/tools/javac/main/Main$Result;+2 [email protected]
j  com.sun.tools.javac.api.JavacTaskImpl$$Lambda$2735.call()Ljava/lang/Object;+4 [email protected]
j  com.sun.tools.javac.api.JavacTaskImpl.handleExceptions(Ljava/util/concurrent/Callable;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+17 [email protected]
j  com.sun.tools.javac.api.JavacTaskImpl.doCall()Lcom/sun/tools/javac/main/Main$Result;+13 [email protected]
j  com.sun.tools.javac.api.JavacTaskImpl.call()Ljava/lang/Boolean;+1 [email protected]
j  com.facebook.buck.jvm.java.plugin.adapter.JavacTaskWrapper.call()Ljava/lang/Boolean;+4
j  com.facebook.buck.jvm.java.plugin.adapter.BuckJavacTask.call()Ljava/lang/Boolean;+1
j  com.facebook.buck.jvm.java.plugin.adapter.BuckJavacTaskProxyImpl.call()Ljava/lang/Boolean;+4
j  com.facebook.buck.jvm.java.Jsr199JavacInvocation$CompilerWorker.lambda$startCompiler$2(Lcom/google/common/util/concurrent/SettableFuture;Lcom/facebook/buck/jvm/java/plugin/api/BuckJavacTaskProxy;)Ljava/lang/Integer;+84
j  com.facebook.buck.jvm.java.Jsr199JavacInvocation$CompilerWorker$$Lambda$2734.call()Ljava/lang/Object;+12
J 18194 c2 com.google.common.util.concurrent.TrustedListenableFutureTask.run()V (19 bytes) @ 0x00007f1f28d79ed4 [0x00007f1f28d79d80+0x0000000000000154]
J 16829 c1 java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V [email protected] (187 bytes) @ 0x00007f1f1a142f5c [0x00007f1f1a142160+0x0000000000000dfc]
J 19234 c1 java.util.concurrent.ThreadPoolExecutor$Worker.run()V [email protected] (9 bytes) @ 0x00007f1f1a61403c [0x00007f1f1a613fc0+0x000000000000007c]
j  java.lang.Thread.run()V+11 [email protected]
v  ~StubRoutines::call_stub
V  [libjvm.so+0x8c22c9]  JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x3b9
V  [libjvm.so+0x8c026d]  JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, Thread*)+0x1ed
V  [libjvm.so+0x96eddc]  thread_entry(JavaThread*, Thread*)+0x6c
V  [libjvm.so+0xec614a]  JavaThread::thread_main_inner()+0x1ba
V  [libjvm.so+0xec2bbf]  Thread::call_run()+0x14f
V  [libjvm.so+0xc62e2e]  thread_native_entry(Thread*)+0xee

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  java.lang.Module.addExports0(Ljava/lang/Module;Ljava/lang/String;Ljava/lang/Module;)V+0 [email protected]
j  java.lang.Module.implAddExportsOrOpens(Ljava/lang/String;Ljava/lang/Module;ZZ)V+185 [email protected]
j  java.lang.Module.implAddOpens(Ljava/lang/String;Ljava/lang/Module;)V+5 [email protected]
j  java.lang.System$2.addOpens(Ljava/lang/Module;Ljava/lang/String;Ljava/lang/Module;)V+3 [email protected]
j  jdk.internal.module.Modules.addOpens(Ljava/lang/Module;Ljava/lang/String;Ljava/lang/Module;)V+6 [email protected]
j  sun.instrument.InstrumentationImpl.lambda$redefineModule$3(Ljava/lang/Module;Ljava/lang/String;Ljava/lang/Module;)V+3 [email protected]
j  sun.instrument.InstrumentationImpl$$Lambda$3280.accept(Ljava/lang/Object;)V+12 [email protected]
J 31488 c1 java.lang.Iterable.forEach(Ljava/util/function/Consumer;)V [email protected] (39 bytes) @ 0x00007f1f197c5624 [0x00007f1f197c5580+0x00000000000000a4]
j  sun.instrument.InstrumentationImpl.redefineModule(Ljava/lang/Module;Ljava/util/Set;Ljava/util/Map;Ljava/util/Map;Ljava/util/Set;Ljava/util/Map;)V+409 [email protected]
v  ~StubRoutines::call_stub
J 34357  jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; [email protected] (0 bytes) @ 0x00007f1f29757fb7 [0x00007f1f29757f40+0x0000000000000077]
J 34644 c1 jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; [email protected] (104 bytes) @ 0x00007f1f1b48514c [0x00007f1f1b4845c0+0x0000000000000b8c]
J 34388 c2 net.bytebuddy.utility.JavaDispatcher$ProxiedInvocationHandler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object; (290 bytes) @ 0x00007f1f29771774 [0x00007f1f29771080+0x00000000000006f4]
j  net.bytebuddy.dynamic.loading.$Proxy145.redefineModule(Ljava/lang/instrument/Instrumentation;Ljava/lang/Object;Ljava/util/Set;Ljava/util/Map;Ljava/util/Map;Ljava/util/Set;Ljava/util/Map;)V+46
j  net.bytebuddy.dynamic.loading.ClassInjector$UsingInstrumentation.redefineModule(Ljava/lang/instrument/Instrumentation;Lnet/bytebuddy/utility/JavaModule;Ljava/util/Set;Ljava/util/Map;Ljava/util/Map;Ljava/util/Set;Ljava/util/Map;)V+373
j  com.github.bsideup.jabel.JabelCompilerPlugin.<clinit>()V+145
v  ~StubRoutines::call_stub
J 1919  jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Ljava/lang/reflect/Constructor;[Ljava/lang/Object;)Ljava/lang/Object; [email protected] (0 bytes) @ 0x00007f1f27cf83a3 [0x00007f1f27cf8340+0x0000000000000063]
J 1918 c1 jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance([Ljava/lang/Object;)Ljava/lang/Object; [email protected] (89 bytes) @ 0x00007f1f1840700c [0x00007f1f184064c0+0x0000000000000b4c]
J 19302 c2 jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance([Ljava/lang/Object;)Ljava/lang/Object; [email protected] (9 bytes) @ 0x00007f1f28ead7d0 [0x00007f1f28ead7a0+0x0000000000000030]
J 4032 c1 java.util.ServiceLoader$ProviderImpl.newInstance()Ljava/lang/Object; [email protected] (134 bytes) @ 0x00007f1f1892891c [0x00007f1f18928580+0x000000000000039c]
J 4028 c1 java.util.ServiceLoader$3.next()Ljava/lang/Object; [email protected] (90 bytes) @ 0x00007f1f189240c4 [0x00007f1f18923c60+0x0000000000000464]
j  com.sun.tools.javac.api.BasicJavacTask.initPlugins(Ljava/util/Set;)V+199 [email protected]
j  com.sun.tools.javac.api.JavacTaskImpl.prepareCompiler(Z)V+102 [email protected]
j  com.sun.tools.javac.api.JavacTaskImpl.lambda$doCall$0()Lcom/sun/tools/javac/main/Main$Result;+2 [email protected]
j  com.sun.tools.javac.api.JavacTaskImpl$$Lambda$2735.call()Ljava/lang/Object;+4 [email protected]
j  com.sun.tools.javac.api.JavacTaskImpl.handleExceptions(Ljava/util/concurrent/Callable;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+17 [email protected]
j  com.sun.tools.javac.api.JavacTaskImpl.doCall()Lcom/sun/tools/javac/main/Main$Result;+13 [email protected]
j  com.sun.tools.javac.api.JavacTaskImpl.call()Ljava/lang/Boolean;+1 [email protected]
j  com.facebook.buck.jvm.java.plugin.adapter.JavacTaskWrapper.call()Ljava/lang/Boolean;+4
j  com.facebook.buck.jvm.java.plugin.adapter.BuckJavacTask.call()Ljava/lang/Boolean;+1
j  com.facebook.buck.jvm.java.plugin.adapter.BuckJavacTaskProxyImpl.call()Ljava/lang/Boolean;+4
j  com.facebook.buck.jvm.java.Jsr199JavacInvocation$CompilerWorker.lambda$startCompiler$2(Lcom/google/common/util/concurrent/SettableFuture;Lcom/facebook/buck/jvm/java/plugin/api/BuckJavacTaskProxy;)Ljava/lang/Integer;+84
j  com.facebook.buck.jvm.java.Jsr199JavacInvocation$CompilerWorker$$Lambda$2734.call()Ljava/lang/Object;+12
J 18194 c2 com.google.common.util.concurrent.TrustedListenableFutureTask.run()V (19 bytes) @ 0x00007f1f28d79ed4 [0x00007f1f28d79d80+0x0000000000000154]
J 16829 c1 java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V [email protected] (187 bytes) @ 0x00007f1f1a142f5c [0x00007f1f1a142160+0x0000000000000dfc]
J 19234 c1 java.util.concurrent.ThreadPoolExecutor$Worker.run()V [email protected] (9 bytes) @ 0x00007f1f1a61403c [0x00007f1f1a613fc0+0x000000000000007c]
j  java.lang.Thread.run()V+11 [email protected]
v  ~StubRoutines::call_stub

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x000000000000005d

Register to memory mapping:

RAX=0x00007f1f404440d0 points into unknown readable memory: 0x00007f1f67ad58bb | bb 58 ad 67 1f 7f 00 00
RBX=0x00007f1f4046e820 points into unknown readable memory: 0x0000002b00000002 | 02 00 00 00 2b 00 00 00
RCX=0x000000000000006f is an unknown value
RDX=0x0000000000000001 is an unknown value
RSP=0x00007f0c73fe99b8 is pointing into the stack for thread: 0x00007f0fe4054800
RBP=0x00007f0c73fe9a10 is pointing into the stack for thread: 0x00007f0fe4054800
RSI=0x00007f0d980200c0 points into unknown readable memory: 0x63657479622f6e6f | 6f 6e 2f 62 79 74 65 63
RDI=0x0000000000000055 is an unknown value
R8 =0x00000000fc239451 is an unknown value
R9 =0x0000000000000063 is an unknown value
R10=0x00007f1f4045bc00 points into unknown readable memory: 0x000000006b9d84af | af 84 9d 6b 00 00 00 00
R11=0x0 is NULL
R12=0x00007f0d980200c0 points into unknown readable memory: 0x63657479622f6e6f | 6f 6e 2f 62 79 74 65 63
R13=0x00007f0d980200c0 points into unknown readable memory: 0x63657479622f6e6f | 6f 6e 2f 62 79 74 65 63
R14=0x00007f1f404440d0 points into unknown readable memory: 0x00007f1f67ad58bb | bb 58 ad 67 1f 7f 00 00
R15=0x00007f1f4045bc00 points into unknown readable memory: 0x000000006b9d84af | af 84 9d 6b 00 00 00 00


Registers:
RAX=0x00007f1f404440d0, RBX=0x00007f1f4046e820, RCX=0x000000000000006f, RDX=0x0000000000000001
RSP=0x00007f0c73fe99b8, RBP=0x00007f0c73fe9a10, RSI=0x00007f0d980200c0, RDI=0x0000000000000055
R8 =0x00000000fc239451, R9 =0x0000000000000063, R10=0x00007f1f4045bc00, R11=0x0000000000000000
R12=0x00007f0d980200c0, R13=0x00007f0d980200c0, R14=0x00007f1f404440d0, R15=0x00007f1f4045bc00
RIP=0x00007f1f49ad8840, EFLAGS=0x0000000000010283, CSGSFS=0x002b000000000033, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007f0c73fe99b8)
0x00007f0c73fe99b8:   00007f1f4a14c7fc 00007f0d2405f470
0x00007f0c73fe99c8:   00007f0d2405f858 00007f0d2405f480
0x00007f0c73fe99d8:   00007f0fe4057080 00007f0c73fe9a40
0x00007f0c73fe99e8:   00007f1f4045bc00 00007f1f40026780 

Instructions: (pc=0x00007f1f49ad8840)
0x00007f1f49ad8740:   c0 49 89 c5 0f 85 5a ff ff ff 48 c7 43 40 00 00
0x00007f1f49ad8750:   00 00 48 89 df e8 06 0e 5f 00 48 89 43 50 e9 67
0x00007f1f49ad8760:   ff ff ff 0f 1f 44 00 00 48 8b 40 08 e9 fb fe ff
0x00007f1f49ad8770:   ff 0f 1f 80 00 00 00 00 48 c7 43 40 00 00 00 00
0x00007f1f49ad8780:   e9 39 ff ff ff 90 66 2e 0f 1f 84 00 00 00 00 00
0x00007f1f49ad8790:   55 48 8b 3f 48 89 e5 48 85 ff 74 07 5d ff 25 75
0x00007f1f49ad87a0:   a1 f1 00 31 c0 5d c3 90 0f 1f 84 00 00 00 00 00
0x00007f1f49ad87b0:   66 83 7f 24 00 7f 19 55 48 8b 3f 48 89 e5 ff 15
0x00007f1f49ad87c0:   6c a1 f1 00 48 85 c0 0f 95 c0 5d c3 0f 1f 40 00
0x00007f1f49ad87d0:   b8 01 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00
0x00007f1f49ad87e0:   48 8b 7f 08 48 85 ff 74 17 55 48 89 e5 ff 15 2d
0x00007f1f49ad87f0:   a1 f1 00 5d 48 89 c7 e9 f4 b9 87 00 0f 1f 40 00
0x00007f1f49ad8800:   31 ff e9 e9 b9 87 00 90 0f 1f 84 00 00 00 00 00
0x00007f1f49ad8810:   48 8b 7f 08 48 85 ff 74 17 55 48 89 e5 ff 15 fd
0x00007f1f49ad8820:   a0 f1 00 5d 48 89 c7 e9 14 ba 87 00 0f 1f 40 00
0x00007f1f49ad8830:   31 ff e9 09 ba 87 00 90 0f 1f 84 00 00 00 00 00
0x00007f1f49ad8840:   48 8b 47 08 48 85 c0 74 6f 55 48 89 e5 53 48 89
0x00007f1f49ad8850:   fb 48 89 c7 48 83 ec 08 ff 15 c2 a0 f1 00 48 85
0x00007f1f49ad8860:   c0 74 3d 48 8b 7b 08 48 85 ff 74 44 ff 15 ae a0
0x00007f1f49ad8870:   f1 00 48 89 c7 e8 76 b9 87 00 84 c0 75 22 48 8b
0x00007f1f49ad8880:   7b 08 48 85 ff 74 39 ff 15 93 a0 f1 00 48 89 c7
0x00007f1f49ad8890:   48 83 c4 08 5b 5d e9 a5 b9 87 00 0f 1f 44 00 00
0x00007f1f49ad88a0:   48 83 c4 08 b8 01 00 00 00 5b 5d c3 0f 1f 40 00
0x00007f1f49ad88b0:   31 ff eb c1 0f 1f 40 00 b8 01 00 00 00 c3 66 90
0x00007f1f49ad88c0:   31 ff eb cc 66 90 66 2e 0f 1f 84 00 00 00 00 00
0x00007f1f49ad88d0:   55 48 89 e5 53 48 89 fb 48 83 ec 08 48 8b 7f 08
0x00007f1f49ad88e0:   48 85 ff 74 41 ff 15 35 a0 f1 00 48 85 c0 74 36
0x00007f1f49ad88f0:   48 8b 7b 08 48 85 ff 74 3f ff 15 21 a0 f1 00 48
0x00007f1f49ad8900:   89 c7 e8 e9 b8 87 00 84 c0 75 1b 48 8b 7b 08 48
0x00007f1f49ad8910:   85 ff 74 2c ff 15 06 a0 f1 00 48 89 c7 e8 1e b9
0x00007f1f49ad8920:   87 00 84 c0 74 07 0f b6 43 21 83 f0 01 48 83 c4
0x00007f1f49ad8930:   08 5b 5d c3 0f 1f 40 00 31 ff eb c6 0f 1f 40 00 


Stack slot to memory mapping:
stack at sp + 0 slots: 0x00007f1f4a14c7fc: <offset 0x0000000000c7d7fc> in /mnt/jenkins/java_home/11.0.11_9/lib/server/libjvm.so at 0x00007f1f494cf000
stack at sp + 1 slots: 0x00007f0d2405f470 points into unknown readable memory: 0x0000000000000000 | 00 00 00 00 00 00 00 00
stack at sp + 2 slots: 0x00007f0d2405f858 points into unknown readable memory: 0x0000000000000025 | 25 00 00 00 00 00 00 00
stack at sp + 3 slots: 0x00007f0d2405f480 points into unknown readable memory: 0x00007f0d2405ec24 | 24 ec 05 24 0d 7f 00 00
stack at sp + 4 slots: 0x00007f0fe4057080 points into unknown readable memory: 0x00007f0f00000002 | 02 00 00 00 0f 7f 00 00
stack at sp + 5 slots: 0x00007f0c73fe9a40 is pointing into the stack for thread: 0x00007f0fe4054800
stack at sp + 6 slots: 0x00007f1f4045bc00 points into unknown readable memory: 0x000000006b9d84af | af 84 9d 6b 00 00 00 00
stack at sp + 7 slots: 0x00007f1f40026780 points into unknown readable memory: 0x0000000000000001 | 01 00 00 00 00 00 00 00

@bsideup
Copy link
Owner

bsideup commented Jun 19, 2021

Hi @raviagarwal7,

Uff... that's a hard one and would require help from @raphw I believe, as it seems that ByteBuddy's module instrumentation isn't working correctly.

Since I have never used BUCK, would it be possible for you to provide a tiny reproducer? This would help a lot!

@raphw
Copy link

raphw commented Jun 19, 2021

Can you reproduce this stabelly? It's a bug in OpenJDK. With a reproducer, that's rather valuable and likely gets fixed.

Byte Buddy has a gotten a much cleaner approach to forwards compatibility. Try setting - Dnet.bytebuddy.generate=true. Maybe its the reflection that's broken.

@raviagarwal7
Copy link
Contributor Author

thanks @bsideup & @raphw ,

I will try to get a tiny reproducer. meanwhile, will try out the setting -Dnet.bytebuddy.generate=true and let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants