Skip to content

Possible bug in dart:io's File.copySync on Windows #42291

@mkustermann

Description

@mkustermann

After a new checked-in SDK got pulled into the sdk in cl/150931 we're seeing issues, e.g. log:

Test configurations:
    dartkp-win-release-x64(architecture: x64, compiler: dartkp, mode: release, runtime: dart_precompiled, system: win)
Suites tested: samples, standalone_2, corelib_2, language_2, vm, benchmark_smoke, utils, lib_2, analyze_library, service, kernel, ffi_2
    dartkp-win-release-x64(architecture: x64, compiler: dartkp, mode: release, runtime: dart_precompiled, system: win)
Suites tested: observatory_ui
Unhandled exception:
FileSystemException: Cannot copy file to 'C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dartkp/runtime_tests_vm_dart_appjit_bytecode_simple_test/appjit_bytecode_simple_test_body.dart', path = 'C:\b\s\w\ir\runtime\tests\vm\dart\appjit_bytecode_simple_test_body.dart' (OS Error: The operation completed successfully.

, errno = 0)
#0      _File.throwIfError (dart:io/file_impl.dart:635:7)
#1      _File.copySync (dart:io/file_impl.dart:340:5)
#2      StandardTestSuite._makeCommands (package:test_runner/src/test_suite.dart:683:39)
#3      StandardTestSuite._enqueueStandardTest (package:test_runner/src/test_suite.dart:611:22)
#4      StandardTestSuite._testCasesFromTestFile (package:test_runner/src/test_suite.dart:590:7)
#5      StandardTestSuite.findTestCases (package:test_runner/src/test_suite.dart:485:7)
#6      TestCaseEnqueuer.enqueueTestSuites (package:test_runner/src/process_queue.dart:239:13)
#7      new ProcessQueue (package:test_runner/src/process_queue.dart:177:22)
#8      testConfigurations (package:test_runner/src/test_configurations.dart:255:3)
#9      main (file:///C:/b/s/w/ir/pkg/test_runner/bin/test_runner.dart:39:5)
#10     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#11     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
INFO: Enabling coredump archiving into C:\b\s\w\ir\crashes
INFO: Core dump archiving is activated
INFO: No unexpected crashes recorded

This might have been introduced in cl/149667.

For now I reverted the SDK upgrade.

/cc @zanderso @zichangg can you confirm it is coming from this change?

Metadata

Metadata

Assignees

Labels

P1A high priority bug; for example, a single project is unusable or has many test failuresarea-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.gardeninglibrary-io

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions