-
Notifications
You must be signed in to change notification settings - Fork 1.7k
vm crashes (exit code 139) with complex generics #25122
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
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Comments
Thanks for the repro! I managed to reduce it to the following lines: main() {}
abstract class ComponentState<S extends ComponentState> {}
abstract class AbstractListMember<E, M extends AbstractListMember<E, M>>
extends ComponentState<M> {}
class RepoListMember<M extends RepoListMember<M>>
extends AbstractListMember<String, M> {} Results in the following crash: $ out/DebugX64/dart crash.dart
runtime/vm/object.cc:4522: error: expected: Length() >= (from_index + len)
Aborted (core dumped) |
main() {}
class AbstractListMember<E, M extends AbstractListMember<E, M>> { }
class RepoListMember<M extends RepoListMember<M>>
extends AbstractListMember<String, M> {} |
thanks awesome Dart VM team. I can verify this is fixed in 1.14.0-dev.4.0 thanks for the quick turnaround. This will result in me pulling a lot less of my hair out |
crelier
added a commit
that referenced
this issue
Dec 14, 2015
… cycles. Fail the test instead, requiring a runtime test. This was introduced last week as https://codereview.chromium.org/1513493002/ in order to fix #25122. [email protected] Review URL: https://codereview.chromium.org/1528523002 .
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.
If you run the below code in 1.14.0-dev.1.0 (note it's been crashing in several prior versions too) it crashes with
I get no warnings from strong mode analyzer with this code however
The text was updated successfully, but these errors were encountered: