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

Analyzer crash on co19/LanguageFeatures/Parts-with-imports/export_A01_t01 #56728

Open
sgrekhov opened this issue Sep 13, 2024 · 0 comments
Open
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. feature-enhanced-parts Regarding the 'enhanced-parts' feature P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug

Comments

@sgrekhov
Copy link
Contributor


/==================================================================================================\
| co19/LanguageFeatures/Parts-with-imports/export_A01_t01 is new and failed (Crash, expected Pass) |
\==================================================================================================/

--- Command "dart2analyzer" (took 245ms):
DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart out/ReleaseX64/gen/dartanalyzer.dart.snapshot -Dtest_runner.configuration=analyzer-asserts-linux --enable-experiment=enhanced-parts --ignore-unrecognized-flags --packages=/b/s/w/ir/cache/builder/sdk/.dart_tool/package_config.json --format=json /b/s/w/ir/cache/builder/sdk/tests/co19/src/LanguageFeatures/Parts-with-imports/export_A01_t01.dart

analyzer json parse result:
- parse failed

exit code:
253

stderr:
Unhandled exception:
RangeError (length): Invalid value: Valid value range is empty: 0
#0      _Array.[] (dart:core-patch/array.dart)
#1      ExportLocation.exportOf (package:analyzer/src/summary2/export.dart:102:34)
#2      LibraryElementImpl.isFromDeprecatedExport (package:analyzer/src/dart/element/element.dart:6016:31)
#3      new PrefixScope (package:analyzer/src/dart/element/scope.dart:536:33)
#4      new LibraryFragmentScope (package:analyzer/src/dart/element/scope.dart:347:22)
#5      CompilationUnitElementImpl.scope (package:analyzer/src/dart/element/element.dart:1059:23)
#6      LibraryBuilder.resolveTypes (package:analyzer/src/summary2/library_builder.dart:726:29)
#7      Linker._resolveTypes (package:analyzer/src/summary2/link.dart:464:15)
#8      Linker._buildOutlines (package:analyzer/src/summary2/link.dart:248:5)
<asynchronous suspension>
#9      Linker.link.<anonymous closure> (package:analyzer/src/summary2/link.dart:123:7)
<asynchronous suspension>
#10     OperationPerformanceImpl.runAsync (package:analyzer/src/util/performance/operation_performance.dart:174:14)
<asynchronous suspension>
#11     Linker.link (package:analyzer/src/summary2/link.dart:122:5)
<asynchronous suspension>
#12     link (package:analyzer/src/summary2/link.dart:41:3)
<asynchronous suspension>
#13     LibraryContext.load.loadBundle.<anonymous closure> (package:analyzer/src/dart/analysis/library_context.dart:197:22)
<asynchronous suspension>
#14     OperationPerformanceImpl.runAsync (package:analyzer/src/util/performance/operation_performance.dart:174:14)
<asynchronous suspension>
#15     LibraryContext.load.loadBundle (package:analyzer/src/dart/analysis/library_context.dart:194:24)
<asynchronous suspension>
#16     LibraryContext.load.<anonymous closure> (package:analyzer/src/dart/analysis/library_context.dart:282:7)
<asynchronous suspension>
#17     PerformanceLog.runAsync (package:analyzer/src/dart/analysis/performance_logger.dart:50:14)
<asynchronous suspension>
#18     LibraryContext.load (package:analyzer/src/dart/analysis/library_context.dart:273:5)
<asynchronous suspension>
#19     AnalysisDriver._getUnitElement.<anonymous closure>.<anonymous closure> (package:analyzer/src/dart/analysis/driver.dart:1864:13)
<asynchronous suspension>
#20     OperationPerformanceImpl.runAsync (package:analyzer/src/util/performance/operation_performance.dart:174:14)
<asynchronous suspension>
#21     AnalysisDriver._getUnitElement.<anonymous closure> (package:analyzer/src/dart/analysis/driver.dart:1861:9)
<asynchronous suspension>
#22     OperationPerformanceImpl.runAsync (package:analyzer/src/util/performance/operation_performance.dart:174:14)
<asynchronous suspension>
#23     AnalysisDriver._getUnitElement (package:analyzer/src/dart/analysis/driver.dart:1852:5)
<asynchronous suspension>
#24     AnalysisDriver.performWork (package:analyzer/src/dart/analysis/driver.dart:1222:7)
<asynchronous suspension>
#25     AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2442:7)
<asynchronous suspension>


#0      LibraryContext._throwLibraryCycleLinkException (package:analyzer/src/dart/analysis/library_context.dart:411:5)
#1      LibraryContext.load.loadBundle (package:analyzer/src/dart/analysis/library_context.dart:208:11)
<asynchronous suspension>
#2      LibraryContext.load.<anonymous closure> (package:analyzer/src/dart/analysis/library_context.dart:282:7)
<asynchronous suspension>
#3      PerformanceLog.runAsync (package:analyzer/src/dart/analysis/performance_logger.dart:50:14)
<asynchronous suspension>
#4      LibraryContext.load (package:analyzer/src/dart/analysis/library_context.dart:273:5)
<asynchronous suspension>
#5      AnalysisDriver._getUnitElement.<anonymous closure>.<anonymous closure> (package:analyzer/src/dart/analysis/driver.dart:1864:13)
<asynchronous suspension>
#6      OperationPerformanceImpl.runAsync (package:analyzer/src/util/performance/operation_performance.dart:174:14)
<asynchronous suspension>
#7      AnalysisDriver._getUnitElement.<anonymous closure> (package:analyzer/src/dart/analysis/driver.dart:1861:9)
<asynchronous suspension>
#8      OperationPerformanceImpl.runAsync (package:analyzer/src/util/performance/operation_performance.dart:174:14)
<asynchronous suspension>
#9      AnalysisDriver._getUnitElement (package:analyzer/src/dart/analysis/driver.dart:1852:5)
<asynchronous suspension>
#10     AnalysisDriver.performWork (package:analyzer/src/dart/analysis/driver.dart:1222:7)
<asynchronous suspension>
#11     AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2442:7)
<asynchronous suspension>

--- Re-run this test:
python3 tools/test.py -n analyzer-asserts-linux co19/LanguageFeatures/Parts-with-imports/export_A01_t01

Also
co19/LanguageFeatures/Parts-with-imports/export_A01_t02
co19/LanguageFeatures/Parts-with-imports/export_A02_t01

@sgrekhov sgrekhov added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. feature-enhanced-parts Regarding the 'enhanced-parts' feature labels Sep 13, 2024
@srawlins srawlins added P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug labels Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. feature-enhanced-parts Regarding the 'enhanced-parts' feature P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Projects
Development

No branches or pull requests

2 participants