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

[CP] Ensure spawnUri'ed isolates keep their own origin_id. #47696

Closed
mkustermann opened this issue Nov 15, 2021 · 4 comments
Closed

[CP] Ensure spawnUri'ed isolates keep their own origin_id. #47696

mkustermann opened this issue Nov 15, 2021 · 4 comments
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. cherry-pick-approved Label for approved cherrypick request

Comments

@mkustermann
Copy link
Member

commit(s) to merge: c4a07a8

merge instructions: clean (auto)merge

What is the issue: An isolate spawned via Isolate.spawnUri() that spawns another isolate via Isolate.spawnUri() and tries to communicate with the former using user-defined data structures can lead to a crash. Instead it should result in an error. (When using dart test / dart run - which internally uses spawnUri(), one spawnUri in user code is enough to trigger it).

What is the fix: Make setting of the origin_id of an isolate conditional on it not being ILLEGAL _PORT.

Why cherrypick: Users have hit this.

Risk: low

Link to original issue(s):
#47674

/cc @kevmoo @mit-mit @whesse @athomas @vsmenon @devoncarew

/cc @aam

@mkustermann mkustermann added area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. cherry-pick-review Issue that need cherry pick triage to approve labels Nov 15, 2021
@athomas
Copy link
Member

athomas commented Nov 15, 2021

@mkustermann given that this was found on the stable release, are you requesting this to be picked into 2.14 stable or 2.15 beta (so that it goes out with 2.15)?

@mkustermann
Copy link
Member Author

@athomas Given the new stable will happen soon, I think it's enough for it to be included in 2.15 beta.

@devoncarew
Copy link
Member

approved

@devoncarew devoncarew added cherry-pick-approved Label for approved cherrypick request and removed cherry-pick-review Issue that need cherry pick triage to approve labels Nov 16, 2021
@athomas
Copy link
Member

athomas commented Nov 17, 2021

Merged to beta in 52519ea (2.15.0-268.18.beta).

@athomas athomas closed this as completed Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. cherry-pick-approved Label for approved cherrypick request
Projects
None yet
Development

No branches or pull requests

3 participants