Closed
Description
We should make the Dart precompiled runtime refuse to run AOT snapshots that are not built with the same sanitizers.
Our machine code generation emits different machine code if sanitizers are enabled. If the build is somehow misconfigured, it could happen that an AOT snapshot without the extra runtime-calls for unpoisoning, leading to sanitizers complaining.
(Such check would have saved me half a day of debugging. 🙃 )