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

flux-broker: ev.c:4392: ev_timer_start: Assertion `("libev: ev_timer_start called with negative timer repeat value", w->repeat >= 0.)' failed. #6577

Open
garlick opened this issue Jan 24, 2025 · 0 comments

Comments

@garlick
Copy link
Member

garlick commented Jan 24, 2025

Problem: flux_timer_watcher_reset() allows illegal values of timer parameters to be set which later cause an assertion in libev.

In this case I repeatedly crashed the broker due to a bug in my code, which felt like excessive punishment for a small crime :-)

Unfortunately there is no way for flux_timer_watcher_reset() to indicate that its values are invalid since it has a void return. Perhaps we could just silently change a negative repeat value to 0. (no repeat). Alternatively we could change the prototype to something that can return an error.

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

No branches or pull requests

1 participant