-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
SIGSEGV error in docker (Java client) #14534
Comments
@lbenc135 Can you try if the same problem reproduces when you don't use Alpine based OpenJDK base image? Please test with |
netty/netty-tcnative#649 (comment)
Since adoptopenjdk is deprecated, can you try uring |
@lhotari |
Since this is an open source project, it will depend on someone contributing a fix for this problem. One form of contributing is contributing a simple repro case. That could be a separate GitHub repository which contains the repro and instructions. There might be workarounds. Some issues might be caused by shaded library versions conflicting with the application. Here's one issue about this in netty: netty/netty#11879 For Pulsar, it's possible to use the unshaded client. The coordinates are here: for maven <dependency>
<groupId>org.apache.pulsar</groupId>
<artifactId>pulsar-client-original</artifactId>
<version>2.8.2</version>
</dependency> for gradle implementation 'org.apache.pulsar:pulsar-client-original:2.8.2' Does your application use Netty or contain shaded Netty? |
When using pulsar-client-original, you might need to also use dependencyManagement in maven or Gradle's version alignment features to ensure that there aren't mixed versions of Netty and Netty netty-tcnative-boringssl-static libraries . For maven, something like this: <properties>
<netty.version>4.1.74.Final</netty.version>
<netty-tc-native.version>2.0.48.Final</netty-tc-native.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-bom</artifactId>
<version>${netty.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-tcnative-boringssl-static</artifactId>
<version>${netty-tc-native.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.pulsar</groupId>
<artifactId>pulsar-client-original</artifactId>
<version>2.8.2</version>
</dependency>
</dependencies> @lbenc135 Are you using maven or gradle? |
@lhotari Sorry for the delay. We're using Maven and the solution with |
The issue had no activity for 30 days, mark with Stale label. |
- release notes https://netty.io/news/2022/05/06/2-1-77-Final.html - improves Alpine / musl compatibility - could help issues such as apache#14534 apache#11415 apache#11224 apache#10798 - improves shading compatibility
) - release notes https://netty.io/news/2022/05/06/2-1-77-Final.html - improves Alpine / musl compatibility - could help issues such as #14534 #11415 #11224 #10798 - improves shading compatibility - fixes a bug related to the native epoll transport and epoll_pwait2
) - release notes https://netty.io/news/2022/05/06/2-1-77-Final.html - improves Alpine / musl compatibility - could help issues such as #14534 #11415 #11224 #10798 - improves shading compatibility - fixes a bug related to the native epoll transport and epoll_pwait2 (cherry picked from commit a8045fc)
) - release notes https://netty.io/news/2022/05/06/2-1-77-Final.html - improves Alpine / musl compatibility - could help issues such as #14534 #11415 #11224 #10798 - improves shading compatibility - fixes a bug related to the native epoll transport and epoll_pwait2 (cherry picked from commit a8045fc)
) - release notes https://netty.io/news/2022/05/06/2-1-77-Final.html - improves Alpine / musl compatibility - could help issues such as #14534 #11415 #11224 #10798 - improves shading compatibility - fixes a bug related to the native epoll transport and epoll_pwait2 (cherry picked from commit a8045fc)
…che#15646) - release notes https://netty.io/news/2022/05/06/2-1-77-Final.html - improves Alpine / musl compatibility - could help issues such as apache#14534 apache#11415 apache#11224 apache#10798 - improves shading compatibility - fixes a bug related to the native epoll transport and epoll_pwait2 (cherry picked from commit a8045fc)
…che#15646) - release notes https://netty.io/news/2022/05/06/2-1-77-Final.html - improves Alpine / musl compatibility - could help issues such as apache#14534 apache#11415 apache#11224 apache#10798 - improves shading compatibility - fixes a bug related to the native epoll transport and epoll_pwait2 (cherry picked from commit a8045fc) # Conflicts: # pulsar-sql/presto-distribution/LICENSE
…che#15646) - release notes https://netty.io/news/2022/05/06/2-1-77-Final.html - improves Alpine / musl compatibility - could help issues such as apache#14534 apache#11415 apache#11224 apache#10798 - improves shading compatibility - fixes a bug related to the native epoll transport and epoll_pwait2 (cherry picked from commit a8045fc)
…che#15646) - release notes https://netty.io/news/2022/05/06/2-1-77-Final.html - improves Alpine / musl compatibility - could help issues such as apache#14534 apache#11415 apache#11224 apache#10798 - improves shading compatibility - fixes a bug related to the native epoll transport and epoll_pwait2 (cherry picked from commit a8045fc)
The issue had no activity for 30 days, mark with Stale label. |
Got the same issue using
|
…che#15646) - release notes https://netty.io/news/2022/05/06/2-1-77-Final.html - improves Alpine / musl compatibility - could help issues such as apache#14534 apache#11415 apache#11224 apache#10798 - improves shading compatibility - fixes a bug related to the native epoll transport and epoll_pwait2 (cherry picked from commit a8045fc)
…che#15646) - release notes https://netty.io/news/2022/05/06/2-1-77-Final.html - improves Alpine / musl compatibility - could help issues such as apache#14534 apache#11415 apache#11224 apache#10798 - improves shading compatibility - fixes a bug related to the native epoll transport and epoll_pwait2 (cherry picked from commit a8045fc)
The issue had no activity for 30 days, mark with Stale label. |
upgrade from pulsar-client-all:2.10.0 to 2.10.1, the issue gone. |
@ypzhuang Thanks for your report. Closed as fixed. |
Describe the bug
Pulsar Java client crashes with the message below when trying to create a Pulsar client. I reproduced the crash with versions 2.9.1, 2.8.2 and 2.7.4, but same code works on 2.7.1. Also the crash doesn't happen when running on a local machine, but happens when running in a docker container (
openjdk:14-alpine
).Logs:
Full log:
hs_err_pid1.log
Code:
To Reproduce
Not sure. The description should hopefully provide enough info.
Expected behavior
Doesn't crash.
Desktop (please complete the following information):
Full info available in the full log file (under
S Y S T E M
near the end).The text was updated successfully, but these errors were encountered: