* [ruby-core:71161] [Ruby trunk - Bug #11613] [Open] test_aspawn_too_long_path creates too many processes
[not found] <redmine.issue-11613.20151022165233@ruby-lang.org>
@ 2015-10-22 16:52 ` naruse
2015-10-22 16:54 ` [ruby-core:71162] [Ruby trunk - Bug #11613] " naruse
` (2 subsequent siblings)
3 siblings, 0 replies; 4+ messages in thread
From: naruse @ 2015-10-22 16:52 UTC (permalink / raw)
To: ruby-core
Issue #11613 has been reported by Yui NARUSE.
----------------------------------------
Bug #11613: test_aspawn_too_long_path creates too many processes
https://bugs.ruby-lang.org/issues/11613
* Author: Yui NARUSE
* Status: Open
* Priority: Normal
* Assignee:
* ruby -v:
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
At least on FreeBSD, spawn("echo|echo|echo|echo|echo|echo|echo| ...20000 times") success and create 20000 zombie processes.
To prevent this you can add rlimit_nproc: 1 because it tests sh itself, don't test spawned echos.
```diff
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index 32dcaed..7877171 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -1600,7 +1600,7 @@ class TestProcess < Test::Unit::TestCase
assert_raise(*exs, mesg) do
begin
loop do
- Process.spawn(cmds.join(sep), [STDOUT, STDERR]=>File::NULL)
+ Process.spawn(cmds.join(sep), [STDOUT, STDERR]=>File::NULL, rlimit_nproc: 1)
min = [cmds.size, min].max
cmds *= 100
end
```
--
https://bugs.ruby-lang.org/
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [ruby-core:71162] [Ruby trunk - Bug #11613] test_aspawn_too_long_path creates too many processes
[not found] <redmine.issue-11613.20151022165233@ruby-lang.org>
2015-10-22 16:52 ` [ruby-core:71161] [Ruby trunk - Bug #11613] [Open] test_aspawn_too_long_path creates too many processes naruse
@ 2015-10-22 16:54 ` naruse
2015-10-29 14:28 ` [ruby-core:71266] " usa
2015-11-28 18:30 ` [ruby-core:71724] " nagachika00
3 siblings, 0 replies; 4+ messages in thread
From: naruse @ 2015-10-22 16:54 UTC (permalink / raw)
To: ruby-core
Issue #11613 has been updated by Yui NARUSE.
Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED
----------------------------------------
Bug #11613: test_aspawn_too_long_path creates too many processes
https://bugs.ruby-lang.org/issues/11613#change-54537
* Author: Yui NARUSE
* Status: Open
* Priority: Normal
* Assignee:
* ruby -v:
* Backport: 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED
----------------------------------------
At least on FreeBSD, spawn("echo|echo|echo|echo|echo|echo|echo| ...20000 times") success and create 20000 zombie processes.
To prevent this you can add rlimit_nproc: 1 because it tests sh itself, don't test spawned echos.
```diff
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index 32dcaed..7877171 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -1600,7 +1600,7 @@ class TestProcess < Test::Unit::TestCase
assert_raise(*exs, mesg) do
begin
loop do
- Process.spawn(cmds.join(sep), [STDOUT, STDERR]=>File::NULL)
+ Process.spawn(cmds.join(sep), [STDOUT, STDERR]=>File::NULL, rlimit_nproc: 1)
min = [cmds.size, min].max
cmds *= 100
end
```
--
https://bugs.ruby-lang.org/
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [ruby-core:71266] [Ruby trunk - Bug #11613] test_aspawn_too_long_path creates too many processes
[not found] <redmine.issue-11613.20151022165233@ruby-lang.org>
2015-10-22 16:52 ` [ruby-core:71161] [Ruby trunk - Bug #11613] [Open] test_aspawn_too_long_path creates too many processes naruse
2015-10-22 16:54 ` [ruby-core:71162] [Ruby trunk - Bug #11613] " naruse
@ 2015-10-29 14:28 ` usa
2015-11-28 18:30 ` [ruby-core:71724] " nagachika00
3 siblings, 0 replies; 4+ messages in thread
From: usa @ 2015-10-29 14:28 UTC (permalink / raw)
To: ruby-core
Issue #11613 has been updated by Usaku NAKAMURA.
Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED to 2.0.0: REQUIRED, 2.1: DONE, 2.2: REQUIRED
ruby_2_1 r52358 merged revision(s) 52229,52273,52277,52357.
----------------------------------------
Bug #11613: test_aspawn_too_long_path creates too many processes
https://bugs.ruby-lang.org/issues/11613#change-54639
* Author: Yui NARUSE
* Status: Closed
* Priority: Normal
* Assignee:
* ruby -v:
* Backport: 2.0.0: REQUIRED, 2.1: DONE, 2.2: REQUIRED
----------------------------------------
At least on FreeBSD, spawn("echo|echo|echo|echo|echo|echo|echo| ...20000 times") success and create 20000 zombie processes.
To prevent this you can add rlimit_nproc: 1 because it tests sh itself, don't test spawned echos.
```diff
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index 32dcaed..7877171 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -1600,7 +1600,7 @@ class TestProcess < Test::Unit::TestCase
assert_raise(*exs, mesg) do
begin
loop do
- Process.spawn(cmds.join(sep), [STDOUT, STDERR]=>File::NULL)
+ Process.spawn(cmds.join(sep), [STDOUT, STDERR]=>File::NULL, rlimit_nproc: 1)
min = [cmds.size, min].max
cmds *= 100
end
```
--
https://bugs.ruby-lang.org/
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [ruby-core:71724] [Ruby trunk - Bug #11613] test_aspawn_too_long_path creates too many processes
[not found] <redmine.issue-11613.20151022165233@ruby-lang.org>
` (2 preceding siblings ...)
2015-10-29 14:28 ` [ruby-core:71266] " usa
@ 2015-11-28 18:30 ` nagachika00
3 siblings, 0 replies; 4+ messages in thread
From: nagachika00 @ 2015-11-28 18:30 UTC (permalink / raw)
To: ruby-core
Issue #11613 has been updated by Tomoyuki Chikanaga.
Backport changed from 2.0.0: REQUIRED, 2.1: DONE, 2.2: REQUIRED to 2.0.0: REQUIRED, 2.1: DONE, 2.2: DONE
Backporrted r52222,r52229,r52273,r52277,r52357 into `ruby_2_2` branch at r52779.
----------------------------------------
Bug #11613: test_aspawn_too_long_path creates too many processes
https://bugs.ruby-lang.org/issues/11613#change-55130
* Author: Yui NARUSE
* Status: Closed
* Priority: Normal
* Assignee:
* ruby -v:
* Backport: 2.0.0: REQUIRED, 2.1: DONE, 2.2: DONE
----------------------------------------
At least on FreeBSD, spawn("echo|echo|echo|echo|echo|echo|echo| ...20000 times") success and create 20000 zombie processes.
To prevent this you can add rlimit_nproc: 1 because it tests sh itself, don't test spawned echos.
```diff
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index 32dcaed..7877171 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -1600,7 +1600,7 @@ class TestProcess < Test::Unit::TestCase
assert_raise(*exs, mesg) do
begin
loop do
- Process.spawn(cmds.join(sep), [STDOUT, STDERR]=>File::NULL)
+ Process.spawn(cmds.join(sep), [STDOUT, STDERR]=>File::NULL, rlimit_nproc: 1)
min = [cmds.size, min].max
cmds *= 100
end
```
--
https://bugs.ruby-lang.org/
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-11-28 17:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <redmine.issue-11613.20151022165233@ruby-lang.org>
2015-10-22 16:52 ` [ruby-core:71161] [Ruby trunk - Bug #11613] [Open] test_aspawn_too_long_path creates too many processes naruse
2015-10-22 16:54 ` [ruby-core:71162] [Ruby trunk - Bug #11613] " naruse
2015-10-29 14:28 ` [ruby-core:71266] " usa
2015-11-28 18:30 ` [ruby-core:71724] " nagachika00
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).