dapr / dapr/java-sdk

Sdk seems to crash java application on openjdk - alpine based images

Open
#738 0 comments 1 reaction 0 assignees View on GitHub
kind/bug
Dominant language
Java
Stars
300
Forks
230
Avg merge
1d 20h
Merged PRs (30d)
4

Description

## 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.