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 segfault on disconnected anonymous node #429

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

engelmi
Copy link
Member

@engelmi engelmi commented Aug 2, 2023

This PR fixes #426

When an anonymous node disconnects, it gets removed from the manager. This already unsets the agent bus. And after emitting state changing signals, the bus and slots where unset again, causing a segfault. To prevent this, call node_unset_agent_bus on disconnect only for named nodes as this is already done when removing the anonymous node from the manager.

When an anonymous node disconnects, it gets removed
from the manager. This already unsets the agent bus.
And after emitting state changing signals, the bus
and slots where unset again, causing a segfault. To
prevent this, call node_unset_agent_bus on disconnect
only for named nodes as this is already done when
removing the anonymous node from the manager.

Signed-off-by: Michael Engel <mengel@redhat.com>
@engelmi
Copy link
Member Author

engelmi commented Aug 2, 2023

@dougsland Could you test if this change fixes the issue?

@rhatdan
Copy link
Contributor

rhatdan commented Aug 2, 2023

LGTM

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

@rhatdan rhatdan merged commit 3fae7af into main Aug 2, 2023
@rhatdan rhatdan deleted the fix-segfault-for-anonymous-node branch August 2, 2023 13:38
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.

Anonymous node disconnected: segfault
3 participants