Project

General

Profile

Actions

Bug #18941

closed

Endless loop with a memory leak in FileUtils::mkpath

Added by inversion (Yura Babak) over 1 year ago. Updated over 1 year 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 1 year 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 1 year ago

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

Updated by hsbt (Hiroshi SHIBATA) over 1 year 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) over 1 year 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