-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Dart 1.17 segfaults with async/await #26668
Comments
/cc @nex3 |
I can reproduce this, but I'm pretty sure it's a VM issue. It looks like the VM crashes somewhere in the I'll see if I can find a |
Update: it's definitely a VM issue. If I run this without |
Okay, here's a import 'dart:async';
main() async {
var myClass = new CustomClass();
await myClass.processData();
}
class CustomClass<T> {
Future<T> processData() async {
return null;
}
}
It does not reproduce as of 1.16.0, so this is a new regression. |
FYI @a-siva - this looks pretty gnarly |
The following assert is hit in debug mode. @crelier @mhausner
|
I haven't verified yet but this could be a regression of this CL: |
Matthias is probably right. I bet the instantiator needs to be captured when the class is generic. I'll look at it. |
…type. Add regression test (fixes #26668). Review URL: https://codereview.chromium.org/2057903003 .
Verified that this is fixed in 1.17.1. |
When using Dart 1.17 with
test: "^0.12.0"
, unit-tests that were otherwise passing on Dart 1.15 are now being skipped.I apologize if this isn't an issue in Dart itself and would be more than happy to move this to the test repo if appropriate.
Here's some example code that produces the issue:
We expect this test should pass, but it ends up being skipped. Commenting out this line
await myClass.processData(3);
results in the test passing.Running this test in Dart 1.15 results in the test passing. It's possible that something changed in Dart 1.16, but that version wasn't tested.
The text was updated successfully, but these errors were encountered: