Malloc Guard
SoftwareC++ allocation monitor for detecting heap operations inside designated real-time sections. [1]
Installation & first result →Official websiteGetting started
- For
- C++ developers investigating allocations in time-sensitive robot code [1]
- Source rights
- Named licenses are documented by part. Review licenses
- Unknowns
- operating system, compute requirements not fully established. Review gaps
Source researched · Not tested by us
Sources checked · Research details
Licenses & related hardware
- License
- Apache-2.0 · Details by part
Overview
Malloc Guard is a C++ library for catching heap allocation calls in designated real-time code. It intercepts allocator functions and allows reactions including abort, logging, storing violations or a callback. It does not make a loop deterministic simply by linking the library. [1]
Is this for you?
What you need
- Dependencies
- C++20 compiler
- CMake 3.24+ or Bazel
Installation & first result
Open the upstream getting-started guide [1]
- Choose and pin the library revision in the downstream build
- Enable the scoped allocation hook outside the real-time section
- Set the thread-local reaction
- Create MallocGuard around the section to monitor
- Installation
Link malloc_guard through CMake FetchContent/find_package or the Bazel module and target.
Hardware, models & data
- Inputs and outputs
Intercepted allocator calls trigger a configured reaction such as abort, logging, stored violations or a callback.
Project notes
The hook and the thread guard do different jobs
The documented sequence first installs ScopedMallocGuardHook outside the real-time section and keeps it alive for the relevant threads. Inside a thread, choose the reaction and create MallocGuard around the monitored section. The README's example chooses abort, so an unexpected allocation is intended to stop that run rather than silently record the event. [1]
Integration requires a C++20 compiler and either CMake 3.24 or newer, or Bazel. CMake users can use FetchContent or an installed package; Bazel users can link the exported target. Pin the reviewed commit instead of copying the README's moving main reference when reproducibility matters. [1] [90]
The root license is Apache-2.0. We have not compiled the example, tested interception coverage or measured overhead. Passing an allocation check would still leave scheduling, synchronization and end-to-end timing to evaluate in the actual control application. [2]
What we checked
Source research only. No installation, upstream test execution, physical integration or performance measurement by this publication. No affiliation or endorsement claimed.
Not yet established
- Requirements: operating system, host computer
- Version-specific hardware compatibility (ecosystem tags alone do not establish it)
Updates
- Upstream last updated
- Sep 23, 2026 [90]
- Latest release
- Not established
- Profile updated
- Oct 4, 2026
- Sources last checked
- Sep 30, 2026
- Next review
- Oct 30, 2026
- Reviewed revision
- ffd1a0b0bf4d1d58d1068c3a37041d9da70da4a3 (commit snapshot; no published stable release found) · software repository
Source files and licenses
Useful open software component with documented development workflow; dependency rights, configuration matching and runtime results remain separate.
| Layer | Availability / license |
|---|---|
| software | available · Apache-2.0 Inspected root license for this repository. External dependencies, vendor SDKs, models and third-party geometry are not relicensed by it. [1] [2] |
| documentation | available · Apache-2.0 Inspected root license for this repository. External dependencies, vendor SDKs, models and third-party geometry are not relicensed by it. [1] [2] |
No particular model weights or dataset is offered or assessed by this component profile.
References
Each source links to the exact revision we read. “Used for” shows where this page relies on it.
Project sources
- S001 malloc-guard: README.md
Revision, date & where cited
Intrinsic Innovation LLC / project contributors · github.com · revision
ffd1a0b· Accessed Sep 30, 2026
Used for: Overview, Is this for you?, What you need, Installation & first result and 3 more - S002 malloc-guard: LICENSE
Revision, date & where cited
Intrinsic Innovation LLC / project contributors · github.com · revision
ffd1a0b· Accessed Sep 30, 2026
Used for: The hook and the thread guard do different jobs, Source files and licenses - S090 intrinsic-ai/malloc-guard: commit ffd1a0b
Revision, date & where cited
Intrinsic Innovation LLC / GitHub metadata · github.com · Accessed Sep 30, 2026
Used for: The hook and the thread guard do different jobs, What we checked
Videos
- S091 Intrinsic (YouTube channel)
The project’s own YouTube channel, found by searching YouTube and checked against the channel page. Not reviewed by us for accuracy.Revision, date & where cited
YouTube channel Intrinsic · youtube.com · Accessed Oct 4, 2026
Correction guidance · Discussion is not enabled · Profile format 0.6.0-draft.1
Change history
2026-09-30 — Initial pinned-source component profile with setup route and integration boundaries.
2026-10-04 — Added 1 YouTube reference(s) (S091): official channel or videos linked from the pinned upstream sources. Existing claims, source-check dates and evidence are unchanged.