BewareMyPower opened a new issue, #23717: URL: https://github.com/apache/pulsar/issues/23717
### Search before asking - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar. ### Read release policy - [X] I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker. ### Version ``` apachepulsar/pulsar latest 93b5506ac8eb 12 days ago 481MB ``` ### Minimal reproduce step ``` git clone https://github.com/apache/pulsar-client-python.git cd pulsar-client-python ./build-support/pulsar-test-service-start.sh ``` The script is stuck at waiting for the 8080 port. ### What did you expect to see? The script should succeed ### What did you see instead? The Pulsar process in the container was crashed and the log from `/pulsar/logs` inside the container stopped at: ``` 2024-12-12T02:49:54,604+0000 [main] INFO org.apache.pulsar.broker.service.BrokerService - Started Pulsar Broker service ``` https://github.com/apache/pulsar/blob/f571aa1e6c247bea54d7a10ed508991fee1ea71b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java#L608-L612 As you can see, it didn't log the listened port. ### Anything else? [hs_err_pid296.log](https://github.com/user-attachments/files/18105163/hs_err_pid296.log) It crashed when loading the native SSL library: ``` Current thread (0x0000ffffaa98c800): JavaThread "main" [_thread_in_native, id=349, stack(0x0000ffffadd2d000,0x0000ffffadf2ba80) (2042K)] Stack: [0x0000ffffadd2d000,0x0000ffffadf2ba80], sp=0x0000ffffadf287f0, free space=2029k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libnetty_tcnative_linux_aarch_6415896617181118050458.so+0x240ec] init_have_lse_atomics+0xc C [ld-musl-aarch64.so.1+0x6b2fc] C [ld-musl-aarch64.so.1+0x6d058] dlopen+0xc4 V [libjvm.so+0xbc2078] os::Linux::dlopen_helper(char const*, char*, int)+0x28 V [libjvm.so+0xbc2364] os::dll_load(char const*, char*, int)+0x74 V [libjvm.so+0x90704c] JVM_LoadLibrary+0x88 C [libjava.so+0xf3cc] Java_jdk_internal_loader_NativeLibraries_load+0x21c j jdk.internal.loader.NativeLibraries.load(Ljdk/internal/loader/NativeLibraries$NativeLibraryImpl;Ljava/lang/String;ZZ)Z+0 [email protected] j jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open()Z+57 [email protected] j jdk.internal.loader.NativeLibraries.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)Ljdk/internal/loader/NativeLibrary;+254 [email protected] j jdk.internal.loader.NativeLibraries.loadLibrary(Ljava/lang/Class;Ljava/io/File;)Ljdk/internal/loader/NativeLibrary;+51 [email protected] j java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/io/File;)Ljdk/internal/loader/NativeLibrary;+31 [email protected] j java.lang.Runtime.load0(Ljava/lang/Class;Ljava/lang/String;)V+61 [email protected] j java.lang.System.load(Ljava/lang/String;)V+7 [email protected] j io.netty.util.internal.NativeLibraryUtil.loadLibrary(Ljava/lang/String;Z)V+5 j java.lang.invoke.LambdaForm$DMH+0x0000008800430000.invokeStatic(Ljava/lang/Object;Ljava/lang/Object;I)V+11 [email protected] j java.lang.invoke.LambdaForm$MH+0x0000008800431000.invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+54 [email protected] j java.lang.invoke.LambdaForm$MH+0x0000008800128400.invokeExact_MT(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+22 [email protected] j jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+72 [email protected] j jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+23 [email protected] J 3874 c1 java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; [email protected] (108 bytes) @ 0x0000ffff9bf827e4 [0x0000ffff9bf82240+0x00000000000005a4] j io.netty.util.internal.NativeLibraryLoader$1.run()Ljava/lang/Object;+53 J 1613 c1 java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object; [email protected] (9 bytes) @ 0x0000ffff9bb92fd0 [0x0000ffff9bb92e00+0x00000000000001d0] j io.netty.util.internal.NativeLibraryLoader.loadLibraryByHelper(Ljava/lang/Class;Ljava/lang/String;Z)V+10 j io.netty.util.internal.NativeLibraryLoader.loadLibrary(Ljava/lang/ClassLoader;Ljava/lang/String;Z)V+15 j io.netty.util.internal.NativeLibraryLoader.load(Ljava/lang/String;Ljava/lang/ClassLoader;)V+352 j io.netty.util.internal.NativeLibraryLoader.loadFirstAvailable(Ljava/lang/ClassLoader;[Ljava/lang/String;)V+33 j io.netty.handler.ssl.OpenSsl.loadTcNative()V+297 j io.netty.handler.ssl.OpenSsl.<clinit>()V+170 v ~StubRoutines::call_stub 0x0000ffffa2d99130 V [libjvm.so+0x83f4e8] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x218 V [libjvm.so+0x819560] InstanceKlass::call_class_initializer(JavaThread*)+0x280 V [libjvm.so+0x81b214] InstanceKlass::initialize_impl(JavaThread*)+0x5a4 V [libjvm.so+0xa71540] LinkResolver::resolve_static_call(CallInfo&, LinkInfo const&, bool, JavaThread*)+0x1a0 V [libjvm.so+0xa71cf0] LinkResolver::resolve_invoke(CallInfo&, Handle, constantPoolHandle const&, int, Bytecodes::Code, JavaThread*)+0x1e0 V [libjvm.so+0x837358] InterpreterRuntime::resolve_invoke(JavaThread*, Bytecodes::Code)+0x228 V [libjvm.so+0x8377b8] InterpreterRuntime::resolve_from_cache(JavaThread*, Bytecodes::Code)+0x108 j io.netty.handler.ssl.SslContext.defaultProvider()Lio/netty/handler/ssl/SslProvider;+0 j io.netty.handler.ssl.SslContext.defaultServerProvider()Lio/netty/handler/ssl/SslProvider;+0 j io.netty.handler.ssl.SslContext.newServerContextInternal(Lio/netty/handler/ssl/SslProvider;Ljava/security/Provider;[Ljava/security/cert/X509Certificate;Ljavax/net/ssl/TrustManagerFactory;[Ljava/security/cert/X509Certificate;Ljava/security/PrivateKey;Ljava/lang/String;Ljavax/net/ssl/KeyManagerFactory;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;JJLio/netty/handler/ssl/ClientAuth;[Ljava/lang/String;ZZLjava/security/SecureRandom;Ljava/lang/String;[Ljava/util/Map$Entry;)Lio/netty/handler/ssl/SslContext;+4 j io.netty.handler.ssl.SslContextBuilder.build()Lio/netty/handler/ssl/SslContext;+101 j org.apache.pulsar.common.util.SecurityUtility.createNettySslContextForServer(Lio/netty/handler/ssl/SslProvider;ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Set;Ljava/util/Set;Z)Lio/netty/handler/ssl/SslContext;+123 j org.apache.pulsar.common.util.DefaultPulsarSslFactory.buildNettySslContext()Lio/netty/handler/ssl/SslContext;+279 j org.apache.pulsar.common.util.DefaultPulsarSslFactory.createInternalSslContext()V+60 j org.apache.pulsar.broker.service.PulsarChannelInitializer.<init>(Lorg/apache/pulsar/broker/PulsarService;Lorg/apache/pulsar/broker/service/PulsarChannelInitializer$PulsarChannelOptions;)V+87 j org.apache.pulsar.broker.service.PulsarChannelInitializer$$Lambda+0x00000088004fa480.newPulsarChannelInitializer(Lorg/apache/pulsar/broker/PulsarService;Lorg/apache/pulsar/broker/service/PulsarChannelInitializer$PulsarChannelOptions;)Lorg/apache/pulsar/broker/service/PulsarChannelInitializer;+6 j org.apache.pulsar.broker.service.BrokerService.start()V+201 ``` ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
