• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

RobotWebTools / rclnodejs / 22995098940
86%

Build:
DEFAULT BRANCH: develop
Ran 12 Mar 2026 09:39AM UTC
Jobs 1
Files 50
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Mar 2026 09:25AM UTC coverage: 85.981% (+0.04%) from 85.941%
22995098940

push

github

web-flow
Add AddressSanitizer (ASan) memory testing for native addon (#1430)

Add ASan-based memory testing infrastructure to detect memory errors (leaks, use-after-free, type mismatches) in the C++ N-API addon code.

Bug fixes found and resolved by ASan:
- src/executor.cpp: Fix new-delete-type-mismatch in Executor::Stop(). The uv_close callback deleted via uv_handle_t* (96 bytes) but the object was allocated as uv_async_t (128 bytes). Fixed by casting back to uv_async_t* before delete.
- src/rcl_context_bindings.cpp: Fix argv memory leak in Init(). RCPPUTILS_SCOPE_EXIT for FreeArgs was placed after early return paths, so argv was never freed on error. Moved it immediately after allocation.

New files:
- scripts/run_asan_test.sh: ASan test runner that builds with -fsanitize=address, sets up LD_PRELOAD/LSAN_OPTIONS, temporarily hides prebuilds to load the debug build, and auto-excludes tests from blocklist.json and asan_blocklist.json. Supports --no-build, --exclude, and specific test file arguments.
- test/asan_blocklist.json: Tests excluded under ASan due to LD_PRELOAD incompatibility with child processes (npm, colcon, ros2 CLI) or known third-party issues (ref-napi heap-use-after-free).
- .github/workflows/linux-x64-asan-test.yml: Standalone CI workflow running ASan tests on push/PR to develop (Jazzy + Node 24.X + x64).

Other changes:
- package.json: Add "test:asan" npm script.
- suppr.txt: Add napi_create_reference and napi_create_external suppressions for module-level singleton allocations.
- README.md: Add ASan CI badge to status table.

Fix: #1429

1405 of 1770 branches covered (79.38%)

Branch coverage included in aggregate %.

2876 of 3209 relevant lines covered (89.62%)

471.85 hits per line

Jobs
ID Job ID Ran Files Coverage
1 22995098940.1 12 Mar 2026 09:39AM UTC 50
85.98
GitHub Action Run
Source Files on build 22995098940
  • Tree
  • List 50
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #22995098940
  • 3e8a4efd on github
  • Prev Build on develop (#22938894213)
  • Next Build on develop (#23038155570)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc