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

Dispatch FSM Segfaults when no items listed for testing in distributed mode #22

Open
moralismercatus opened this issue Mar 17, 2017 · 0 comments
Labels

Comments

@moralismercatus
Copy link
Collaborator

moralismercatus commented Mar 17, 2017

When no element is listed, this transition row in DispatchFSM_ is faulty.

Note the Or_<is_first, ...> meaning that even if !have_next_target, the transition succeeds with subsequent code presuming that have_next_target.

One fix is to add have_next_target thusly: Or_<And_<is_first, have_next_target>, ...>

Not a complete solution because there is no transition representing the case Or_<And_<is_first, Not_<have_next_target>>, ...> which would likely need to transition to an error state.

Or, of course, another fix is to ensure that the presumption that the current transition makes always holds (that if is_first, then have_next_target is always true).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant