Heads-up: intermittent SIGSEGV after upgrading to 10.0.3 (likely a krb5/Alpine issue)

Aperta
#6,596 2 commenti 19 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 6 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
csharp, kubernetes, linux, postgresql
Ambito
backend, databases

Direzione di ricerca

This issue is a report rather than a request for a change; it suspects krb5 1.22.1 on Alpine 3.23 and links dotnet/runtime#123782 and alpine/aports#18185. Read those upstream reports first; the issue says setting GssEncryptionMode=Disable resolves the crashes. No Npgsql fix is requested, so there is no project change or test to complete.

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

Descrizione

Not expecting a fix on your end, but sharing this in case others hit the same thing.

Environment

Npgsql version: 10.0.3
Runtime: .NET 10.0.8, Alpine 3.23
GssEncryptionMode: default (not set)

Observed behavior

After upgrading to 10.0.3, our Kubernetes pods restart intermittently — roughly once per hour — due to a SIGSEGV. The crashes surface first as failed health checks before the pod is terminated.

Root cause (suspected)

We believe this is caused by a bug in krb5 1.22.1 on Alpine 3.23, not in Npgsql itself. The relevant upstream issues are:

The reason this appeared after the Npgsql upgrade is possibly the changes to the GSS encryption in 10.0.3.

Mitigation

Setting GssEncryptionMode=Disable in the connection string resolves the crashes entirely.

Lingua principale
C#
Stelle
3.7k
Fork
890
Merge medio
4g 11h
PR unite (30g)
19

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di npgsql/npgsql

Tutte le issue di npgsql/npgsql

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.