grpc-java icon indicating copy to clipboard operation
grpc-java copied to clipboard

Getting SIGSEGV for grpc-netty-shaded 1.75 < + Java correto 22

Open guy-barnea opened this issue 1 week ago • 2 comments

I'm trying to upgrade my grpc-netty-shaded library to the latest version (at least 1.75.0) to resolve vulnerabilities.

I’m also running Java Corretto 22 and Spring Boot 3.4.7.

However, when trying to start my app, I’m encountering the following issue:

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x0000000000023b30, pid=16, tid=17

JRE version: OpenJDK Runtime Environment Corretto-22.0.2.9.1 (22.0.2+9) (build 22.0.2+9-FR)
Java VM: OpenJDK 64-Bit Server VM Corretto-22.0.2.9.1 (22.0.2+9-FR, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, serial gc, linux-aarch64)
Problematic frame:
C  [libio_grpc_netty_shaded_netty_tcnative_linux_aarch_645259337430298747407.so+0x2462c]  init_have_lse_atomics+0xc

guy-barnea avatar Dec 14 '25 21:12 guy-barnea

Hi, what gRPC version are you on ?

AgraVator avatar Dec 15 '25 06:12 AgraVator

I currently use in production gRPC version 1.70.0, but due a vuln found im trying to upgrade to 1.75.0 which causes the issue see the lib im trying to upgrade here https://mvnrepository.com/artifact/io.grpc/grpc-netty-shaded/1.75.0

guy-barnea avatar Dec 15 '25 07:12 guy-barnea

I see you're running on ARM64. Are you using Alpine Linux or a specific container when running?

ejona86 avatar Dec 16 '25 21:12 ejona86

yes, we are using Alpine Linux

guy-barnea avatar Dec 22 '25 21:12 guy-barnea

You should take a look at SECURITY.md. You should install gcompat and use LD_PRELOAD.

ejona86 avatar Dec 22 '25 22:12 ejona86