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

Đang mở
#6,596 2 bình luận 19 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 6 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
csharp, kubernetes, linux, postgresql
Lĩnh vực
backend, databases

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C#
Star
3.7k
Fork
890
Merge trung bình
4 ngày 11 giờ
Pull request đã merge (30 ngày)
19

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Không có Dockerfile hay tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của npgsql/npgsql

Tất cả issue của npgsql/npgsql

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.