Project

General

Profile

Actions

Bug #18941

open

Endless loop with a memory leak in FileUtils::mkpath

Added by inversion (Yura Babak) 12 days ago. Updated 12 days ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
3.1.2p20 (2022-04-12 revision 4491bb740a) [x64-mingw-ucrt]
[ruby-core:109332]

Description

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:

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)

Updated by mame (Yusuke Endoh) 12 days ago

  • 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

Updated by mame (Yusuke Endoh) 12 days ago

  • Assignee deleted (dblack (David Black))
Actions

Also available in: Atom PDF