Sdk seems to crash java application on openjdk - alpine based images
- Vorherrschende Sprache
- Java
- Sterne
- 300
- Forks
- 230
- Ø Merge
- 5 T. 1 Std.
- Gemergte PRs (30 T.)
- 5
Beschreibung
## 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.
Beitragsleitfaden
Rechercherichtung
Beginne damit, das Dockerfile im verlinkten java-dapr-alpine-reproduction-Repository zu bauen und zu starten, und vergleiche dann den Alpine-Lauf mit dem auskommentierten Base-Image, das funktioniert. Lies die erzeugte hs_err_pid1.log und verfolge den Fehler rund um new DaprClientBuilder().build(); fertig ist die Aufgabe, wenn das SDK ohne Absturz auf dem Alpine-basierten Image startet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- docker, java
- Bereich
- backend, devops
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100