[ruby-core:109635] [Ruby master Bug#18941] Endless loop with a memory leak in FileUtils::mkpath
From:
"hsbt (Hiroshi SHIBATA)" <noreply@...>
Date:
2022-08-23 03:00:31 UTC
List:
ruby-core #109635
Issue #18941 has been updated by hsbt (Hiroshi SHIBATA). https://github.com/ruby/ruby/commit/70f69f85395f5735429cd45136d7de2742f08b72 ---------------------------------------- Bug #18941: Endless loop with a memory leak in FileUtils::mkpath https://bugs.ruby-lang.org/issues/18941#change-98854 * Author: inversion (Yura Babak) * Status: Closed * Priority: Normal * ruby -v: 3.1.2p20 (2022-04-12 revision 4491bb740a) [x64-mingw-ucrt] * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: REQUIRED ---------------------------------------- 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: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>