Skip to content

[dart2wasm] co19/Language/Functions/element_type_A03_t02 crashes the compiler #53234

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
sgrekhov opened this issue Aug 16, 2023 · 0 comments
Closed
Assignees
Labels
area-dart2wasm Issues for the dart2wasm compiler. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash.

Comments

@sgrekhov
Copy link
Contributor

Test https://github.com/dart-lang/co19/blob/master/Language/Functions/element_type_A03_t02.dart craches dart2wasm
Log

/=======================================================================================\
| co19/Language/Functions/element_type_A03_t02 is new and failed (Crash, expected Pass) |
\=======================================================================================/

--- Command "dart2wasm" (took 671ms):
DART_CONFIGURATION=ReleaseX64 CHROME_PATH=/b/s/w/ir/third_party/browsers/chrome/chrome/google-chrome sdk/bin/dart2wasm_developer -Dtest_runner.configuration=dart2wasm-linux-chrome /b/s/w/ir/tests/co19/src/Language/Functions/element_type_A03_t02.dart /b/s/w/ir/out/ReleaseX64/generated_tests/dart2wasm-linux-chrome/tests_co19_src_Language_Functions_element_type_A03_t02/element_type_A03_t02.wasm

exit code:
255

stderr:
Unhandled exception:
Crash when compiling:
Bad state: No element

#0      List.single (dart:core-patch/growable_array.dart:353)
#1      _WasmTransformer._lowerAsyncStar (package:dart2wasm/transformers.dart:607)
#2      _WasmTransformer.visitFunctionNode (package:dart2wasm/transformers.dart:694)
#3      FunctionNode.accept (package:kernel/ast.dart:3721)
#4      Transformer.transform (package:kernel/visitor.dart:1773)
#5      Procedure.transformChildren (package:kernel/ast.dart:3143)
#6      Transformer.defaultTreeNode (package:kernel/visitor.dart:1807)
#7      TreeVisitor.defaultMember (package:kernel/visitor.dart:471)
#8      _WasmTransformer.defaultMember (package:dart2wasm/transformers.dart:69)
#9      TreeVisitor.visitProcedure (package:kernel/visitor.dart:475)
#10     Procedure.accept (package:kernel/ast.dart:3124)
#11     Transformer.transform (package:kernel/visitor.dart:1773)
#12     Transformer.transformList (package:kernel/visitor.dart:1790)
#13     Library.transformChildren (package:kernel/ast.dart:608)
#14     Transformer.defaultTreeNode (package:kernel/visitor.dart:1807)
#15     TreeVisitor.visitLibrary (package:kernel/visitor.dart:504)
#16     List.forEach (dart:core-patch/growable_array.dart)
#17     transformLibraries (package:dart2wasm/transformers.dart:18)
#18     WasmTarget.performModularTransformationsOnLibraries (package:dart2wasm/target.dart:267)
#19     KernelTarget.runBuildTransformations (package:front_end/src/fasta/kernel/kernel_target.dart:1559)
#20     KernelTarget.buildComponent.<anonymous closure> (package:front_end/src/fasta/kernel/kernel_target.dart:626)
<asynchronous suspension>
#21     withCrashReporting (package:front_end/src/fasta/crash.dart:133)
<asynchronous suspension>
#22     KernelTarget.buildComponent (package:front_end/src/fasta/kernel/kernel_target.dart:576)
<asynchronous suspension>
#23     _buildInternal (package:front_end/src/kernel_generator_impl.dart:210)
<asynchronous suspension>
#24     withCrashReporting (package:front_end/src/fasta/crash.dart:133)
<asynchronous suspension>
#25     kernelForProgramInternal.<anonymous closure> (package:front_end/src/api_prototype/kernel_generator.dart:62)
<asynchronous suspension>
#26     CompilerContext.clear (package:front_end/src/fasta/compiler_context.dart:139)
<asynchronous suspension>
#27     kernelForProgramInternal (package:front_end/src/api_prototype/kernel_generator.dart:61)
<asynchronous suspension>
#28     kernelForProgram (package:front_end/src/api_prototype/kernel_generator.dart:50)
<asynchronous suspension>
#29     compileToModule (package:dart2wasm/compile.dart:104)
<asynchronous suspension>
#30     main (package:dart2wasm/dart2wasm.dart:134)
<asynchronous suspension>
#31     main (file:///b/s/w/ir/cache/builder/sdk/pkg/dart2wasm/bin/dart2wasm.dart:7)
<asynchronous suspension>

--- Re-run this test:
python3 tools/test.py -n dart2wasm-linux-chrome co19/Language/Functions/element_type_A03_t02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-dart2wasm Issues for the dart2wasm compiler. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash.
Projects
None yet
Development

No branches or pull requests

2 participants