dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.23k stars 1.57k forks source link

standalone/io/unix_socket_test went from flaky -> RuntimeError on vm-reload-linux-debug-x64 #56268

Open derekxu16 opened 3 months ago

derekxu16 commented 3 months ago

The tests

standalone/io/unix_socket_test RuntimeError (expected Pass)

are failing on configurations

vm-reload-linux-debug-x64
stderr:
Unhandled exception:
Expect.fail('Unexpected exception SocketException: Write failed (OS Error: Broken pipe, errno = 32), address = /b/s/w/it4m8w7g3a/unix_socket_testACCJIL/sock, port = 0 is thrown:
#0      _NativeSocket.write (dart:io-patch/socket_patch.dart:1252:34)
#1      _RawSocket.write (dart:io-patch/socket_patch.dart:2010:15)
#2      _Socket._write (dart:io-patch/socket_patch.dart:2487:18)
#3      _SocketStreamConsumer.write (dart:io-patch/socket_patch.dart:2222:28)
#4      _SocketStreamConsumer.addStream.<anonymous closure> (dart:io-patch/socket_patch.dart:2174:11)
#5      _rootRunUnary (dart:async/zone.dart:1407:47)
#6      _CustomZone.runUnary (dart:async/zone.dart:1308:19)
#7      _CustomZone.runUnaryGuarded (dart:async/zone.dart:1217:7)
#8      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:365:11)
#9      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:297:7)
#10     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:784:19)
#11     _StreamController._add (dart:async/stream_controller.dart:658:7)
#12     _StreamController.add (dart:async/stream_controller.dart:606:5)
#13     _StreamSinkImpl.add (dart:io/io_sink.dart:154:17)
#14     _IOSinkImpl.write (dart:io/io_sink.dart:287:5)
#15     _Socket.write (dart:io-patch/socket_patch.dart:2320:36)
#16     testSetSockOpt (file:///b/s/w/ir/tests/standalone/io/unix_socket_test.dart:270:10)
<asynchronous suspension>
#17     main.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/tests/standalone/io/unix_socket_test.dart:1069:7)
<asynchronous suspension>
#18     withTempDir (file:///b/s/w/ir/tests/standalone/io/test_utils.dart:45:5)
<asynchronous suspension>
#19     main.<anonymous closure> (file:///b/s/w/ir/tests/standalone/io/unix_socket_test.dart:1068:5)
<asynchronous suspension>
')

https://ci.chromium.org/ui/p/dart/builders/ci.sandbox/vm-reload-linux-debug-x64/518/overview

derekxu16 commented 3 months ago

cc @brianquinlan