From: "inversion (Yura Babak)" Date: 2022-07-27T05:49:49+00:00 Subject: [ruby-core:109332] [Ruby master Bug#18941] Endless loop with a memory leak in FileUtils::mkpath Issue #18941 has been reported by inversion (Yura Babak). ---------------------------------------- Bug #18941: Endless loop with a memory leak in FileUtils::mkpath https://bugs.ruby-lang.org/issues/18941 * Author: inversion (Yura Babak) * Status: Open * Priority: Normal * ruby -v: 3.1.2p20 (2022-04-12 revision 4491bb740a) [x64-mingw-ucrt] * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- On Windows 10 with Ruby `3.1.2p20 (2022-04-12 revision 4491bb740a) [x64-mingw-ucrt]`, an attempt to create a path on the offline external drive stuck with a memory leak: ``` ruby require 'fileutils' FileUtils.mkpath 'W:/new_dir' ``` Same code with `Ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]` throws an error as expected: ``` fileutils.rb:253:in `mkdir': No such file or directory @ dir_s_mkdir - W:/new_dir (Errno::ENOENT) ``` -- https://bugs.ruby-lang.org/ Unsubscribe: