-
Notifications
You must be signed in to change notification settings - Fork 177
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
[trivial] Lwt_sequence.fold_r may visit items twice or more during concurrent removal #405
Comments
Fixing this particular issue in isolation should be as easy as changing the line to say I've created a separate issue (#406) for writing an actual test suite for Actually triggering this bug is a bit involved. I believe you have to first delete the current node inside This is because... (picture):
C is the current node at some point during traversal, and N is a next (resp., previous) node, and we want to reach N from C with N not "active."
|
Was fixed by the linked commit, in PR #434. |
Looking at https://github.com/ocsigen/lwt/blob/master/src/core/lwt_sequence.ml#L206
the fold_r skips to the next node instead of the previous one when node_active is false.
This might cause a node to be visited twice or more.
The text was updated successfully, but these errors were encountered: