Project

General

Profile

Actions

Bug #18941

closed

Endless loop with a memory leak in FileUtils::mkpath

Added by inversion (Yura Babak) over 2 years ago. Updated about 2 years ago.

Status:
Closed
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) over 2 years 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) over 2 years ago

  • Assignee deleted (dblack (David Black))
Actions #4

Updated by hsbt (Hiroshi SHIBATA) about 2 years ago

  • Status changed from Open to Closed
  • Backport changed from 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN to 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: REQUIRED

Updated by nagachika (Tomoyuki Chikanaga) about 2 years ago

  • Backport changed from 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: REQUIRED to 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: DONE

ruby_3_1 a07e7ad6b0b9abc44d097ca600b0ff801d0d0a06 merged revision(s) 70f69f85395f5735429cd45136d7de2742f08b72.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0