Conversation
Agent-Logs-Url: https://github.com/longbridge/longbridge-terminal/sessions/0822708d-7828-4b56-af37-f2f983bd7f7f Co-authored-by: huacnlee <5518+huacnlee@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix segfault in v0.13.0 prebuilt binary on Linux
cli: Always use musl binary on Linux to fix segfault in prebuilt binary
Apr 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The prebuilt Linux binary is glibc-linked and compiled against the CI runner's glibc version. On systems with a different glibc it crashes with SIGSEGV. The musl binary is fully statically linked and works on any Linux system.
Changes
install: Removeldd-based musl detection. Always use the-muslartifact on Linux.release.yml:actions-rs/cargo@v1with directcargo build/cross buildcommands.cross: true/falseper matrix target.x86_64-unknown-linux-muslnow compiles natively withmusl-tools(no Docker); aarch64 targets continue to usecross.test-install.yml:linux-musl-on-glibcjob: runssh installon an Ubuntu (glibc) runner and verifies the binary executes — exactly the scenario from the reported segfault.permissions: contents: read.