ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:109332] [Ruby master Bug#18941] Endless loop with a memory leak in FileUtils::mkpath
@ 2022-07-27  5:49 inversion (Yura Babak)
  2022-07-27  6:11 ` [ruby-core:109333] " mame (Yusuke Endoh)
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: inversion (Yura Babak) @ 2022-07-27  5:49 UTC (permalink / raw)
  To: ruby-core

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:109333] [Ruby master Bug#18941] Endless loop with a memory leak in FileUtils::mkpath
  2022-07-27  5:49 [ruby-core:109332] [Ruby master Bug#18941] Endless loop with a memory leak in FileUtils::mkpath inversion (Yura Babak)
@ 2022-07-27  6:11 ` mame (Yusuke Endoh)
  2022-07-27  6:11 ` [ruby-core:109334] " mame (Yusuke Endoh)
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mame (Yusuke Endoh) @ 2022-07-27  6:11 UTC (permalink / raw)
  To: ruby-core

Issue #18941 has been updated by mame (Yusuke Endoh).

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

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

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:109334] [Ruby master Bug#18941] Endless loop with a memory leak in FileUtils::mkpath
  2022-07-27  5:49 [ruby-core:109332] [Ruby master Bug#18941] Endless loop with a memory leak in FileUtils::mkpath inversion (Yura Babak)
  2022-07-27  6:11 ` [ruby-core:109333] " mame (Yusuke Endoh)
@ 2022-07-27  6:11 ` mame (Yusuke Endoh)
  2022-08-19 11:23 ` [ruby-core:109572] " deivid
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mame (Yusuke Endoh) @ 2022-07-27  6:11 UTC (permalink / raw)
  To: ruby-core

Issue #18941 has been updated by mame (Yusuke Endoh).

Assignee deleted (dblack (David Black))

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

* 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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:109572] [Ruby master Bug#18941] Endless loop with a memory leak in FileUtils::mkpath
  2022-07-27  5:49 [ruby-core:109332] [Ruby master Bug#18941] Endless loop with a memory leak in FileUtils::mkpath inversion (Yura Babak)
  2022-07-27  6:11 ` [ruby-core:109333] " mame (Yusuke Endoh)
  2022-07-27  6:11 ` [ruby-core:109334] " mame (Yusuke Endoh)
@ 2022-08-19 11:23 ` deivid
  2022-08-23  3:00 ` [ruby-core:109635] " hsbt (Hiroshi SHIBATA)
  2022-09-25  7:01 ` [ruby-core:110064] " nagachika (Tomoyuki Chikanaga)
  4 siblings, 0 replies; 6+ messages in thread
From: deivid @ 2022-08-19 11:23 UTC (permalink / raw)
  To: ruby-core

Issue #18941 has been updated by deivid (David Rodríguez).


I proposed a fix at https://github.com/ruby/fileutils/pull/100.

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

* 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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:109635] [Ruby master Bug#18941] Endless loop with a memory leak in FileUtils::mkpath
  2022-07-27  5:49 [ruby-core:109332] [Ruby master Bug#18941] Endless loop with a memory leak in FileUtils::mkpath inversion (Yura Babak)
                   ` (2 preceding siblings ...)
  2022-08-19 11:23 ` [ruby-core:109572] " deivid
@ 2022-08-23  3:00 ` hsbt (Hiroshi SHIBATA)
  2022-09-25  7:01 ` [ruby-core:110064] " nagachika (Tomoyuki Chikanaga)
  4 siblings, 0 replies; 6+ messages in thread
From: hsbt (Hiroshi SHIBATA) @ 2022-08-23  3:00 UTC (permalink / raw)
  To: ruby-core

Issue #18941 has been updated by hsbt (Hiroshi SHIBATA).


https://github.com/ruby/ruby/commit/70f69f85395f5735429cd45136d7de2742f08b72

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

* Author: inversion (Yura Babak)
* Status: Closed
* Priority: Normal
* ruby -v: 3.1.2p20 (2022-04-12 revision 4491bb740a) [x64-mingw-ucrt]
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: REQUIRED
----------------------------------------
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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:110064] [Ruby master Bug#18941] Endless loop with a memory leak in FileUtils::mkpath
  2022-07-27  5:49 [ruby-core:109332] [Ruby master Bug#18941] Endless loop with a memory leak in FileUtils::mkpath inversion (Yura Babak)
                   ` (3 preceding siblings ...)
  2022-08-23  3:00 ` [ruby-core:109635] " hsbt (Hiroshi SHIBATA)
@ 2022-09-25  7:01 ` nagachika (Tomoyuki Chikanaga)
  4 siblings, 0 replies; 6+ messages in thread
From: nagachika (Tomoyuki Chikanaga) @ 2022-09-25  7:01 UTC (permalink / raw)
  To: ruby-core

Issue #18941 has been updated by nagachika (Tomoyuki Chikanaga).

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.

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

* Author: inversion (Yura Babak)
* Status: Closed
* Priority: Normal
* ruby -v: 3.1.2p20 (2022-04-12 revision 4491bb740a) [x64-mingw-ucrt]
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: DONE
----------------------------------------
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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-09-25  7:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-27  5:49 [ruby-core:109332] [Ruby master Bug#18941] Endless loop with a memory leak in FileUtils::mkpath inversion (Yura Babak)
2022-07-27  6:11 ` [ruby-core:109333] " 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)

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