Skip to content

Fix parallel node nested inside a parallel node crashing/duplicating … - #82

Merged
noha merged 1 commit into
mainfrom
fix-nested-parallel-node-output
Jul 23, 2026
Merged

Fix parallel node nested inside a parallel node crashing/duplicating …#82
noha merged 1 commit into
mainfrom
fix-nested-parallel-node-output

Conversation

@noha

@noha noha commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

…output

FBParallelJoinNodeBehavior popped and resumed the parent parallel executor before enqueueing its own outgoing transition, letting the parent eagerly advance to its next iteration first. The stale transition, once finally processed, was then read back with the outer executor's index against an inner join activation sized to the (smaller) inner list - causing an index-out-of-bounds crash or a value leaked from the wrong outer iteration.

FBBaseExecutor>>popThenResume: decouples popping from resuming so the join can enqueue its continuation first. FBParallelExecutor>>lastValueOf: now only re-indexes a value that was actually produced within its own scope, using a nested scope's already-resolved value as-is otherwise.

…output

FBParallelJoinNodeBehavior popped and resumed the parent parallel
executor before enqueueing its own outgoing transition, letting the
parent eagerly advance to its next iteration first. The stale
transition, once finally processed, was then read back with the outer
executor's index against an inner join activation sized to the
(smaller) inner list - causing an index-out-of-bounds crash or a value
leaked from the wrong outer iteration.

FBBaseExecutor>>popThenResume: decouples popping from resuming so the
join can enqueue its continuation first. FBParallelExecutor>>lastValueOf:
now only re-indexes a value that was actually produced within its own
scope, using a nested scope's already-resolved value as-is otherwise.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@noha
noha merged commit a43ae6a into main Jul 23, 2026
3 checks passed
@noha
noha deleted the fix-nested-parallel-node-output branch July 23, 2026 13:31
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.

1 participant