sdk icon indicating copy to clipboard operation
sdk copied to clipboard

CFE: macros/multiple_augment_class crashes on fuzzing

Open jensjoha opened this issue 2 years ago • 0 comments

This will fail (possibly the status entry in pkg/front_end/testcases/strong.status and/or pkg/front_end/testcases/weak.status has to be removed):

out/ReleaseX64/dart --enable-asserts pkg/front_end/test/fasta/weak_suite.dart -DsemiFuzz=true -- weak/macros/multiple_augment_class

or

out/ReleaseX64/dart --enable-asserts pkg/front_end/test/fasta/strong_suite.dart -DsemiFuzz=true -- strong/macros/multiple_augment_class

A "normal compile" doesn't fail, but on fuzzing it does like this:

Compiled and got 1 libs
 -> invalidating file:///path/to/dart-sdk/sdk/pkg/front_end/testcases/macros/multiple_augment_class.dart
 -> and got 1 libs
Can't serialize, got 'Invalid argument(s): Trying to serialize orphaned procedure reference.
Orphaned procedure method1 (Procedure:315359)
Orphaned named node method1 (Procedure:315359)
Linked node method1 (Procedure:315370)' from #0      BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1338:7)
#1      Procedure.accept (package:kernel/ast.dart:3231:40)
#2      BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:465:10)
#3      BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:356:7)
#4      BinaryPrinter.visitClass (package:kernel/binary/ast_to_binary.dart:1273:5)
#5      Class.accept (package:kernel/ast.dart:1407:38)
#6      BinaryPrinter.writeClassNode (package:kernel/binary/ast_to_binary.dart:479:10)
#7      BinaryPrinter.writeClassNodeList (package:kernel/binary/ast_to_binary.dart:374:7)
#8      BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:1110:5)
#9      Library.accept (package:kernel/ast.dart:561:38)
#10     BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:458:10)
#11     BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:764:9)
#12     BinaryPrinter.writeComponentFile.<anonymous closure> (package:kernel/binary/ast_to_binary.dart:603:7)
#13     Timeline.timeSync (dart:developer/timeline.dart:166:22)
#14     BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:584:14)
#15     FuzzCompiles.canSerialize (file:///path/to/dart-sdk/sdk/pkg/front_end/test/fasta/testing/suite.dart:1430:35)
#16     FuzzCompiles.performFileInvalidation (file:///path/to/dart-sdk/sdk/pkg/front_end/test/fasta/testing/suite.dart:1343:12)
<asynchronous suspension>
#17     FuzzCompiles.run (file:///path/to/dart-sdk/sdk/pkg/front_end/test/fasta/testing/suite.dart:1205:45)
<asynchronous suspension>
#18     ChainContext.run.doStep.<anonymous closure> (package:testing/src/chain.dart:196:22)
<asynchronous suspension>

/cc @johnniwinther

jensjoha avatar Sep 19 '22 09:09 jensjoha