Skip to content

Backport fixes to telemetry, fd/memory leaks, bounds and status returns (#5563) - #5646

Merged
LeStarch merged 1 commit into
nasa:release/v3.6.0-hotfixesfrom
nathancheek:memory-leak-fix
Aug 12, 2026
Merged

LeStarch merged 1 commit into
nasa:release/v3.6.0-hotfixesfrom
nathancheek:memory-leak-fix

Conversation

@nathancheek

Copy link
Copy Markdown
Contributor
Related Issue(s) PR #5563
Has Unit Tests (y/n) Y
Documentation Included (y/n) Y
Generative AI was used in this contribution (y/n) Y

Change Description

I have been noticing that an fprime deployment running on macOS slowly builds up memory usage. This was tracked down to Svc::SystemResources's call to Os::Cpu::getTicks(), triggered via Svc::SystemResources::run_handler() on a rate group.

Fortunately, this was just fixed upstream with the addition of cpu_data_release() in Os/Darwin/Cpu.cpp, but we would like the fix in v3.6. I went ahead and backported other* changes from #5563 since they seemed all good and relevant to v3.6.

[*] All changes were backported except for changes to Fw/DataStructures and Svc/ActivePhaser which don't exist in v3.6

Rationale

Svc::SystemResources shouldn't leak memory.

Testing/Review Recommendations

Testing now with my project's deployment... will report back if any issues.

Future Work

N/A

AI Usage (see policy)

Claude helped me utilize lldb to find the leaky thread (a rate group). Once I told it Svc::SystemResources or something downstream was the culprit, it immediately identified the bug, as well as the recent patch. AI was not used for code generation or backporting.

…ns (nasa#5563)

* Backport nasa#5563 to v3.6.x
* Resolves Darwin/Cpu.cpp leak of kernel-allocated buffer returned by host_processor_info()

Co-authored-by: lestarch-autobot <lestarch+autobot@gmail.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: michael.d.starch <michael.d.starch@jpl.nasa.gov>
@LeStarch
LeStarch merged commit 239f624 into nasa:release/v3.6.0-hotfixes Aug 12, 2026
36 checks passed
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.

2 participants