Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect unref leading to invalid read #585

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

mkemel
Copy link
Member

@mkemel mkemel commented Oct 1, 2023

In manager_unref() we first free manager->api_bus, but then during node_unref() we use it to emit property change, which sometimes is caught by valgrind as
Changing manager_unref to first free all jobs, monitors and nodes, and only then to free all sd-bus objects.

Fixes #577

Copy link
Member

@mwperina mwperina left a comment

Choose a reason for hiding this comment

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

LGTM

@mkemel mkemel merged commit b5a55e8 into eclipse-bluechi:main Oct 2, 2023
@mkemel mkemel deleted the valgrind-integration-test branch January 10, 2024 13:48
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.

valgrind error in multiple integration tests: Invalid read in node_unset_agent_bus (node.c:815)
2 participants