8000 Fix some undefined behaviour in some maintainer mode code by neunhoef · Pull Request #14891 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Fix some undefined behaviour in some maintainer mode code #14891

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 st 8000 atement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 9, 2021

Conversation

neunhoef
Copy link
Member
@neunhoef neunhoef commented Oct 8, 2021

This is a trivial bug fix for a corner case.

If in maintainer mode, or if the log topic AgencyComm is set to DEBUG
or TRACE mode, and all agents are gone, then the first element of
an empty deque is dereferenced. With STL debugging on this leads to
a crash.

This only happens when in maintainer mode or if DEBUG logging is
switched on for the AgencyComm topic, provided that all agency
endpoints are gone for some time.
@neunhoef neunhoef added this to the devel milestone Oct 8, 2021
@neunhoef neunhoef self-assigned this Oct 8, 2021
Copy link
Contributor
@jsteemann jsteemann left a comment

Choose a reason for hiding this comment

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

LGTM!

@jsteemann jsteemann merged commit b4920a8 into devel Nov 9, 2021
@jsteemann jsteemann deleted the bug-fix/undefined-behaviour-in-debug-log-message branch November 9, 2021 18:09
KVS85 pushed a commit that referenced this pull request Mar 17, 2023
KVS85 pushed a commit that referenced this pull request Mar 23, 2023
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.

3 participants
0