From: deivid Date: 2022-08-19T11:23:43+00:00 Subject: [ruby-core:109572] [Ruby master Bug#18941] Endless loop with a memory leak in FileUtils::mkpath Issue #18941 has been updated by deivid (David Rodr��guez). I proposed a fix at https://github.com/ruby/fileutils/pull/100. ---------------------------------------- Bug #18941: Endless loop with a memory leak in FileUtils::mkpath https://bugs.ruby-lang.org/issues/18941#change-98744 * 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: