Skip to content

FD exhaustion on Linux/Android in new file watcher test #61654

@rmacnak-google

Description

@rmacnak-google

The tests

standalone/file_system_watcher_isolate_exit_leak_test RuntimeError (expected Pass)

are failing on configurations

vm-aot-android-release-arm_x64
vm-aot-linux-debug-simarm_x64
vm-aot-linux-release-simarm_x64
vm-linux-release-ia32
vm-linux-release-simarm
--- Command "vm" (took 05.000775s):
DART_CONFIGURATION=ReleaseIA32 out/ReleaseIA32/dart -Dtest_runner.configuration=vm-linux-release-ia32 --ignore-unrecognized-flags --packages=/b/s/w/ir/.dart_tool/package_config.json /b/s/w/ir/tests/standalone/file_system_watcher_isolate_exit_leak_test.dart

exit code:
255

stderr:
Unhandled exception:
OS Error: Too many open files, errno = 24
#0      _FileSystemWatcher._initWatcher (dart:io-patch/file_patch.dart:471:37)
#1      _InotifyFileSystemWatcher._ensureWatcherIsRunning (dart:io-patch/file_patch.dart:552:55)
#2      _MultiplexingFileSystemWatcher._startWatching (dart:io-patch/file_patch.dart:516:5)
#3      _FileSystemWatcher._watchImpl.<anonymous closure> (dart:io-patch/file_patch.dart:350:39)
#4      _MultiStream.listen.<anonymous closure> (dart:async/stream_impl.dart:1178:16)
#5      _runGuarded (dart:async/stream_controller.dart:838:24)
#6      _StreamController._subscribe.<anonymous closure> (dart:async/stream_controller.dart:716:7)
#7      _BufferingStreamSubscription._guardCallback (dart:async/stream_impl.dart:457:13)
#8      _StreamController._subscribe (dart:async/stream_controller.dart:715:18)
#9      _MultiStream.listen (dart:async/stream_impl.dart:1180:23)
#10     main.<anonymous closure> (file:///b/s/w/ir/tests/standalone/file_system_watcher_isolate_exit_leak_test.dart:24:36)
#11     _RemoteRunner._run (dart:isolate:1116:47)
#12     _RemoteRunner._remoteExecute (dart:isolate:1110:12)
#13     _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:317:17)
#14     _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:193:12)

--- Re-run this test:
python3 tools/test.py -n vm-linux-release-ia32 standalone/file_system_watcher_isolate_exit_leak_test

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work onarea-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-iotriagedIssue has been triaged by sub team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions