Skip to content

fix: make Vulkan backend opt-in to prevent glibc mismatch SIGSEGV#5

Merged
aster-void merged 1 commit intomainfrom
fix/remove-ld-library-path
Feb 27, 2026
Merged

fix: make Vulkan backend opt-in to prevent glibc mismatch SIGSEGV#5
aster-void merged 1 commit intomainfrom
fix/remove-ld-library-path

Conversation

@aster-void
Copy link
Copy Markdown
Owner

@aster-void aster-void commented Feb 26, 2026

Summary

  • Vulkan バックエンドをデフォルト無効 (enableVulkan ? false) に変更
  • LD_LIBRARY_PATH ハックと VK_DRIVER_FILES 自動探索を削除
  • upstream の仕様に合わせて ~/.config/hazkey/env の source を makeWrapper に移行
  • Vulkan checks で enableVulkan = true を明示的に override
  • README に Vulkan の有効化方法と glibc 同期チェーンを記載

Why

GPU ドライバはホスト glibc にリンクされており、flake の glibc と不一致だと SIGSEGV する。デフォルトで Vulkan バックエンドを含めないことで、任意の環境でクラッシュしないことを保証する。

検証

  • nix build .#hazkey-server (CPU-only デフォルト)
  • hazkey-server.override { enableVulkan = true; } (Vulkan 有効)
  • nix fmt

@aster-void aster-void force-pushed the fix/remove-ld-library-path branch from 70d48ad to 64cfec7 Compare February 26, 2026 14:10
@aster-void aster-void marked this pull request as draft February 26, 2026 14:10
@aster-void aster-void changed the title fix: remove LD_LIBRARY_PATH fix: replace LB_LIBRARY_PATH with best-effort addDriverRunPath Feb 26, 2026
@aster-void aster-void force-pushed the fix/remove-ld-library-path branch from 64cfec7 to 0d128e6 Compare February 27, 2026 02:06
@aster-void aster-void changed the title fix: replace LB_LIBRARY_PATH with best-effort addDriverRunPath fix: make Vulkan backend opt-in to prevent glibc mismatch SIGSEGV Feb 27, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@aster-void aster-void force-pushed the fix/remove-ld-library-path branch from 0d128e6 to 1efd8a0 Compare February 27, 2026 02:14
@aster-void aster-void marked this pull request as ready for review February 27, 2026 02:15
@aster-void aster-void merged commit fc142b9 into main Feb 27, 2026
1 check passed
@aster-void aster-void deleted the fix/remove-ld-library-path branch February 27, 2026 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant