-
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
Compiler crash with optional Finalizable
parameter
#49402
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
library-ffi
Comments
blaugold
changed the title
Compile crash with optional
Compiler crash with optional Jul 5, 2022
Finalizable
parameterFinalizable
parameter
lrhn
added
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
library-ffi
labels
Jul 6, 2022
/cc @dcharkes |
Thanks for reporting @blaugold! |
@blaugold are you in need of a cherry pick to stable for this? Or are you always running on master? |
Thanks for the quick fix. It would be great to have the fix in stable, since this issue was found in a package that is published to pub.dev. |
copybara-service bot
pushed a commit
that referenced
this issue
Jul 12, 2022
This is a patch release that fixes: - Improve code completion for Flutter (issue [#49054][]). - Fix crash on ARM (issue [#106510][]). - Fix compiler crash with Finalizable parameters (issue [#49402][]). [#49054]: #49054 [#106510]: flutter/flutter#106510 [#49402]: #49402 Change-Id: I9a814603d9793b75b764fd0f384e89017e773c50 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251109 Reviewed-by: Alexander Thomas <athom@google.com> Commit-Queue: William Hesse <whesse@google.com>
copybara-service bot
pushed a commit
that referenced
this issue
Jul 12, 2022
The kernel builder relied on only seeing expressions emitted by the finalizable transform (variable get and this) as arguments to the fence. However, other transforms can run later. In this case the expression was turned into a constant. This CL changes the implementation to accept any expression rather than accepting a subset of expressions. TEST=tests/ffi/regress_49402_test.dart Closes: #49402 Change-Id: I1a962a5b7a38099eb5c3bbf5a5a8145b16727d97 Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-linux-debug-x64-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/250744 Commit-Queue: Daco Harkes <dacoharkes@google.com> Reviewed-by: Slava Egorov <vegorov@google.com>
copybara-service bot
pushed a commit
that referenced
this issue
Jul 12, 2022
This is a patch release that fixes: - Improve code completion for Flutter (issue [#49054][]). - Fix crash on ARM (issue [#106510][]). - Fix compiler crash with Finalizable parameters (issue [#49402][]). [#49054]: #49054 [#106510]: flutter/flutter#106510 [#49402]: #49402 Change-Id: I9a814603d9793b75b764fd0f384e89017e773c50 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251109 Reviewed-by: Alexander Thomas <athom@google.com> Commit-Queue: William Hesse <whesse@google.com>
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.
library-ffi
The following code causes a compiler crash when compiled with
dart compile exe
:Here is the stacktrace generated when building a Flutter app that contains the above code:
The text was updated successfully, but these errors were encountered: