From: "mame (Yusuke Endoh)" Date: 2022-07-27T06:11:10+00:00 Subject: [ruby-core:109333] [Ruby master Bug#18941] Endless loop with a memory leak in FileUtils::mkpath Issue #18941 has been updated by mame (Yusuke Endoh). Assignee set to dblack (David Black) Thank you for your report. The behavior was indeed changed between 3.0 and 3.1: https://github.com/ruby/fileutils/pull/60 ---------------------------------------- Bug #18941: Endless loop with a memory leak in FileUtils::mkpath https://bugs.ruby-lang.org/issues/18941#change-98476 * Author: inversion (Yura Babak) * Status: Open * Priority: Normal * Assignee: dblack (David Black) * 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: