Skip to content

NNBD: Dart2JS crashes with Assertion failure: Unexpected type literal TypeLiteral() #41573

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

Closed
iarkh opened this issue Apr 19, 2020 · 0 comments
Closed
Labels
area-web-js Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop. NNBD Issues related to NNBD Release web-dart2js

Comments

@iarkh
Copy link
Contributor

iarkh commented Apr 19, 2020

co19/LanguageFeatures/nnbd/overriding/override_checking_A06_t119 test fails with Assertion failure with dart2js.

This error is not reproducible in other testing modes.

Here is a link to the log file.

Here is a sample output:

> | dart2js-hostasserts-strong-linux-x64-chrome:co19/LanguageFeatures/nnbd/overriding/override_checking_A06_t119 is new and failed (Crash, expected Pass) |
> \=======================================================================================================================================================/
> 
> --- Command "dart2js" (took 01.000747s):
> DART_CONFIGURATION=ReleaseX64NNBD sdk_nnbd/bin/dart2js_developer --enable-experiment=non-nullable --enable-experiment=non-nullable --test-mode --packages=/b/s/w/ir/.packages /b/s/w/ir/tests/co19/src/LanguageFeatures/nnbd/overriding/override_checking_A06_t119.dart --null-safety --libraries-spec=sdk_nnbd/lib/libraries.json --platform-binaries=out/ReleaseX64NNBD/ --out=/b/s/w/ir/out/ReleaseX64NNBD/generated_compilations/dart2js/tests_co19_src_LanguageFeatures_nnbd_overriding_override_checking_A06_t119/override_checking_A06_t119.js
> 
> exit code:
> 253
> 
> stdout:
> tests/co19/src/LanguageFeatures/nnbd/overriding/override_checking_A06_t119.dart:26:8:
> Internal Error: Unexpected type literal TypeLiteral().
>   void test() { Expect.equals(Never, T); }
>        ^
> The compiler is broken.
> 
> When compiling the above element, the compiler crashed. It is not
> possible to tell if this is caused by a problem in your program or
> not. Regardless, the compiler should not crash.
> 
> The Dart team would greatly appreciate if you would take a moment to
> report this problem at http://dartbug.com/new.
> 
> Please include the following information:
> 
> * the name and version of your operating system,
> 
> * the Dart SDK build number (build number could not be determined), and
> 
> * the entire message you see here (including the full stack trace
>   below as well as the source location above).
> 
> stderr:
> Unhandled exception:
> Assertion failure: Unexpected type literal TypeLiteral().
> #0      failedAt (package:compiler/src/diagnostics/invariant.dart:49:3)
> #1      KernelSsaGraphBuilder.visitTypeLiteral (package:compiler/src/ssa/builder_kernel.dart:3348:9)
> #2      TypeLiteral.accept (package:kernel/ast.dart:4852:44)
> #3      KernelSsaGraphBuilder._visitPositionalArguments (package:compiler/src/ssa/builder_kernel.dart:3616:16)
> #4      KernelSsaGraphBuilder._visitArgumentsForStaticTarget (package:compiler/src/ssa/builder_kernel.dart:3743:33)
> #5      KernelSsaGraphBuilder.visitStaticInvocation (package:compiler/src/ssa/builder_kernel.dart:3827:11)
> #6      StaticInvocation.accept (package:kernel/ast.dart:3898:44)
> #7      KernelSsaGraphBuilder.visitExpressionStatement (package:compiler/src/ssa/builder_kernel.dart:1783:18)
> #8      ExpressionStatement.accept (package:kernel/ast.dart:5412:43)
> #9      KernelSsaGraphBuilder.visitBlock (package:compiler/src/ssa/builder_kernel.dart:1749:17)
> #10     Block.accept (package:kernel/ast.dart:5450:43)
> #11     KernelSsaGraphBuilder._visitInlinedFunction (package:compiler/src/ssa/builder_kernel.dart:6297:30)
> #12     KernelSsaGraphBuilder._doInline (package:compiler/src/ssa/builder_kernel.dart:6275:5)
> #13     KernelSsaGraphBuilder._tryInlineMethod.doInlining.<anonymous closure> (package:compiler/src/ssa/builder_kernel.dart:5950:11)
> #14     KernelSsaGraphBuilder._inlinedFrom.<anonymous closure> (package:compiler/src/ssa/builder_kernel.dart:960:21)
> #15     CompilerDiagnosticReporter.withCurrentElement (package:compiler/src/compiler.dart:743:15)
> #16     KernelSsaGraphBuilder._inlinedFrom (package:compiler/src/ssa/builder_kernel.dart:958:14)
> #17     KernelSsaGraphBuilder._tryInlineMethod.doInlining (package:compiler/src/ssa/builder_kernel.dart:5946:7)
> #18     KernelSsaGraphBuilder._tryInlineMethod (package:compiler/src/ssa/builder_kernel.dart:5957:17)
> #19     KernelSsaGraphBuilder._pushDynamicInvocation (package:compiler/src/ssa/builder_kernel.dart:4939:11)
> #20     KernelSsaGraphBuilder.visitMethodInvocation (package:compiler/src/ssa/builder_kernel.dart:5161:5)
> #21     MethodInvocation.accept (package:kernel/ast.dart:3766:44)
> #22     KernelSsaGraphBuilder.visitExpressionStatement (package:compiler/src/ssa/builder_kernel.dart:1783:18)
> #23     ExpressionStatement.accept (package:kernel/ast.dart:5412:43)
> #24     KernelSsaGraphBuilder.visitBlock (package:compiler/src/ssa/builder_kernel.dart:1749:17)
> #25     Block.accept (package:kernel/ast.dart:5450:43)
> #26     KernelSsaGraphBuilder._buildFunctionNode (package:compiler/src/ssa/builder_kernel.dart:1344:23)
> #27     KernelSsaGraphBuilder.build.<anonymous closure> (package:compiler/src/ssa/builder_kernel.dart:466:15)
> #28     CompilerDiagnosticReporter.withCurrentElement (package:compiler/src/compiler.dart:743:15)
> #29     KernelSsaGraphBuilder.build (package:compiler/src/ssa/builder_kernel.dart:451:21)
> #30     KernelSsaBuilder.build.<anonymous closure> (package:compiler/src/js_model/js_strategy.dart:516:22)
> #31     CompilerTask.measure (package:compiler/src/common/tasks.dart:64:51)
> #32     KernelSsaBuilder.build (package:compiler/src/js_model/js_strategy.dart:498:18)
> #33     SsaBuilderTask.build (package:compiler/src/ssa/ssa.dart:356:21)
> #34     SsaFunctionCompiler.compile (package:compiler/src/ssa/ssa.dart:80:29)
> #35     OnDemandCodegenResults.getCodegenResults (package:compiler/src/common/codegen.dart:453:30)
> #36     JsBackendStrategy.generateCode (package:compiler/src/js_model/js_strategy.dart:334:43)
> #37     KernelCodegenWorkItem.run (package:compiler/src/js_model/js_strategy.dart:465:29)
> #38     Compiler.emptyQueue.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:compiler/src/compiler.dart:460:70)
> #39     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:179:35)
> #40     Compiler.emptyQueue.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:compiler/src/compiler.dart:460:32)
> #41     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:179:35)
> #42     Compiler.emptyQueue.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:compiler/src/compiler.dart:458:28)
> #43     CompilerDiagnosticReporter.withCurrentElement (package:compiler/src/compiler.dart:743:15)
> #44     Compiler.emptyQueue.<anonymous closure>.<anonymous closure> (package:compiler/src/compiler.dart:456:18)
> #45     CodegenEnqueuer._forEach (package:compiler/src/js_backend/enqueuer.dart:266:12)
> #46     CodegenEnqueuer.forEach (package:compiler/src/js_backend/enqueuer.dart:282:5)
> #47     Compiler.emptyQueue.<anonymous closure> (package:compiler/src/compiler.dart:452:16)
> #48     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:179:35)
> #49     Compiler.emptyQueue (package:compiler/src/compiler.dart:451:14)
> #50     Compiler.processQueue.<anonymous closure> (package:compiler/src/compiler.dart:477:7)
> #51     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:179:35)
> #52     Compiler.processQueue (package:compiler/src/compiler.dart:470:14)
> #53     Compiler.runCodegenEnqueuer (package:compiler/src/compiler.dart:382:5)
> #54     Compiler.generateJavaScriptCode (package:compiler/src/compiler.dart:284:9)
> #55     Compiler.compileFromKernel.<anonymous closure> (package:compiler/src/compiler.dart:432:9)
> #56     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:179:35)
> #57     Compiler.compileFromKernel (package:compiler/src/compiler.dart:405:14)
> #58     Compiler.runInternal (package:compiler/src/compiler.dart:257:13)
> <asynchronous suspension>
> #59     Compiler.run.<anonymous closure>.<anonymous closure> (package:compiler/src/compiler.dart:212:38)
> #60     new Future.sync (dart:async/future.dart:222:31)
> #61     Compiler.run.<anonymous closure> (package:compiler/src/compiler.dart:212:20)
> #62     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:179:35)
> #63     Compiler.run (package:compiler/src/compiler.dart:209:41)
> #64     CompilerImpl.run.<anonymous closure>.<anonymous closure> (package:compiler/src/apiimpl.dart:91:22)
> #65     _RootZone.runUnary (dart:async/zone.dart:1450:54)
> #66     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
> #67     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:692:45)
> #68     Future._propagateToListeners (dart:async/future_impl.dart:721:32)
> #69     Future._completeWithValue (dart:async/future_impl.dart:529:5)
> #70     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:563:7)
> #71     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
> #72     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
> #73     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:117:13)
> #74     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:5)
> 
@devoncarew devoncarew added NNBD Issues related to NNBD Release area-web-js Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop. web-dart2js labels Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-web-js Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop. NNBD Issues related to NNBD Release web-dart2js
Projects
None yet
Development

No branches or pull requests

3 participants