Isolate.spawn is broken in snapshots when the original .packages file is missing #25429
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
P0
A serious issue requiring immediate resolution
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
vm-regression
Milestone
This breakage appears under the following conditions:
package:
import.Isolate.spawn()
..packages
file nor apackages/
directory.To reproduce this, create a package with the following files:
Run:
You should see an error like the following:
It's worth noting that the error is the same regardless of whether the snapshot file is copied to, indicating that it somehow remembers its original location. It's not clear why this is, and it could be construed as a security risk if the file system path of the build system is sensitive for some reason.
This is a regression. Running
git bisect
indicates that this error appeared as of 6d066c7. It's likely related to dart-lang/pub#1379.The text was updated successfully, but these errors were encountered: