apache / apache/pulsar

load liborg_apache_pulsar_shade_netty_transport_native_epoll_x86_64 error

Open
#16,158 1 comment 0 reactions 0 assignees View on GitHub
Stale type/bug
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

Register to memory mapping:

RAX=0x0000000000000000 is an unknown value
RBX=0x000056501be467a0 is an unknown value
RCX=0x0000000000000000 is an unknown value
RDX=0x0000000000000003 is an unknown value
RSP=0x00007fb371c06678 is pointing into the stack for thread: 0x000056501e008800
RBP=0x00007fb371c066b0 is pointing into the stack for thread: 0x000056501e008800
RSI=0x0000000000000018 is an unknown value
RDI=0x000056501be467a8 is an unknown value
R8 =0x00007fb370d01219: _fini+0x1381 in /tmp/liborg_apache_pulsar_shade_netty_transport_native_epoll_x86_645693429313777346908.so at 0x00007fb370cf4000
R9 =0x8080808080808080 is an unknown value
R10=0x0000000000000000 is an unknown value
R11=0x0000000000000406 is an unknown value
R12=0x00007fb370d00014: _fini+0x17c in /tmp/liborg_apache_pulsar_shade_netty_transport_native_epoll_x86_645693429313777346908.so at 0x00007fb370cf4000
R13=0x0000000000000018 is an unknown value
R14=0x00007fb371c066ec is pointing into the stack for thread: 0x000056501e008800
R15=0x00007fb371c06918 is pointing into the stack for thread: 0x000056501e008800

Stack: [0x00007fb371b0d000,0x00007fb371c0dad0], sp=0x00007fb371c06678, free space=997k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x0000000000003fd6
C [liborg_apache_pulsar_shade_netty_transport_native_epoll_x86_645693429313777346908.so+0xbd07] netty_jni_util_JNI_OnLoad+0x67
C [libjava.so+0xeb04] Java_java_lang_ClassLoader_00024NativeLibrary_load+0xb4
C 0x00000005ce93d438

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j java.lang.ClassLoader$NativeLibrary.load(Ljava/lang/String;Z)V+0
j java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/io/File;)Z+328
j java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V+48
j java.lang.Runtime.load0(Ljava/lang/Class;Ljava/lang/String;)V+57
j java.lang.System.load(Ljava/lang/String;)V+7
j org.apache.pulsar.shade.io.netty.util.internal.NativeLibraryUtil.loadLibrary(Ljava/lang/String;Z)V+5
v ~StubRoutines::call_stub
J 2779 sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; (0 bytes) @ 0x00007fb3830691b7 [0x00007fb383069140+0x77]
J 11410 C2 sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; (104 bytes) @ 0x00007fb3840c5ff4 [0x00007fb3840c5f80+0x74]
J 8353 C2 java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; (62 bytes) @ 0x00007fb383c381b0 [0x00007fb383c38100+0xb0]
j org.apache.pulsar.shade.io.netty.util.internal.NativeLibraryLoader$1.run()Ljava/lang/Object;+53
v ~StubRoutines::call_stub
J 1099 java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object; (0 bytes) @ 0x00007fb382c931cf [0x00007fb382c93180+0x4f]
j org.apache.pulsar.shade.io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(Ljava/lang/Class;Ljava/lang/String;Z)V+10
j org.apache.pulsar.shade.io.netty.util.internal.NativeLibraryLoader.loadLibrary(Ljava/lang/ClassLoader;Ljava/lang/String;Z)V+15
j org.apache.pulsar.shade.io.netty.util.internal.NativeLibraryLoader.load(Ljava/lang/String;Ljava/lang/ClassLoader;)V+359
j org.apache.pulsar.shade.io.netty.channel.epoll.Native.loadNativeLibrary()V+60
j org.apache.pulsar.shade.io.netty.channel.epoll.Native.()V+76
v ~StubRoutines::call_stub
j org.apache.pulsar.shade.io.netty.channel.epoll.Epoll.()V+28
v ~StubRoutines::call_stub
j org.apache.pulsar.common.util.netty.EventLoopUtil.newEventLoopGroup(IZLjava/util/concurrent/ThreadFactory;)Lorg/apache/pulsar/shade/io/netty/channel/EventLoopGroup;+0
j org.apache.pulsar.client.impl.PulsarClientImpl.getEventLoopGroup(Lorg/apache/pulsar/client/impl/conf/ClientConfigurationData;)Lorg/apache/pulsar/shade/io/netty/channel/EventLoopGroup;+16
j org.apache.pulsar.client.impl.PulsarClientImpl.(Lorg/apache/pulsar/client/impl/conf/ClientConfigurationData;)V+3
j org.apache.pulsar.client.impl.ClientBuilderImpl.build()Lorg/apache/pulsar/client/api/PulsarClient;+131

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

heap address: 0x00000005ce400000, size: 7964 MB, Compressed Oops mode: Zero based, Oop shift amount: 3
Narrow klass base: 0x0000000000000000, Narrow klass shift: 3
Compressed class space size: 1073741824 Address: 0x00000007c0000000

Heap:
def new generation total 153216K, used 9233K [0x00000005ce400000, 0x00000005d8a40000, 0x00000006742a0000)
eden space 136192K, 4% used [0x00000005ce400000, 0x00000005ce995e30, 0x00000005d6900000)
from space 17024K, 20% used [0x00000005d79a0000, 0x00000005d7d0e8c8, 0x00000005d8a40000)
to space 17024K, 0% used [0x00000005d6900000, 0x00000005d6900000, 0x00000005d79a0000)
tenured generation total 339968K, used 62282K [0x00000006742a0000, 0x0000000688ea0000, 0x00000007c0000000)
the space 339968K, 18% used [0x00000006742a0000, 0x0000000677f72a18, 0x0000000677f72c00, 0x0000000688ea0000)
Metaspace used 94279K, capacity 101690K, committed 101976K, reserved 1138688K
class space used 12114K, capacity 13345K, committed 13440K, reserved 1048576K

VM Arguments:
jvm_args: -Djava.library.path=/user/lib -Djava.security.egd=file:/dev/./urandom -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=10151 -XX:ErrorFile=/storage/hs_error.log
java_command: /hpmd-api.jar
java_class_path (initial): /hpmd-api.jar
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin
LD_LIBRARY_PATH=/usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64:/usr/lib/jvm/java-1.8-openjdk/jre/../lib/amd64

OS:NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.9.4
PRETTY_NAME="Alpine Linux v3.9"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"

Contributor guide

Open the contributing guide

Research direction

Start with the native-loading path shown in org.apache.pulsar.shade.io.netty.channel.epoll.Native.loadNativeLibrary and EventLoopUtil.newEventLoopGroup, using the provided JVM crash trace. Reproduce the failure on Alpine Linux 3.9 with Java 8 and the listed library paths. Done means identifying a reproducible cause and documenting or validating a confirmed fix for the native epoll library load.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, networking, operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.