-
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
dart2js compiler crashes when run with -c option #3482
Comments
This comment was originally written by ngeoffray@google.com Hi Filip, Are you using bleeding_edge? We have fixed some compilation problems on checked mode in dart2js this week, and they may not have been ported to trunk yet. Set owner to ngeoffray@google.com. |
This comment was originally written by @filiph Nope, not using bleeding_edge. Will try. |
This comment was originally written by @filiph It works with the current bleeding_edge (no error). Thanks! |
This comment was originally written by ngeoffray@google.com Added Fixed label. |
Changes: ``` > git log --format="%C(auto) %h %s" 817e61d..b9afe92 https://dart.googlesource.com/pub.git/+/b9afe927 Completely switch from pub.dartlang.org to pub.dev (#3611) https://dart.googlesource.com/pub.git/+/7b65fa73 update docs for running 'pub token' (#3602) https://dart.googlesource.com/pub.git/+/4c9ebd0e Content hashing of archives (#3482) ``` Diff: https://dart.googlesource.com/pub.git/+/817e61d9eb174f77dfd2cb1d1de45826f66ac6bf~..b9afe9270c24d040b8ae465b4b37ba4f7f4b4cc5/ Change-Id: I6d827dd64f822e0194e0e17e95a47f02b744b561 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/264701 Commit-Queue: Sigurd Meldgaard <sigurdm@google.com> Reviewed-by: Jonas Jensen <jonasfj@google.com>
…li_util, clock, convert, crypto, csslib, dartdoc, ecosystem, ffi, fixnum, http, lints, logging, markdown, matcher, mime, native, path, pool, shelf, source_map_stack_trace, sse, stack_trace, stream_channel, string_scanner, term_glyph, test, test_descriptor, test_process, tools, typed_data, watcher, yaml, yaml_edit Revisions updated by `dart tools/rev_sdk_deps.dart`. async (https://github.com/dart-lang/async/compare/b65622a..75efa6c): 75efa6c 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#250) bazel_worker (https://github.com/dart-lang/bazel_worker/compare/c29d162..f950bbf): f950bbf 2023-08-31 Parker Lougheed Regenerate worker protocol protos to add constructors and comments (#78) 9b4c6a0 2023-08-30 Parker Lougheed Update e2e_test dependencies (#79) boolean_selector (https://github.com/dart-lang/boolean_selector/compare/303635d..f255921): f255921 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#50) browser_launcher (https://github.com/dart-lang/browser_launcher/compare/27ec600..1f69393): 1f69393 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#48) cli_util (https://github.com/dart-lang/cli_util/compare/9b7ce78..44118e3): 44118e3 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#88) clock (https://github.com/dart-lang/clock/compare/263e508..1e75f08): 1e75f08 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#55) convert (https://github.com/dart-lang/convert/compare/79ee174..c058c8f): c058c8f 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#86) crypto (https://github.com/dart-lang/crypto/compare/8b704c6..1e26879): 1e26879 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#151) csslib (https://github.com/dart-lang/csslib/compare/7e91228..bd30a1a): bd30a1a 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#188) dartdoc (https://github.com/dart-lang/dartdoc/compare/5fda5eb..695b218): 695b218c 2023-08-30 Sam Rawlins Tidy Category: (#3488) b26af96f 2023-08-30 Sam Rawlins Tidy up library exports (#3487) be35cb00 2023-08-29 Devon Carew Update dependabot.yaml (#3486) 649bb8d2 2023-08-29 Sam Rawlins Migrate to create_api_docs.dart (#3482) ecosystem (https://github.com/dart-lang/ecosystem/compare/f777da7..89e58de): 89e58de 2023-09-01 Hossein Yousefi also install flutter on validate (#160) f95d0f2 2023-09-01 Hossein Yousefi Add use-flutter arg to validate (#159) 8743a9d 2023-09-01 Moritz Pass a parameter for Flutter `firehose` support (#158) 54d1628 2023-08-31 Moritz Setup Flutter in publish workflow (#157) 8fa89c6 2023-08-31 Moritz Add flutter support (#155) 65817bf 2023-08-29 Moritz Switch to Pub API (#152) ffi (https://github.com/dart-lang/ffi/compare/e2c01a9..d36e05a): d36e05a 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#208) fixnum (https://github.com/dart-lang/fixnum/compare/00fa120..87ed065): 87ed065 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#114) http (https://github.com/dart-lang/http/compare/cad7d60..7fb6fd6): 7fb6fd6 2023-08-31 Brian Quinlan Clarify how to set the body without a content type header (#1014) lints (https://github.com/dart-lang/lints/compare/54cd7a0..da44af3): da44af3 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#144) logging (https://github.com/dart-lang/logging/compare/5214987..bcaad0f): bcaad0f 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#147) markdown (https://github.com/dart-lang/markdown/compare/56e75df..6cfd6f1): 6cfd6f1 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#554) 52be591 2023-08-30 Parker Lougheed Fix a few more lints, no longer ignore line length (#552) matcher (https://github.com/dart-lang/matcher/compare/ce8f409..80910d6): 80910d6 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#227) mime (https://github.com/dart-lang/mime/compare/799b398..37ef637): 37ef637 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#104) native (https://github.com/dart-lang/native/compare/5a1361b..a2dfedc): a2dfedc 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#117) 8dfb0d2 2023-09-01 dependabot[bot] Bump nttld/setup-ndk from 1.2.0 to 1.3.1 (#118) path (https://github.com/dart-lang/path/compare/7c2324b..96d9183): 96d9183 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#150) pool (https://github.com/dart-lang/pool/compare/7700102..a5bee35): a5bee35 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#73) shelf (https://github.com/dart-lang/shelf/compare/73edd2b..2926f76): 2926f76 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#376) source_map_stack_trace (https://github.com/dart-lang/source_map_stack_trace/compare/16e54fd..196d7bf): 196d7bf 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#41) sse (https://github.com/dart-lang/sse/compare/8cc5b11..eeb2588): eeb2588 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#87) 2bb1a6e 2023-09-01 dependabot[bot] Bump nanasess/setup-chromedriver from 2.1.1 to 2.2.0 (#88) stack_trace (https://github.com/dart-lang/stack_trace/compare/4ddd86d..bcf2a0b): bcf2a0b 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#140) stream_channel (https://github.com/dart-lang/stream_channel/compare/e54234f..0ce7ab6): 0ce7ab6 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#94) string_scanner (https://github.com/dart-lang/string_scanner/compare/413b57a..da9142c): da9142c 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#62) term_glyph (https://github.com/dart-lang/term_glyph/compare/423700a..1b28285): 1b28285 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#41) test (https://github.com/dart-lang/test/compare/d0fc4bd..27dcae1): 27dcae11 2023-09-01 dependabot[bot] Bump github/codeql-action from 2.21.2 to 2.21.5 (#2086) cf0a0a73 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#2085) test_descriptor (https://github.com/dart-lang/test_descriptor/compare/36d8617..030193d): 030193d 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#55) test_process (https://github.com/dart-lang/test_process/compare/b360784..2a6ee23): 2a6ee23 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#47) tools (https://github.com/dart-lang/tools/compare/b72fae8..2c8cbd6): 2c8cbd6 2023-09-01 Jonas Finnemann Jensen Extension discovery 2.0.0 (#156) 3e12c2e 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#157) 0f28f80 2023-08-28 Kenzie Davisson Prepare extension_discovery for 1.0.1 release (#154) typed_data (https://github.com/dart-lang/typed_data/compare/a20be90..80e8943): 80e8943 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#72) watcher (https://github.com/dart-lang/watcher/compare/7457413..1aed03e): 1aed03e 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#149) yaml (https://github.com/dart-lang/yaml/compare/7930148..ae00187): ae00187 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#150) yaml_edit (https://github.com/dart-lang/yaml_edit/compare/87dcf31..4a9734d): 4a9734d 2023-09-01 dependabot[bot] Bump actions/checkout from 3.5.3 to 3.6.0 (#56) 83f9033 2023-07-01 dependabot[bot] Bump actions/checkout from 3.5.2 to 3.5.3 (#54) Change-Id: Ie6b9d9ef138730b98e9df8cbb31c6cc330ada9f8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/323703 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Devon Carew <devoncarew@google.com>
This issue was originally filed by @filiph
I'm "porting" my VM project to work in the browser. When I compile it with dart2js normally, it compiles (but admittedly, it doesn't work because of http://code.google.com/p/dart/issues/detail?id=3244). When I use the "-c" option, though, the compiler crashes.
./../../../../Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/lib/js_helper.dart:412:17: Error: The compiler crashed when compiling this element.
static String objectToString(Object object) {
^^^^^^^^^^^^^^
What is the expected output? What do you see instead?
Same as without "-c", that is - a compiled program.
What version of the product are you using? On what operating system?
Mac OS X 10.6.8
Dart SDK rev 8369
Please provide any additional information below.
Internal error: NullPointerException : method: 'hashCode'
Receiver: null
Arguments: []
0. Function: 'Object.noSuchMethod' url: 'bootstrap' line:473 col:137
1. Function: 'HashMapImplementation._probeForAdding@924b4b8' url: 'bootstrap_impl' line:580 col:6
2. Function: 'HashMapImplementation.[]=' url: 'bootstrap_impl' line:616 col:69
3. Function: 'SsaCodeGenerator.sequentializeCopies' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:1040 col:22
4. Function: 'SsaCodeGenerator.assignPhisOfSuccessors' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:1092 col:24
5. Function: 'SsaCodeGenerator.iterateBasicBlock' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:1119 col:27
6. Function: 'SsaCodeGenerator.visitBasicBlock' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:989 col:22
7. Function: 'SsaCodeGenerator.visitSubGraph' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:288 col:20
8. Function: 'SsaCodeGenerator.visitSubGraphInfo' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:680 col:18
9. Function: 'HSubGraphBlockInformation.accept' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/nodes.dart' line:2379 col:30
10. Function: 'SsaCodeGenerator.generateStatements' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:380 col:19
11. Function: 'SsaCodeGenerator.visitIfInfo' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:620 col:25
12. Function: 'HIfBlockInformation.accept' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/nodes.dart' line:2505 col:24
13. Function: 'SsaCodeGenerator.handleBlockFlow' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:962 col:31
14. Function: 'SsaCodeGenerator.visitBasicBlock' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:981 col:24
15. Function: 'SsaCodeGenerator.visitGoto' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:1261 col:20
16. Function: 'HGoto.accept' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/nodes.dart' line:1691 col:48
17. Function: 'SsaCodeGenerator.visit' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:577 col:16
18. Function: 'SsaCodeGenerator.iterateBasicBlock' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:1123 col:10
19. Function: 'SsaCodeGenerator.visitBasicBlock' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:989 col:22
20. Function: 'SsaCodeGenerator.visitGoto' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:1261 col:20
21. Function: 'HGoto.accept' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/nodes.dart' line:1691 col:48
22. Function: 'SsaCodeGenerator.visit' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:577 col:16
23. Function: 'SsaCodeGenerator.iterateBasicBlock' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:1123 col:10
24. Function: 'SsaCodeGenerator.visitBasicBlock' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:989 col:22
25. Function: 'SsaCodeGenerator.visitGraph' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:275 col:20
26. Function: 'SsaCodeGeneratorTask.function' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:48 col:25
27. Function: 'CompilerTask.measure' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/compiler.dart' line:545 col:24
28. Function: 'SsaCodeGeneratorTask.generateMethod' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/ssa/codegen.dart' line:39 col:19
29. Function: 'JavaScriptBackend.codegen' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/compiler.dart' line:62 col:36
30. Function: 'Compiler.codegen' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/compiler.dart' line:414 col:36
31. Function: 'WorkItem.run' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/compiler.dart' line:19 col:28
32. Function: 'Compiler.function' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/compiler.dart' line:381 col:54
33. Function: 'Compiler.withCurrentElement' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/compiler.dart' line:111 col:15
34. Function: 'Compiler.withCurrentElement' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/compiler.dart' line:116 col:7
35. Function: 'Compiler.processQueue' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/compiler.dart' line:381 col:25
36. Function: 'Compiler.runCompiler' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/compiler.dart' line:366 col:17
37. Function: 'Compiler.run' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/compiler.dart' line:234 col:18
38. Function: 'Compiler.run' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/compiler.dart' line:235 col:7
39. Function: 'Compiler.run' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/apiimpl.dart' line:86 col:29
40. Function: '::compile' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/compiler.dart' line:47 col:15
41. Function: '::compile' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/dart2js.dart' line:205 col:28
42. Function: '::compilerMain' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/dart2js.dart' line:254 col:10
43. Function: '::main' url: 'file:///Applications/dart/dart-sdk/lib/dart2js/lib/compiler/implementation/dart2js.dart' line:334 col:17
The text was updated successfully, but these errors were encountered: