Files
node/lib/internal
Anna Henningsen d3a8a23089 fs: forbid concurrent operations on Dir handle
libuv does not expect concurrent operations on `uv_dir_t` instances,
and will gladly create memory leaks, corrupt data, or crash the
process.

This patch forbids that, and:

- Makes sure that concurrent async operations are run sequentially
- Throws an exception if sync operations are attempted during an
  async operation

The assumption here is that a thrown exception is preferable to
a potential hard crash.

This fully fixes flakiness from `parallel/test-fs-opendir` when
run under ASAN.

PR-URL: https://github.com/nodejs/node/pull/33274
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2020-05-15 19:36:50 +02:00
..
2020-03-30 17:21:13 +02:00
2020-01-07 19:26:15 -08:00
2020-05-14 12:39:23 -05:00
2020-01-22 15:33:03 +01:00
2020-05-03 22:27:06 -07:00
2020-05-14 12:39:23 -05:00
2020-01-22 15:33:03 +01:00
2019-11-30 13:58:25 +01:00
2019-12-17 08:11:13 -05:00
2020-03-13 10:50:30 +01:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.