java-sdk
java-sdk copied to clipboard
Sdk seems to crash java application on openjdk - alpine based images
Expected Behavior
Hi, when I use the Dapr Java Sdk (new DaprClientBuilder().build()) in an Openjdk Docker image based on Alpine Linux, it should work normally.
Actual Behavior
The application crashes on Alpine based images, with following message:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000000003efe, pid=1, tid=10
#
# JRE version: OpenJDK Runtime Environment (17.0+14) (build 17-ea+14)
# Java VM: OpenJDK 64-Bit Server VM (17-ea+14, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C 0x0000000000003efe
#
# Core dump will be written. Default location: //core
#
# An error report file with more information is saved as:
# //hs_err_pid1.log
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Steps to Reproduce the Problem
Reproduction is here https://github.com/lukasstanek/java-dapr-alpine-reproduction Just build the Dockerfile and start. (other base image commented out, works as expected)
Release Note
RELEASE NOTE: FIX Application crash on Alpine Linux based Docker images.