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)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0