fix: pin libamdgpu_top to =0.11.4 and rename get_all_proc_usage call (#205)#207
Merged
Merged
Conversation
Upstream shipped a breaking API rename (get_all_proc_usage → update_proc_usage) in a patch release (0.11.4), violating semver. Cargo's caret resolution for "0.11.3" picks up 0.11.4 on fresh installs, breaking all Linux glibc builds. Two changes: - Cargo.toml: exact-pin libamdgpu_top to =0.11.4 to prevent future silent patch breaks; comment explains the rationale. - src/device/readers/amd.rs:572: rename call site to update_proc_usage. Lockfile regenerated via `cargo update -p libamdgpu_top --precise 0.11.4`. Closes #205
Member
Author
Implementation Review SummaryIntent
Findings Addressed
Remaining Items
Verification
Notes on AMD-target verificationThe AMD reader is gated by |
Member
Author
PR Finalization CompleteSummary
Final gate results
No changes were needed. The PR is ready for merge. |
This was referenced May 24, 2026
inureyes
pushed a commit
that referenced
this pull request
May 24, 2026
…eak (#219) libamdgpu_top <= 0.11.4 leaked a file descriptor on every AmdGpuReader instantiation: DevicePath opened the DRM device via into_raw_fd(), so the handle was never closed. Repeated/library callers (AllSmi::new, get_gpu_readers, AmdGpuReader) exhausted the per-process fd limit and crashed. 0.11.5 caches an Arc<OwnedFd> and closes the handle on drop. Kept the dependency exact-pinned (=0.11.5) to preserve the semver-break protection from #207: this crate has renamed public APIs in patch releases. Closes #218
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.
Summary
Fixes build failure caused by
libamdgpu_top0.11.4 renamingFdInfoStat::get_all_proc_usage→FdInfoStat::update_proc_usagein apatch release. Cargo's caret resolution for
"0.11.3"silently picks up0.11.4, breaking all Linux glibc fresh builds.
Closes #205
Changes
Cargo.toml: Changedlibamdgpu_top = "0.11.3"tolibamdgpu_top = "=0.11.4"(exact pin) under the Linux-glibc targettable, with a comment explaining the reason for pinning.
src/device/readers/amd.rsline 572: Renamedfdinfo.get_all_proc_usage(&proc_index)→fdinfo.update_proc_usage(&proc_index)— the only call site.Cargo.lock: Regenerated viacargo update -p libamdgpu_top --precise 0.11.4.Verification Results
cargo build --releasecargo fmt --checkcargo clippy --all-targets -- -D warningssrc/doctor/checks/{amd,furiosa,gaudi,privileges}.rs— 7 unused-import warnings exist identically onmainbefore this PR; not introduced by this change.cargo testgrep -rn get_all_proc_usage src/cargo check(AMD target)cfg(all(target_os = "linux", not(target_env = "musl")))and cannot compile on macOS. Final AMD-target verification depends on CI.Notes
=0.11.4) prevents future upstream patch surprises fromsilently breaking the build again. Re-evaluate the pin when bumping to a
new
libamdgpu_topminor and verifying the API surface.0.20.2) should follow merge so downstreamlibrary consumers can pick up the fix without waiting for the next minor
release.