Skip to content

dart2js/kernel fuzz crash: RangeError in substring from getTextLine #38271

Open
@MichaelRFairhurst

Description

@MichaelRFairhurst

o(=: and c{@

Unhandled exception:
Crash when compiling file://case.dart,
at character offset 3:
RangeError: Value not in range: 5
#0      _StringBase.substring (dart:core-patch/string_patch.dart:386:7)
#1      Source.getTextLine (package:kernel/ast.dart:6577:25)
#2      SourceFile.getLocationMessage (package:compiler/src/io/source_file.dart:148:42)
#3      FormattingDiagnosticHandler.report (package:compiler/src/source_file_provider.dart:296:20)
#4      CompilerImpl.callUserHandler.<anonymous closure> (package:compiler/src/apiimpl.dart:179:17)
#5      CompilerTask.measure (package:compiler/src/common/tasks.dart:64:51)
#6      CompilerImpl.callUserHandler (package:compiler/src/apiimpl.dart:178:23)
#7      CompilerImpl._reportDiagnosticMessage (package:compiler/src/apiimpl.dart:170:7)
#8      CompilerImpl.reportDiagnostic (package:compiler/src/apiimpl.dart:155:5)
#9      CompilerDiagnosticReporter.reportDiagnostic (package:compiler/src/compiler.dart:732:14)
#10     CompilerDiagnosticReporter.reportDiagnosticInternal (package:compiler/src/compiler.dart:727:5)

Note how this one says "at character offset null"

t=(){@

Unhandled exception:
Crash when compiling null,
at character offset null:
RangeError: Value not in range: 7
#0 _StringBase.substring (dart:core-patch/string_patch.dart:386:7)
#1 Source.getTextLine (package:kernel/ast.dart:6577:25)
#2 SourceFile.getLocationMessage (package:compiler/src/io/source_file.dart:148:42)
#3 FormattingDiagnosticHandler.report (package:compiler/src/source_file_provider.dart:296:20)
#4 CompilerImpl.callUserHandler. (package:compiler/src/apiimpl.dart:179:17)
#5 CompilerTask.measure (package:compiler/src/common/tasks.dart:64:51)
#6 CompilerImpl.callUserHandler (package:compiler/src/apiimpl.dart:178:23)
#7 CompilerImpl._reportDiagnosticMessage (package:compiler/src/apiimpl.dart:170:7)
#8 CompilerImpl.reportDiagnostic (package:compiler/src/apiimpl.dart:155:5)
#9 CompilerDiagnosticReporter.reportDiagnostic (package:compiler/src/compiler.dart:732:14)
#10 CompilerDiagnosticReporter.reportDiagnosticInternal (package:compiler/src/compiler.dart:727:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.crashProcess exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash.dart2js-crashdart2js-kernelfuzz-dustfound with dust fuzz testingweb-dart2js

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions