ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: "inversion (Yura Babak)" <noreply@ruby-lang.org>
To: ruby-core@ruby-lang.org
Subject: [ruby-core:109332] [Ruby master Bug#18941] Endless loop with a memory leak in FileUtils::mkpath
Date: Wed, 27 Jul 2022 05:49:49 +0000 (UTC)	[thread overview]
Message-ID: <redmine.issue-18941.20220727054949.25466@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-18941.20220727054949.25466@ruby-lang.org

Issue #18941 has been reported by inversion (Yura Babak).

----------------------------------------
Bug #18941: Endless loop with a memory leak in FileUtils::mkpath
https://bugs.ruby-lang.org/issues/18941

* Author: inversion (Yura Babak)
* Status: Open
* Priority: Normal
* 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/

       reply	other threads:[~2022-07-27  5:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-27  5:49 inversion (Yura Babak) [this message]
2022-07-27  6:11 ` [ruby-core:109333] [Ruby master Bug#18941] Endless loop with a memory leak in FileUtils::mkpath mame (Yusuke Endoh)
2022-07-27  6:11 ` [ruby-core:109334] " mame (Yusuke Endoh)
2022-08-19 11:23 ` [ruby-core:109572] " deivid
2022-08-23  3:00 ` [ruby-core:109635] " hsbt (Hiroshi SHIBATA)
2022-09-25  7:01 ` [ruby-core:110064] " nagachika (Tomoyuki Chikanaga)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.issue-18941.20220727054949.25466@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).