Skip to content
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

gen_kernel hits a runtime type error on language_2/constant_string_interpolation2_test.dart #33628

Closed
zanderso opened this issue Jun 26, 2018 · 1 comment
Assignees
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Comments

@zanderso
Copy link
Member

/cc @alexmarkov

$ pkg/vm/tool/gen_kernel --aot --strong-mode --sync-async --platform=out/ReleaseX64/vm_platform_strong.dill -o /usr/local/google/home/zra/dart/sdk/out/ReleaseX64/generated_compilations/dartkp-strong/tests_language_2_constant_string_interpolation2_test/out.dill --entry-points out/ReleaseX64/gen/runtime/bin/precompiler_entry_points.json --entry-points /usr/local/google/home/zra/dart/sdk/pkg/vm/lib/transformations/type_flow/entry_points_extra.json --entry-points /usr/local/google/home/zra/dart/sdk/pkg/vm/lib/transformations/type_flow/entry_points_extra_standalone.json /usr/local/google/home/zra/dart/sdk/tests/language_2/constant_string_interpolation2_test.dart

Gives:

exit code:
-10

stderr:
type 'NullConstant' is not a subtype of type 'BoolConstant'
#0      VmConstantsBackend.buildConstantForNative (package:kernel/vm/constants_native_effects.dart:50:53)
#1      ConstantEvaluator.visitStaticInvocation (package:kernel/transformations/constants.dart:977:43)
#2      StaticInvocation.accept (package:kernel/ast.dart:2867:36)
#3      ConstantEvaluator.evaluate (package:kernel/transformations/constants.dart:402:37)
#4      ConstantsTransformer.tryEvaluateWithContext.<anonymous closure> (package:kernel/transformations/constants.dart:355:34)
#5      ConstantEvaluator.runInsideContext (package:kernel/transformations/constants.dart:410:17)
#6      ConstantsTransformer.tryEvaluateWithContext (package:kernel/transformations/constants.dart:353:30)
#7      ConstantsTransformer.visitStaticGet (package:kernel/transformations/constants.dart:298:11)
#8      StaticGet.accept (package:kernel/ast.dart:2559:36)
#9      MethodInvocation.transformChildren (package:kernel/ast.dart:2770:27)
#10     Transformer.defaultTreeNode (package:kernel/visitor.dart:435:10)
#11     TreeVisitor.defaultExpression (package:kernel/visitor.dart:140:43)
#12     TreeVisitor.visitMethodInvocation (package:kernel/visitor.dart:153:53)
#13     MethodInvocation.accept (package:kernel/ast.dart:2759:36)
#14     transformList (package:kernel/ast.dart:5744:27)
#15     Arguments.transformChildren (package:kernel/ast.dart:2652:5)
#16     Transformer.defaultTreeNode (package:kernel/visitor.dart:435:10)
#17     TreeVisitor.visitArguments (package:kernel/visitor.dart:253:39)
#18     Arguments.accept (package:kernel/ast.dart:2642:30)
#19     StaticInvocation.transformChildren (package:kernel/ast.dart:2877:29)
#20     Transformer.defaultTreeNode (package:kernel/visitor.dart:435:10)
#21     TreeVisitor.defaultExpression (package:kernel/visitor.dart:140:43)
#22     TreeVisitor.visitStaticInvocation (package:kernel/visitor.dart:158:53)
#23     StaticInvocation.accept (package:kernel/ast.dart:2867:36)
#24     ExpressionStatement.transformChildren (package:kernel/ast.dart:3772:31)
#25     Transformer.defaultTreeNode (package:kernel/visitor.dart:435:10)
#26     TreeVisitor.defaultStatement (package:kernel/visitor.dart:196:41)
#27     TreeVisitor.visitExpressionStatement (package:kernel/visitor.dart:198:7)
#28     ExpressionStatement.accept (package:kernel/ast.dart:3763:35)
#29     transformList (package:kernel/ast.dart:5744:27)
#30     Block.transformChildren (package:kernel/ast.dart:3799:5)
#31     Transformer.defaultTreeNode (package:kernel/visitor.dart:435:10)
#32     TreeVisitor.defaultStatement (package:kernel/visitor.dart:196:41)
#33     TreeVisitor.visitBlock (package:kernel/visitor.dart:199:31)
#34     Block.accept (package:kernel/ast.dart:3791:35)
#35     ConstantsTransformer.visitFunctionNode (package:kernel/transformations/constants.dart:223:29)
#36     FunctionNode.accept (package:kernel/ast.dart:2007:30)
#37     ConstantsTransformer.visitProcedure.<anonymous closure> (package:kernel/transformations/constants.dart:150:37)
#38     ConstantEvaluator.withNewEnvironment (package:kernel/transformations/constants.dart:1126:16)
#39     ConstantsTransformer.visitProcedure (package:kernel/transformations/constants.dart:148:23)
#40     Procedure.accept (package:kernel/ast.dart:1669:32)
#41     transformList (package:kernel/ast.dart:5744:27)
#42     ConstantsTransformer.convertLibrary (package:kernel/transformations/constants.dart:109:5)
#43     transformLibraries (package:kernel/transformations/constants.dart:73:26)
#44     transformComponent (package:kernel/transformations/constants.dart:45:3)
#45     _performConstantEvaluation.<anonymous closure> (package:vm/kernel_front_end.dart:164:15)
<asynchronous suspension>
#46     CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:118:46)
#47     new Future.sync (dart:async/future.dart:222:31)
#48     CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:118:19)
#49     _rootRun (dart:async/zone.dart:1126:13)
#50     _CustomZone.run (dart:async/zone.dart:1023:19)
#51     _runZoned (dart:async/zone.dart:1518:10)
#52     runZoned (dart:async/zone.dart:1465:12)
#53     CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:117:12)
#54     CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:126:41)
#55     _performConstantEvaluation (package:vm/kernel_front_end.dart:152:25)
<asynchronous suspension>
#56     _runGlobalTransformations (package:vm/kernel_front_end.dart:122:13)
<asynchronous suspension>
#57     compileToKernel (package:vm/kernel_front_end.dart:72:11)
<asynchronous suspension>
#58     compile (file:///usr/local/google/home/zra/dart/sdk/pkg/vm/bin/gen_kernel.dart:126:27)
<asynchronous suspension>
#59     runBatchModeCompiler.<anonymous closure> (file:///usr/local/google/home/zra/dart/sdk/pkg/vm/bin/gen_kernel.dart:166:28)
<asynchronous suspension>
#60     runBatch (package:kernel/src/tool/batch_util.dart:38:35)
<asynchronous suspension>
#61     runBatchModeCompiler (file:///usr/local/google/home/zra/dart/sdk/pkg/vm/bin/gen_kernel.dart:152:20)
<asynchronous suspension>
#62     main (file:///usr/local/google/home/zra/dart/sdk/pkg/vm/bin/gen_kernel.dart:68:11)
<asynchronous suspension>
#63     _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:277:32)
#64     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:165:12)
@alexmarkov alexmarkov added the area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. label Jun 26, 2018
@alexmarkov
Copy link
Contributor

/cc @mkustermann

dart-bot pushed a commit that referenced this issue Jun 26, 2018
related #33628

Change-Id: Ifd642cedd0e4621b3eac281723bbff417dad49c1
Reviewed-on: https://dart-review.googlesource.com/62321
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
@mraleph mraleph self-assigned this Jun 27, 2018
@mkustermann mkustermann assigned mkustermann and unassigned mraleph Jul 6, 2018
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.
Projects
None yet
Development

No branches or pull requests

4 participants