-
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 2-dev.63 crashes: Segmentation fault #33430
Comments
|
Oops, no, I take that back: test run fine w/o the |
FYI, it is still crashing under 2-dev.62, see this Travis log. |
(Until dart-lang/sdk#33430 is fixed)
* chore: globally set DART_VM_OPTIONS=--preview-dart-2 * Revert setting of env var in travis.yml (Until dart-lang/sdk#33430 is fixed)
Until dart-lang/sdk#33430 is resolved.
Until dart-lang/sdk#33430 is resolved.
Just keeping y'all up-to-date: it is still crashing under 2-dev.63. |
Initially assigning to @a-siva |
Seems to fail in dart::Instance::CheckAndCanonicalizeFields while reading an isolate message
|
Still crashing under 2.0.0-dev.64.1, as shown in this Travis log. |
@chalin we are investigating this crash and will update status here once it is fixed. |
…on in isolate messages. Type canonicalization is deferred between in may involve cycles. Instances are canonicalized eagerly, but their type arguments are not necessarily canonical yet, which can lead to incorrect canonicalization of the instance. The work around is to include the most popular type arguments in the serializer's set of base objects, bypassing deferred canonicalization. Other type arguments will continue to fail. Bug: #33430 Change-Id: Ia992b3ebc2974b54acb5c88b3e1d836f6ec1f1b8 Reviewed-on: https://dart-review.googlesource.com/61721 Commit-Queue: Ryan Macnak <rmacnak@google.com> Reviewed-by: Siva Annamalai <asiva@google.com>
The CL https://dart-review.googlesource.com/c/sdk/+/61721 fixes the crash. |
Trial code tweak to avoid triggering dart-lang/sdk#33430
Trivial code tweak to avoid triggering dart-lang/sdk#33430
Trivial code tweak to avoid triggering canonicalization issue dart-lang/sdk#33430
Can this one be closed since https://dart-review.googlesource.com/c/sdk/+/61721 has landed? |
In case you are wondering which two lines caused the crash in linkcheck, see https://github.com/filiph/linkcheck/pull/16/files#diff-e29ff10915c7af85fedd110a8cb724ef. Essentially (and as a workaround while awaiting the fix), I changed two lines of this form: const unrecognizedMessage = const {verbKey: unrecognizedVerb}; To this form: final unrecognizedMessage = {verbKey: unrecognizedVerb}; (Well at least I've learned that const canonicalization is done lazily.) /cc @filiph |
Environment
Dart VM version: 2.0.0-dev.61.0 to -dev.63.0 on "macos_x64"
Steps to reproduce
Checkout the(Usechalin-dart-2-runtime-0612
branchmaster
now.)pub upgrade
dart --preview-dart-2 test/e2e_test.dart
Expected result
The tests should run, but instead
dart
crashes:cc @kwalrath @kevmoo @natebosch
The text was updated successfully, but these errors were encountered: