dapr / dapr/java-sdk

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

Aperta
#738 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
kind/bug
Lingua principale
Java
Stelle
300
Fork
230
Merge medio
5g 1h
PR unite (30g)
5

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia costruendo e avviando il Dockerfile nel repository java-dapr-alpine-reproduction collegato, quindi confronta l’esecuzione su Alpine con l’immagine di base commentata che funziona. Leggi il file hs_err_pid1.log generato e traccia l’errore attorno a new DaprClientBuilder().build(); il lavoro è completato quando l’SDK si avvia senza arrestarsi in modo anomalo sull’immagine basata su Alpine.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
docker, java
Ambito
backend, devops
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.