Skip to content

[DO NOT MERGE] DPL: run framework test through leaks on macos - #15955

Open
aalkin wants to merge 7 commits into
AliceO2Group:devfrom
aalkin:add-leaks-test-on-macos
Open

aalkin wants to merge 7 commits into
AliceO2Group:devfrom
aalkin:add-leaks-test-on-macos

Conversation

@aalkin

@aalkin aalkin commented Oct 14, 2026

Copy link
Copy Markdown
Member

XCode provide a convenient command-line memory leak detection utility. This change wraps framework:core test with it. There is plenty of memory leaks which means the test fails, this PR will be used to monitor gradual fixing of the leaks.

@aalkin
aalkin requested a review from a team as a code owner October 14, 2026 08:47
ktf
ktf previously approved these changes Oct 14, 2026

@ktf ktf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine with me if passes the tests.

aalkin and others added 7 commits October 14, 2026 14:21
Meta::name was a strdup'ed char const* that was never freed. Use std::string.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TestWSHandler stored strdup'ed copies of every frame and never freed them.
Keep the frames in a std::vector<std::string> instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The buffers produced by encode_websocket_frames are malloc'ed and were never
released. Free them at the end of each test block.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Request and frame inputs were strdup'ed and never freed. Use string_view on
literals, make parse_http_request take char const*, and free the malloc'ed
buffers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The objects returned by the deserialization helpers were never deleted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The inputs array allocated by the test was never released.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2/fullCI_slc9 for 65aa13d at 2026-10-14 16:54:

## sw/BUILD/O2Physics-latest/log
CMake Error at PWGHF/HFL/Tasks/cmake_install.cmake:244 (file):

Full log here.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants